diff --git a/build-cg/map b/build-cg/map index ffc35ae..507d1ab 100644 --- a/build-cg/map +++ b/build-cg/map @@ -1,5 +1,7 @@ Archive member included to satisfy reference by file (symbol) +/home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) + build-cg/src/levels.c.o (_memcpy) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) (_start) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) @@ -50,8 +52,6 @@ Archive member included to satisfy reference by file (symbol) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti.c.o) (_strlen) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dprint.c.o) (_vsnprintf) -/home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) - /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) (_memcpy) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.S.o) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) (_gint_inth_7305) /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(bopti-asm.s.o) @@ -83,6 +83,7 @@ Discarded input sections .comment 0x0000000000000000 0x12 build-cg/src/draw.c.o .comment 0x0000000000000000 0x12 build-cg/src/levels.c.o .comment 0x0000000000000000 0x12 build-cg/src/main.c.o + .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(mmu.c.o) @@ -104,7 +105,6 @@ Discarded input sections .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(string.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) - .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(getkey.c.o) .comment 0x0000000000000000 0x12 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) @@ -160,9 +160,9 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a 0x0000000000300000 _brom = 0x300000 - 0x0000000000004a34 _srom = (((SIZEOF (.text) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks)) + 0x0000000000004b10 _srom = (((SIZEOF (.text) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks)) -.text 0x0000000000300000 0x38f0 +.text 0x0000000000300000 0x3910 *(.pretext.entry) .pretext.entry 0x0000000000300000 0x1a4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) @@ -197,243 +197,246 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a 0x0000000000000058 _gint_exch_tlbh_size = ABSOLUTE ((. - _gint_exch_tlbh_start)) *(.text .text.*) .text 0x000000000030067c 0xd2 build-cg/src/collide.c.o - 0x000000000030067c _collide_with + 0x000000000030067c _collide *fill* 0x000000000030074e 0x2 .text 0x0000000000300750 0xd0 build-cg/src/draw.c.o 0x0000000000300750 _draw_player 0x00000000003007a4 _draw_level - .text 0x0000000000300820 0x4 build-cg/src/levels.c.o - 0x0000000000300820 _get_level - .text 0x0000000000300824 0x34 build-cg/src/main.c.o - 0x0000000000300824 _jump_test - .text.startup 0x0000000000300858 0xec build-cg/src/main.c.o - 0x0000000000300858 _main - .text 0x0000000000300944 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) - .text 0x0000000000300944 0x104 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) - 0x00000000003009b0 _gint_install - 0x0000000000300a30 _gint_unload - .text 0x0000000000300a48 0xf8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(mmu.c.o) - 0x0000000000300a48 _utlb_addr - 0x0000000000300a58 _utlb_data - 0x0000000000300a68 _utlb_mapped_memory - .text 0x0000000000300b40 0x2dc /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(exch.c.o) - 0x0000000000300de8 _gint_panic - 0x0000000000300df8 _gint_panic_set - 0x0000000000300e04 _gint_exc_catch - 0x0000000000300e10 _gint_exc_skip - .text 0x0000000000300e1c 0x5c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(gint.c.o) - 0x0000000000300e1c _gint_intlevel - 0x0000000000300e54 _gint_inthandler - .text 0x0000000000300e78 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(exch.s.o) - .text 0x0000000000300e78 0x2c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(vbr.s.o) - 0x0000000000300e78 _gint_setvbr - .text 0x0000000000300ea4 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(hardware.c.o) - .text 0x0000000000300ea4 0x9c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti.c.o) - 0x0000000000300ea4 _dsize - .text 0x0000000000300f40 0x58 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dprint.c.o) - 0x0000000000300f40 _dprint - .text 0x0000000000300f98 0x40 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dimage.c.o) - 0x0000000000300f98 _dimage - 0x0000000000300fc0 _dsubimage - .text 0x0000000000300fd8 0x1c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dclear.c.o) - 0x0000000000300fd8 _dclear - .text 0x0000000000300ff4 0x4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dvram.c.o) - 0x0000000000300ff4 _dvram - .text 0x0000000000300ff8 0xc0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(drect.c.o) - 0x0000000000300ff8 _drect - .text 0x00000000003010b8 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti.c.o) - .text 0x00000000003010b8 0x30 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dupdate.c.o) - 0x00000000003010b8 _dupdate - 0x00000000003010d0 _dupdate_noint - .text 0x00000000003010e8 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti-asm.s.o) - .text 0x00000000003010e8 0x1e4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(bopti.c.o) - 0x00000000003010e8 _bopti_render - 0x00000000003011d8 _bopti_render_clip - 0x00000000003012a0 _bopti_render_noclip - .text 0x00000000003012cc 0x3ac /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(keysc.c.o) - 0x0000000000301424 _pollevent - 0x0000000000301568 _waitevent - 0x00000000003015b4 _clearevents - 0x00000000003015d4 _keydown - 0x0000000000301600 _keydown_all - 0x000000000030163c _keydown_any - .text 0x0000000000301678 0x4cc /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(tmu.c.o) - 0x0000000000301900 _timer_setup - 0x0000000000301990 _timer_delay - 0x00000000003019f0 _timer_start - 0x0000000000301a24 _timer_reload - 0x0000000000301a44 _timer_pause - 0x0000000000301a78 _timer_stop - 0x0000000000301ad4 _timer_timeout - 0x0000000000301ae0 _timer_address - 0x0000000000301b14 _timer_clear - .text 0x0000000000301b44 0x4c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memset.c.o) - 0x0000000000301b44 _dma_memset - .text 0x0000000000301b90 0x2d4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) - 0x0000000000301be0 _r61524_win_get - 0x0000000000301c98 _r61524_win_set - 0x0000000000301d58 _r61524_display - .text 0x0000000000301e64 0x7c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(string.c.o) - 0x0000000000301e64 _strlen - 0x0000000000301e74 _strncpy - 0x0000000000301e8c _strcat - 0x0000000000301ed0 _strcmp - .text 0x0000000000301ee0 0xce4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) - 0x00000000003028dc _kprint_opt - 0x0000000000302a24 _kprint - 0x0000000000302afc _kvsprint - 0x0000000000302b44 _sprintf - 0x0000000000302b6c _vsprintf - 0x0000000000302b8c _snprintf - 0x0000000000302bac _vsnprintf - .text 0x0000000000302bc4 0xdc /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) - 0x0000000000302bc4 _memcpy - 0x0000000000302c7e __memmove - 0x0000000000302c82 __memcmp - 0x0000000000302c86 _memset - .text 0x0000000000302ca0 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.S.o) - .text 0x0000000000302ca0 0x100 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(bopti-asm.s.o) - 0x0000000000302ca0 _bopti_r5g6b5 - 0x0000000000302cf0 _bopti_r5g6b5a - 0x0000000000302d20 _bopti_p8 - 0x0000000000302d50 _bopti_p4 - .text 0x0000000000302da0 0xc8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) - 0x0000000000302e5c _clock_freq - .text 0x0000000000302e68 0x1d0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(getkey.c.o) - 0x0000000000302e68 _getkey_opt - 0x0000000000302ff0 _getkey - 0x0000000000302ffc _getkey_repeat - .text 0x0000000000303038 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) - .text 0x0000000000303038 0x3f8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) - 0x000000000030330c _dma_transfer - 0x000000000030334c _dma_transfer_wait - 0x00000000003033c4 _dma_transfer_noint - .text 0x0000000000303430 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) - .text 0x0000000000303430 0x78 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_movmem.o) - 0x0000000000303430 ___movstr - 0x0000000000303430 ___movmem - 0x0000000000303464 ___movmemSI64 - 0x0000000000303464 ___movstrSI64 - 0x0000000000303468 ___movstrSI60 - 0x0000000000303468 ___movmemSI60 - 0x000000000030346c ___movmemSI56 - 0x000000000030346c ___movstrSI56 - 0x0000000000303470 ___movstrSI52 - 0x0000000000303470 ___movmemSI52 - 0x0000000000303474 ___movstrSI48 - 0x0000000000303474 ___movmemSI48 - 0x0000000000303478 ___movstrSI44 - 0x0000000000303478 ___movmemSI44 - 0x000000000030347c ___movstrSI40 - 0x000000000030347c ___movmemSI40 - 0x0000000000303480 ___movstrSI36 - 0x0000000000303480 ___movmemSI36 - 0x0000000000303484 ___movmemSI32 - 0x0000000000303484 ___movstrSI32 - 0x0000000000303488 ___movmemSI28 - 0x0000000000303488 ___movstrSI28 - 0x000000000030348c ___movstrSI24 - 0x000000000030348c ___movmemSI24 - 0x0000000000303490 ___movmemSI20 - 0x0000000000303490 ___movstrSI20 - 0x0000000000303494 ___movstrSI16 - 0x0000000000303494 ___movmemSI16 - 0x0000000000303498 ___movmemSI12 - 0x0000000000303498 ___movstrSI12 - 0x000000000030349c ___movmemSI8 - 0x000000000030349c ___movstrSI8 - 0x00000000003034a0 ___movmemSI4 - 0x00000000003034a0 ___movstrSI4 - .text 0x00000000003034a8 0x1e0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_udivdi3.o) - 0x00000000003034a8 ___udivdi3 - .text 0x0000000000303688 0x208 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_umoddi3.o) - 0x0000000000303688 ___umoddi3 - .text 0x0000000000303890 0x60 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_udiv_qrnnd_16.o) - 0x0000000000303890 ___udiv_qrnnd_16 - .text 0x00000000003038f0 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_clz.o) + .text 0x0000000000300820 0x20 build-cg/src/levels.c.o + 0x0000000000300820 _set_level + .text 0x0000000000300840 0x34 build-cg/src/main.c.o + 0x0000000000300840 _jump_test + .text.startup 0x0000000000300874 0xe8 build-cg/src/main.c.o + 0x0000000000300874 _main + .text 0x000000000030095c 0xdc /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) + 0x000000000030095c _memcpy + 0x0000000000300a16 __memmove + 0x0000000000300a1a __memcmp + 0x0000000000300a1e _memset + .text 0x0000000000300a38 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) + .text 0x0000000000300a38 0x104 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) + 0x0000000000300aa4 _gint_install + 0x0000000000300b24 _gint_unload + .text 0x0000000000300b3c 0xf8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(mmu.c.o) + 0x0000000000300b3c _utlb_addr + 0x0000000000300b4c _utlb_data + 0x0000000000300b5c _utlb_mapped_memory + .text 0x0000000000300c34 0x2dc /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(exch.c.o) + 0x0000000000300edc _gint_panic + 0x0000000000300eec _gint_panic_set + 0x0000000000300ef8 _gint_exc_catch + 0x0000000000300f04 _gint_exc_skip + .text 0x0000000000300f10 0x5c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(gint.c.o) + 0x0000000000300f10 _gint_intlevel + 0x0000000000300f48 _gint_inthandler + .text 0x0000000000300f6c 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(exch.s.o) + .text 0x0000000000300f6c 0x2c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(vbr.s.o) + 0x0000000000300f6c _gint_setvbr + .text 0x0000000000300f98 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(hardware.c.o) + .text 0x0000000000300f98 0x9c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti.c.o) + 0x0000000000300f98 _dsize + .text 0x0000000000301034 0x58 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dprint.c.o) + 0x0000000000301034 _dprint + .text 0x000000000030108c 0x40 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dimage.c.o) + 0x000000000030108c _dimage + 0x00000000003010b4 _dsubimage + .text 0x00000000003010cc 0x1c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dclear.c.o) + 0x00000000003010cc _dclear + .text 0x00000000003010e8 0x4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dvram.c.o) + 0x00000000003010e8 _dvram + .text 0x00000000003010ec 0xc0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(drect.c.o) + 0x00000000003010ec _drect + .text 0x00000000003011ac 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti.c.o) + .text 0x00000000003011ac 0x30 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dupdate.c.o) + 0x00000000003011ac _dupdate + 0x00000000003011c4 _dupdate_noint + .text 0x00000000003011dc 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti-asm.s.o) + .text 0x00000000003011dc 0x1e4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(bopti.c.o) + 0x00000000003011dc _bopti_render + 0x00000000003012cc _bopti_render_clip + 0x0000000000301394 _bopti_render_noclip + .text 0x00000000003013c0 0x3ac /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(keysc.c.o) + 0x0000000000301518 _pollevent + 0x000000000030165c _waitevent + 0x00000000003016a8 _clearevents + 0x00000000003016c8 _keydown + 0x00000000003016f4 _keydown_all + 0x0000000000301730 _keydown_any + .text 0x000000000030176c 0x4cc /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(tmu.c.o) + 0x00000000003019f4 _timer_setup + 0x0000000000301a84 _timer_delay + 0x0000000000301ae4 _timer_start + 0x0000000000301b18 _timer_reload + 0x0000000000301b38 _timer_pause + 0x0000000000301b6c _timer_stop + 0x0000000000301bc8 _timer_timeout + 0x0000000000301bd4 _timer_address + 0x0000000000301c08 _timer_clear + .text 0x0000000000301c38 0x4c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memset.c.o) + 0x0000000000301c38 _dma_memset + .text 0x0000000000301c84 0x2d4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) + 0x0000000000301cd4 _r61524_win_get + 0x0000000000301d8c _r61524_win_set + 0x0000000000301e4c _r61524_display + .text 0x0000000000301f58 0x7c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(string.c.o) + 0x0000000000301f58 _strlen + 0x0000000000301f68 _strncpy + 0x0000000000301f80 _strcat + 0x0000000000301fc4 _strcmp + .text 0x0000000000301fd4 0xce4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) + 0x00000000003029d0 _kprint_opt + 0x0000000000302b18 _kprint + 0x0000000000302bf0 _kvsprint + 0x0000000000302c38 _sprintf + 0x0000000000302c60 _vsprintf + 0x0000000000302c80 _snprintf + 0x0000000000302ca0 _vsnprintf + .text 0x0000000000302cb8 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.S.o) + *fill* 0x0000000000302cb8 0x8 + .text 0x0000000000302cc0 0x100 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(bopti-asm.s.o) + 0x0000000000302cc0 _bopti_r5g6b5 + 0x0000000000302d10 _bopti_r5g6b5a + 0x0000000000302d40 _bopti_p8 + 0x0000000000302d70 _bopti_p4 + .text 0x0000000000302dc0 0xc8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) + 0x0000000000302e7c _clock_freq + .text 0x0000000000302e88 0x1d0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(getkey.c.o) + 0x0000000000302e88 _getkey_opt + 0x0000000000303010 _getkey + 0x000000000030301c _getkey_repeat + .text 0x0000000000303058 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) + .text 0x0000000000303058 0x3f8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) + 0x000000000030332c _dma_transfer + 0x000000000030336c _dma_transfer_wait + 0x00000000003033e4 _dma_transfer_noint + .text 0x0000000000303450 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) + .text 0x0000000000303450 0x78 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_movmem.o) + 0x0000000000303450 ___movstr + 0x0000000000303450 ___movmem + 0x0000000000303484 ___movmemSI64 + 0x0000000000303484 ___movstrSI64 + 0x0000000000303488 ___movstrSI60 + 0x0000000000303488 ___movmemSI60 + 0x000000000030348c ___movmemSI56 + 0x000000000030348c ___movstrSI56 + 0x0000000000303490 ___movstrSI52 + 0x0000000000303490 ___movmemSI52 + 0x0000000000303494 ___movstrSI48 + 0x0000000000303494 ___movmemSI48 + 0x0000000000303498 ___movstrSI44 + 0x0000000000303498 ___movmemSI44 + 0x000000000030349c ___movstrSI40 + 0x000000000030349c ___movmemSI40 + 0x00000000003034a0 ___movstrSI36 + 0x00000000003034a0 ___movmemSI36 + 0x00000000003034a4 ___movmemSI32 + 0x00000000003034a4 ___movstrSI32 + 0x00000000003034a8 ___movmemSI28 + 0x00000000003034a8 ___movstrSI28 + 0x00000000003034ac ___movstrSI24 + 0x00000000003034ac ___movmemSI24 + 0x00000000003034b0 ___movmemSI20 + 0x00000000003034b0 ___movstrSI20 + 0x00000000003034b4 ___movstrSI16 + 0x00000000003034b4 ___movmemSI16 + 0x00000000003034b8 ___movmemSI12 + 0x00000000003034b8 ___movstrSI12 + 0x00000000003034bc ___movmemSI8 + 0x00000000003034bc ___movstrSI8 + 0x00000000003034c0 ___movmemSI4 + 0x00000000003034c0 ___movstrSI4 + .text 0x00000000003034c8 0x1e0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_udivdi3.o) + 0x00000000003034c8 ___udivdi3 + .text 0x00000000003036a8 0x208 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_umoddi3.o) + 0x00000000003036a8 ___umoddi3 + .text 0x00000000003038b0 0x60 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_udiv_qrnnd_16.o) + 0x00000000003038b0 ___udiv_qrnnd_16 + .text 0x0000000000303910 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_clz.o) -.gint.blocks 0x00000000003038f0 0x140 +.gint.blocks 0x0000000000303910 0x140 *(.gint.blocks) - .gint.blocks 0x00000000003038f0 0x20 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.S.o) - 0x00000000003038f0 _gint_inth_7305 - .gint.blocks 0x0000000000303910 0xe0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) - 0x0000000000303910 _inth_tmu - 0x0000000000303990 _inth_etmu2 - 0x00000000003039b0 _inth_etmu_help - 0x00000000003039d0 _inth_etmux - .gint.blocks 0x00000000003039f0 0x40 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) - 0x00000000003039f0 _inth_dma_te - 0x0000000000303a10 _inth_dma_ae + .gint.blocks 0x0000000000303910 0x20 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.S.o) + 0x0000000000303910 _gint_inth_7305 + .gint.blocks 0x0000000000303930 0xe0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) + 0x0000000000303930 _inth_tmu + 0x00000000003039b0 _inth_etmu2 + 0x00000000003039d0 _inth_etmu_help + 0x00000000003039f0 _inth_etmux + .gint.blocks 0x0000000000303a10 0x40 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.s.o) + 0x0000000000303a10 _inth_dma_te + 0x0000000000303a30 _inth_dma_ae -.gint.drivers 0x0000000000303a30 0xb4 - 0x0000000000303a30 _bdrv = . +.gint.drivers 0x0000000000303a50 0xb4 + 0x0000000000303a50 _bdrv = . *(.gint.drivers.0) *(.gint.drivers.1) .gint.drivers.1 - 0x0000000000303a30 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) - 0x0000000000303a30 _drv_cpg + 0x0000000000303a50 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) + 0x0000000000303a50 _drv_cpg *(.gint.drivers.2) .gint.drivers.2 - 0x0000000000303a54 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(tmu.c.o) - 0x0000000000303a54 _drv_tmu + 0x0000000000303a74 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(tmu.c.o) + 0x0000000000303a74 _drv_tmu .gint.drivers.2 - 0x0000000000303a78 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) - 0x0000000000303a78 _drv_dma0 + 0x0000000000303a98 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) + 0x0000000000303a98 _drv_dma0 *(.gint.drivers.3) *(.gint.drivers.4) .gint.drivers.4 - 0x0000000000303a9c 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(keysc.c.o) - 0x0000000000303a9c _drv_keysc + 0x0000000000303abc 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(keysc.c.o) + 0x0000000000303abc _drv_keysc *(.gint.drivers.5) .gint.drivers.5 - 0x0000000000303ac0 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) - 0x0000000000303ac0 _drv_r61524 + 0x0000000000303ae0 0x24 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) + 0x0000000000303ae0 _drv_r61524 *(.gint.drivers.6) - 0x0000000000303ae4 _edrv = . + 0x0000000000303b04 _edrv = . -.rodata 0x0000000000303ae4 0xf50 +.rodata 0x0000000000303b04 0x100c *(.rodata.4) *(.rodata .rodata.*) - .rodata 0x0000000000303ae4 0x208 build-cg/assets/img/ground.png.o - 0x0000000000303ae4 _img_ground - 0x0000000000303cec _img_ground_end - .rodata 0x0000000000303cec 0x488 build-cg/assets/img/player.png.o - 0x0000000000303cec _img_player - 0x0000000000304174 _img_player_end .rodata.str1.4 - 0x0000000000304174 0x288 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(exch.c.o) + 0x0000000000303b04 0xc5 build-cg/src/levels.c.o + *fill* 0x0000000000303bc9 0x3 + .rodata 0x0000000000303bcc 0x208 build-cg/assets/img/ground.png.o + 0x0000000000303bcc _img_ground + 0x0000000000303dd4 _img_ground_end + .rodata 0x0000000000303dd4 0x488 build-cg/assets/img/player.png.o + 0x0000000000303dd4 _img_player + 0x000000000030425c _img_player_end + .rodata.str1.4 + 0x000000000030425c 0x288 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(exch.c.o) 0x28c (size before relaxing) - .rodata 0x00000000003043fc 0x18 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti.c.o) + .rodata 0x00000000003044e4 0x18 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(topti.c.o) .rodata.str1.4 - 0x0000000000304414 0x6 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(keysc.c.o) - *fill* 0x000000000030441a 0x2 + 0x00000000003044fc 0x6 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(keysc.c.o) + *fill* 0x0000000000304502 0x2 .rodata.str1.4 - 0x000000000030441c 0x4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(tmu.c.o) - .rodata 0x0000000000304420 0x49c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(font8x9.png.o) - 0x0000000000304420 _gint_font8x9 - 0x00000000003048bc _gint_font8x9_end + 0x0000000000304504 0x4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(tmu.c.o) + .rodata 0x0000000000304508 0x49c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(font8x9.png.o) + 0x0000000000304508 _gint_font8x9 + 0x00000000003049a4 _gint_font8x9_end .rodata.str1.4 - 0x00000000003048bc 0x7 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) - *fill* 0x00000000003048c3 0x1 + 0x00000000003049a4 0x7 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) + *fill* 0x00000000003049ab 0x1 .rodata.str1.4 - 0x00000000003048c4 0x31 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) - *fill* 0x00000000003048f5 0x3 + 0x00000000003049ac 0x25 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) + 0x31 (size before relaxing) + *fill* 0x00000000003049d1 0x3 .rodata.str1.4 - 0x00000000003048f8 0x4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) - .rodata 0x00000000003048fc 0x30 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) + 0x00000000003049d4 0x4 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) + .rodata 0x00000000003049d8 0x30 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) .rodata.str1.4 - 0x000000000030492c 0x8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) + 0x0000000000304a08 0x8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(dma.c.o) 0x5 (size before relaxing) - .rodata 0x0000000000304934 0x100 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_clz.o) - 0x0000000000304934 ___clz_tab + .rodata 0x0000000000304a10 0x100 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a(_clz.o) + 0x0000000000304a10 ___clz_tab -.rela.dyn 0x0000000000304a34 0x0 - .rela.text.startup - 0x0000000000304a34 0x0 build-cg/src/main.c.o +.rela.dyn 0x0000000000304b10 0x0 .rela.pretext.entry - 0x0000000000304a34 0x0 build-cg/src/main.c.o - .rela.text 0x0000000000304a34 0x0 build-cg/src/main.c.o - .rela.pretext 0x0000000000304a34 0x0 build-cg/src/main.c.o + 0x0000000000304b10 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) + .rela.text 0x0000000000304b10 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) + .rela.pretext 0x0000000000304b10 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) 0x0000000008102000 . = ORIGIN (ram) .bss 0x0000000008102000 0x150 @@ -443,6 +446,7 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a .bss 0x0000000008102000 0x0 build-cg/src/draw.c.o .bss 0x0000000008102000 0x0 build-cg/src/levels.c.o .bss 0x0000000008102000 0x0 build-cg/src/main.c.o + .bss 0x0000000008102000 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) .bss 0x0000000008102000 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) .bss 0x0000000008102000 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) .bss 0x0000000008102000 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(mmu.c.o) @@ -467,7 +471,6 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a .bss 0x0000000008102024 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(r61524.c.o) .bss 0x0000000008102024 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(string.c.o) .bss 0x0000000008102024 0x114 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) - .bss 0x0000000008102138 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) .bss 0x0000000008102138 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.S.o) .bss 0x0000000008102138 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(bopti-asm.s.o) .bss 0x0000000008102138 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) @@ -484,14 +487,15 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a *fill* 0x0000000008102144 0xc 0x0000000000000150 _sbss = SIZEOF (.bss) -.data 0x0000000008102150 0x80 load address 0x0000000000304a34 - 0x0000000000304a34 _ldata = LOADADDR (.data) +.data 0x0000000008102150 0x80 load address 0x0000000000304b10 + 0x0000000000304b10 _ldata = LOADADDR (.data) 0x0000000008102150 _rdata = . *(.data .data.*) .data 0x0000000008102150 0x0 build-cg/src/collide.c.o .data 0x0000000008102150 0x0 build-cg/src/draw.c.o .data 0x0000000008102150 0x0 build-cg/src/levels.c.o .data 0x0000000008102150 0x0 build-cg/src/main.c.o + .data 0x0000000008102150 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) .data 0x0000000008102150 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(start.c.o) .data 0x0000000008102150 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) .data 0x0000000008102150 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(mmu.c.o) @@ -520,7 +524,6 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a .data 0x000000000810215c 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(string.c.o) .data 0x000000000810215c 0x68 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(stdio.c.o) 0x000000000810215c _kprint_formatters - .data 0x00000000081021c4 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memory.c.o) .data 0x00000000081021c4 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(inth.S.o) .data 0x00000000081021c4 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(bopti-asm.s.o) .data 0x00000000081021c4 0x0 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(cpg.c.o) @@ -536,29 +539,29 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a 0x00000000081021d0 . = ALIGN (0x10) *fill* 0x00000000081021cc 0x4 -.data.4 0x00000000081021d0 0x0 load address 0x0000000000304ab4 +.data.4 0x00000000081021d0 0x0 load address 0x0000000000304b90 *(.data.4) 0x00000000081021d0 . = ALIGN (0x10) 0x0000000000000080 _sdata = (SIZEOF (.data) + SIZEOF (.data.4)) 0x00000000e5200000 . = ORIGIN (ilram) -.ilram 0x00000000e5200000 0x20 load address 0x0000000000304ab4 - 0x0000000000304ab4 _lilram = LOADADDR (.ilram) +.ilram 0x00000000e5200000 0x20 load address 0x0000000000304b90 + 0x0000000000304b90 _lilram = LOADADDR (.ilram) 0x00000000e5200000 _rilram = . *(.ilram) .ilram 0x00000000e5200000 0x20 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(memset.c.o) 0x00000000e5200020 . = ALIGN (0x10) 0x00000000e5007000 . = ORIGIN (xram) -.xram 0x00000000e5007000 0x0 load address 0x0000000000304ad4 - 0x0000000000304ad4 _lxram = LOADADDR (.xram) +.xram 0x00000000e5007000 0x0 load address 0x0000000000304bb0 + 0x0000000000304bb0 _lxram = LOADADDR (.xram) 0x00000000e5007000 _rxram = . *(.xram) 0x00000000e5007000 . = ALIGN (0x10) 0x00000000e5017000 . = ORIGIN (yram) -.yram 0x00000000e5017000 0x0 load address 0x0000000000304ad4 - 0x0000000000304ad4 _lyram = LOADADDR (.yram) +.yram 0x00000000e5017000 0x0 load address 0x0000000000304bb0 + 0x0000000000304bb0 _lyram = LOADADDR (.yram) 0x00000000e5017000 _ryram = . *(.yram) 0x00000000e5017000 . = ALIGN (0x10) @@ -568,8 +571,8 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a 0x000000008c15ff00 _gint_vbr = (ORIGIN (vbr) - 0x100) 0x000000008c161400 . = ORIGIN (rram) -.gint.data 0x000000008c161400 0xe0 load address 0x0000000000304ad4 - 0x0000000000304ad4 _lgdata = LOADADDR (.gint.data) +.gint.data 0x000000008c161400 0xe0 load address 0x0000000000304bb0 + 0x0000000000304bb0 _lgdata = LOADADDR (.gint.data) 0x000000008c161400 _rgdata = . *(.gint.data .gint.data.*) .gint.data 0x000000008c161400 0x8 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(exch.c.o) @@ -587,7 +590,7 @@ LOAD /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/m4-nofpu/libgcc.a *fill* 0x000000008c1614d8 0x8 0x00000000000000e0 _sgdata = SIZEOF (.gint.data) -.gint.bss 0x000000008c1614e0 0x300 load address 0x0000000000304bb4 +.gint.bss 0x000000008c1614e0 0x300 load address 0x0000000000304c90 *(.gint.bss .gint.bss.*) .gint.bss 0x000000008c1614e0 0x1c /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(setup.c.o) .gint.bss 0x000000008c1614fc 0x40 /home/user/opt/sh-elf-2.32-9.2.0/lib/gcc/sh3eb-elf/9.2.0/libgint-cg.a(hardware.c.o) diff --git a/build-cg/platform.bin b/build-cg/platform.bin index 4f7d4d6..bc98319 100755 Binary files a/build-cg/platform.bin and b/build-cg/platform.bin differ diff --git a/build-cg/platform.elf b/build-cg/platform.elf new file mode 100755 index 0000000..413d395 Binary files /dev/null and b/build-cg/platform.elf differ diff --git a/build-cg/src/collide.c.o b/build-cg/src/collide.c.o index d75da40..c73be13 100644 Binary files a/build-cg/src/collide.c.o and b/build-cg/src/collide.c.o differ diff --git a/build-cg/src/draw.c.o b/build-cg/src/draw.c.o index f2de1b8..7515fe0 100644 Binary files a/build-cg/src/draw.c.o and b/build-cg/src/draw.c.o differ diff --git a/build-cg/src/levels.c.o b/build-cg/src/levels.c.o index d0016ed..b299fef 100644 Binary files a/build-cg/src/levels.c.o and b/build-cg/src/levels.c.o differ diff --git a/build-cg/src/main.c.o b/build-cg/src/main.c.o index 3fed67e..51a1f36 100644 Binary files a/build-cg/src/main.c.o and b/build-cg/src/main.c.o differ diff --git a/levels.lua b/levels.lua index 1654b51..0b871a4 100644 --- a/levels.lua +++ b/levels.lua @@ -1,14 +1,18 @@ levels = {[[ -0000000000 -0........0 -0........0 -0........0 -0........0 -0........0 -0........0 -0s.......0 -0........0 -0000000000 +00000000000000 +0............0 +0............0 +0............0 +0............0 +0............0 +0............0 +0............0 +0............0 +0............0 +0............0 +0s...........0 +0............0 +00000000000000 ]] } @@ -17,12 +21,13 @@ to_write = "" --remove all "\n" from level strings for i, v in ipairs(levels) do v = string.gsub(v, "\n", "") - to_write = to_write.." case "..(i-1)..":\n level = \""..v.."\";\n break;" + to_write = to_write.." case "..(i-1)..":\n memcpy(level, \""..v.."\", "..#v..");\n break;" end --finish and write to_write = [[#include "levels.h" -void get_level(unsigned char level_id, char level[]) { +#include +void set_level(unsigned char level_id, char *level) { switch (level_id) { ]]..to_write.."\n }\n}\n" diff --git a/platform.g3a b/platform.g3a index 3e42ba4..49398c8 100644 Binary files a/platform.g3a and b/platform.g3a differ diff --git a/src/collide.c b/src/collide.c index cd93261..cba67db 100644 --- a/src/collide.c +++ b/src/collide.c @@ -1,14 +1,15 @@ #define PLAYER_SIDES 11 +#define LEVEL_WIDTH 14 -char collide_with(int x, int y, char level[], char tile, unsigned int level_width) +char collide(int x, int y, char level[], char tile) { - if ((level[(int)(x/8) + (int)(y/8) * level_width] == tile) || - (level[(int)(x/8) + (int)((y+PLAYER_SIDES)/8) * level_width] == tile) || - (level[(int)((x+PLAYER_SIDES)/8) + (int)((y+PLAYER_SIDES)/8) * level_width] == tile) || - (level[(int)((x+PLAYER_SIDES)/8) + (int)(y/8) * level_width] == tile) || - (level[(int)(x/8) + (int)((y+PLAYER_SIDES/2)/8) * level_width] == tile) || - (level[(int)((x+PLAYER_SIDES/2)/8) + (int)(y/8) * level_width] == tile) || - (level[(int)((x+PLAYER_SIDES/2)/8) + (int)((y+PLAYER_SIDES)/8) * level_width] == tile) || - (level[(int)((x+PLAYER_SIDES)/8) + (int)((y+PLAYER_SIDES/2)/8) * level_width] == tile)) return 1; + if ((level[(int)(x/8) + (int)(y/8) * LEVEL_WIDTH] == tile) || + (level[(int)(x/8) + (int)((y+PLAYER_SIDES)/8) * LEVEL_WIDTH] == tile) || + (level[(int)((x+PLAYER_SIDES)/8) + (int)((y+PLAYER_SIDES)/8) * LEVEL_WIDTH] == tile) || + (level[(int)((x+PLAYER_SIDES)/8) + (int)(y/8) * LEVEL_WIDTH] == tile) || + (level[(int)(x/8) + (int)((y+PLAYER_SIDES/2)/8) * LEVEL_WIDTH] == tile) || + (level[(int)((x+PLAYER_SIDES/2)/8) + (int)(y/8) * LEVEL_WIDTH] == tile) || + (level[(int)((x+PLAYER_SIDES/2)/8) + (int)((y+PLAYER_SIDES)/8) * LEVEL_WIDTH] == tile) || + (level[(int)((x+PLAYER_SIDES)/8) + (int)((y+PLAYER_SIDES/2)/8) * LEVEL_WIDTH] == tile)) return 1; else return 0; } diff --git a/src/collide.h b/src/collide.h index f90f289..67642f4 100644 --- a/src/collide.h +++ b/src/collide.h @@ -1 +1 @@ -char collide(int x, int y, char level[], char tile, unsigned int level_width); +char collide(int x, int y, char level[], char tile); diff --git a/src/draw.c b/src/draw.c index 779fc8b..a1a22b2 100644 --- a/src/draw.c +++ b/src/draw.c @@ -2,6 +2,7 @@ #define PLAYER_SIDES 11 #define BG_COLOR 0 +#define LEVEL_WIDTH 14 extern image_t img_player; //player texture, 24x24 @@ -21,7 +22,7 @@ void draw_level(char level[], int *player_x, int *player_y) unsigned int i = 0; unsigned int x = 0; unsigned int y = 0; - while (i != 100) + while (i != 14*14) { switch (level[i]) { @@ -34,7 +35,7 @@ void draw_level(char level[], int *player_x, int *player_y) break; } x += 8; - if (x == 80) + if (x == 8*LEVEL_WIDTH) { x = 0; y += 8; diff --git a/src/levels.c b/src/levels.c index 02694d9..3d05718 100644 --- a/src/levels.c +++ b/src/levels.c @@ -1,9 +1,10 @@ #include "levels.h" -void get_level(unsigned char level_id, char level[]) { +#include +void set_level(unsigned char level_id, char *level) { switch (level_id) { case 0: - level = "00000000000........00........00........00........00........00........00s.......00........00000000000"; + memcpy(level, "000000000000000............00............00............00............00............00............00............00............00............00............00s...........00............000000000000000", 196); break; } } diff --git a/src/levels.h b/src/levels.h index 9c051de..9beff74 100644 --- a/src/levels.h +++ b/src/levels.h @@ -1 +1 @@ -void get_level(unsigned char level_id, char level[]); +void set_level(unsigned char level_id, char level[]); diff --git a/src/main.c b/src/main.c index 2bec1c8..0c6c3af 100644 --- a/src/main.c +++ b/src/main.c @@ -7,25 +7,23 @@ void jump_test(char *jump_pressed, char *jump_buffer); //test if jump pressed int main(void) { - char level[100]; - char *level_ptr; - level_ptr = level; + char level[13*13]; unsigned char level_id = 0; char jump_pressed = 0; //avoid holding jump char jump_buffer = 0; //jump buffer, last 3 frames - double vspd = 0; //player vertical speed + //double vspd = 0; //player vertical speed char hspd = 0; //player horizontal speed - char on_ground = 6; //remember if player is on solid + //char on_ground = 6; //remember if player is on solid int player_x = 0; int player_y = 0; int old_x, old_y; - const double jump_spd = -4; //default jump speed - const double grav = 0.2; + //const double jump_spd = -4; //default jump speed + //const double grav = 0.2; dclear(0); //0 -> black + set_level(level_id, level); draw_level(level, &player_x, &player_y); old_x = player_x + 1; //offset to draw it on first cycle old_y = player_y; - get_level(level_id, level); while (1) { draw_player(old_x, old_y, player_x, player_y); dupdate(); @@ -36,7 +34,7 @@ int main(void) hspd = 0; if (keydown(KEY_LEFT)) hspd--; if (keydown(KEY_RIGHT)) hspd++; - if (!collide(player_x + hspd, player_y, level, '0', 10)) + if (!collide(player_x + hspd, player_y, level, '0')) { player_x += hspd; } diff --git a/transfer.sh b/transfer.sh index 515c56d..c02ecfd 100755 --- a/transfer.sh +++ b/transfer.sh @@ -1,3 +1,2 @@ #/bin/#!/usr/bin/env bash cp platform.g3a /media/user/disk/ -umount /media/user/disk/