Poke_Transporter_GB/source
easyaspi314 750641c78f Prepare for trouble... and make it.... fixed point?
To protect the world from the soft float library...
To unite all arithmetic within our binary...
To denounce the evils of floating point precision...
To save more kilobytes - that's our vision....

(god this is cringe)

All floating point math has been eliminated, and replaced with
equivalent or near-equivalent fixed-point math.

sprite_data.cpp uses Q16, and get_rand_range uses a full Q32 to
ensure that the exact same results are generated as before, at
the cost of some inline assembly to do a umull (__aeabi_lmul is a
little excessive when the lower 32 bits are discarded)

This eliminates all of the expensive double precision float library,
saving a few kilobytes.

Additionally, the unneccessary parts of nanoprintf have been
disabled. There is no need for precision specifiers, long longs, or
floats.
2025-06-30 13:05:32 -04:00
..
background_engine.cpp Modifying the remote multiboot loader 2025-04-06 17:09:52 -04:00
box_menu.cpp Merge branch 'optimizations/reduce-binarysize-remove-libstdc++' into optimizations/implement-zx0-compression 2025-05-25 22:45:47 +02:00
button_handler.cpp Updating tons of graphics 2024-08-19 14:47:29 -04:00
button_menu.cpp Reduce binary size by eliminating libstdc++ 2025-04-09 20:04:08 +02:00
custom_malloc.c Implement custom malloc -> rom space: -3 KB, IWRAM: -1 KB 2025-06-20 22:39:42 +02:00
delays.cpp Organizing files 2024-03-19 13:52:23 -05:00
dex_handler.cpp Updating buttons and dialogue 2024-03-29 11:55:54 -05:00
flash_mem.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
gameboy_colour.cpp Compress the gb_rom_values and gba_rom_values tables with ZX0. 2025-06-27 16:04:04 +02:00
global_frame_controller.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
interrupt.cpp Fixing interrupts 2024-03-20 15:38:33 -05:00
interrupts_gba.c Fixing interrupts 2024-03-20 15:38:33 -05:00
irq_handler.s Fixing interrupts 2024-03-20 15:38:33 -05:00
japanese_small.s Updating Dream Dex 2025-04-06 11:57:37 -04:00
latin_short.s Updating Dream Dex 2025-04-06 11:57:37 -04:00
libstd_replacements.cpp Prepare for trouble... and make it.... fixed point? 2025-06-30 13:05:32 -04:00
linker_optimizations.cpp Avoid pulling in the verdana9 and sys8Font fonts from libtonc 2025-06-27 18:00:23 +02:00
main.cpp Implement custom malloc -> rom space: -3 KB, IWRAM: -1 KB 2025-06-20 22:39:42 +02:00
memory.c Restoring memory.c 2024-03-20 15:41:03 -05:00
multiboot_upload.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
mystery_gift_builder.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
mystery_gift_injector.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
payload_builder.cpp Compress the gb_rom_values and gba_rom_values tables with ZX0. 2025-06-27 16:04:04 +02:00
pkmn_font.s Compress the graphics (mostly), fix potential vram memcpy issue 2025-01-17 19:32:48 -05:00
pokedex.cpp Prepare for trouble... and make it.... fixed point? 2025-06-30 13:05:32 -04:00
pokemon_data.cpp Merge branch 'master' into optimizations/implement-zx0-compression 2025-05-21 13:16:45 +02:00
pokemon_party.cpp Compress the gb_rom_values and gba_rom_values tables with ZX0. 2025-06-27 16:04:04 +02:00
pokemon.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
random.cpp Prepare for trouble... and make it.... fixed point? 2025-06-30 13:05:32 -04:00
rom_data.cpp Compress the gb_rom_values and gba_rom_values tables with ZX0. 2025-06-27 16:04:04 +02:00
save_data_manager.cpp Updating Dream Dex 2025-04-06 11:57:37 -04:00
save.cpp Organizing files 2024-03-19 13:52:23 -05:00
script_array.cpp Fix ptgb_write_debug() after merge 2025-05-27 22:39:16 +02:00
script_obj.cpp Add compression for the text data, output stack usage .su files and rework script_array 2025-05-21 12:21:06 +02:00
script_var.cpp Add compression for the text data, output stack usage .su files and rework script_array 2025-05-21 12:21:06 +02:00
select_menu.cpp Add compression for the text data, output stack usage .su files and rework script_array 2025-05-21 12:21:06 +02:00
sprite_data.cpp Prepare for trouble... and make it.... fixed point? 2025-06-30 13:05:32 -04:00
text_data_table.cpp Move reading dialogue text out of the text_loop() to conserve IWRAM 2025-05-21 17:39:52 +02:00
text_engine.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
z80_asm.cpp Fix crash + unrelated buffer overflow + some optimizations 2025-06-18 10:23:03 +02:00
zx0_decompressor.cpp Add compression for the text data, output stack usage .su files and rework script_array 2025-05-21 12:21:06 +02:00