Hope it works

This commit is contained in:
Jean-Paul NOEL 2020-04-19 13:43:36 +02:00
parent c6c049d0d3
commit 2d29efb366
18 changed files with 311 additions and 246 deletions

View File

@ -1,3 +1,3 @@
# test01
Petit projet perso d'add-in pour découvrir toutes les possibilités de gint.
Test de système de map.

BIN
Test01.g3a Normal file

Binary file not shown.

BIN
assets-cg/img/grass_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

BIN
assets-cg/img/grass_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

BIN
assets-cg/img/grass_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

BIN
build-cg/Test01.elf Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,6 +4,8 @@ Archive member included to satisfy reference by file (symbol)
build-cg/src/main.c.o (_getkey)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o) (_pollevent)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
build-cg/src/main.c.o (_memset)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o) (_timer_setup)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
@ -30,8 +32,6 @@ Archive member included to satisfy reference by file (symbol)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dupdate.c.o) (_r61524_display)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o) (_clock_freq)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(setup.c.o) (_memcpy)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dclear.c.o) (_dma_memset)
/home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
@ -82,6 +82,7 @@ Discarded input sections
.comment 0x0000000000000000 0x12 build-cg/src/main.c.o
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dimage.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dclear.c.o)
@ -94,7 +95,6 @@ Discarded input sections
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(gint.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
.comment 0x0000000000000000 0x12 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(mmu.c.o)
@ -148,16 +148,17 @@ yram 0x00000000e5017000 0x0000000000002000 xrw
Linker script and memory map
LOAD build-cg/src/main.c.o
LOAD build-cg/assets/fonts/island.png.o
LOAD build-cg/assets/img/title.png.o
LOAD build-cg/assets/img/grass_1.png.o
LOAD build-cg/assets/img/grass_2.png.o
LOAD build-cg/assets/img/grass_3.png.o
LOAD build-cg/assets/img/player.png.o
LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a
LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a
LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
0x0000000000300000 _brom = 0x300000
0x00000000000064d4 _srom = (((SIZEOF (.text) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks))
0x0000000000004cc8 _srom = (((SIZEOF (.text) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks))
.text 0x0000000000300000 0x37b0
.text 0x0000000000300000 0x39e0
*(.pretext.entry)
.pretext.entry
0x0000000000300000 0x1a4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(start.c.o)
@ -192,239 +193,240 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
0x0000000000000058 _gint_exch_tlbh_size = ABSOLUTE ((. - _gint_exch_tlbh_start))
*(.text .text.*)
.text 0x000000000030067c 0x0 build-cg/src/main.c.o
.text.startup 0x000000000030067c 0x108 build-cg/src/main.c.o
.text.startup 0x000000000030067c 0x338 build-cg/src/main.c.o
0x000000000030067c _main
.text 0x0000000000300784 0x1f0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o)
0x0000000000300784 _getkey_opt
0x000000000030092c _getkey
0x0000000000300938 _getkey_repeat
.text 0x0000000000300974 0x3ac /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000300acc _pollevent
0x0000000000300c10 _waitevent
0x0000000000300c5c _clearevents
0x0000000000300c7c _keydown
0x0000000000300ca8 _keydown_all
0x0000000000300ce4 _keydown_any
.text 0x0000000000300d20 0x4cc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000300fa8 _timer_setup
0x0000000000301038 _timer_delay
0x0000000000301098 _timer_start
0x00000000003010cc _timer_reload
0x00000000003010ec _timer_pause
0x0000000000301120 _timer_stop
0x000000000030117c _timer_timeout
0x0000000000301188 _timer_address
0x00000000003011bc _timer_clear
.text 0x00000000003011ec 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
.text 0x00000000003011ec 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dimage.c.o)
0x00000000003011ec _dimage
0x0000000000301214 _dsubimage
.text 0x000000000030122c 0x1c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dclear.c.o)
0x000000000030122c _dclear
.text 0x0000000000301248 0x1e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(bopti.c.o)
0x0000000000301248 _bopti_render
0x0000000000301338 _bopti_render_clip
0x0000000000301400 _bopti_render_noclip
.text 0x000000000030142c 0x3c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dupdate.c.o)
0x000000000030142c _dupdate
0x0000000000301450 _dupdate_noint
.text 0x0000000000301468 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dvram.c.o)
0x0000000000301468 _dvram
0x0000000000301494 _dvram_switch
.text 0x00000000003014b4 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(hardware.c.o)
.text 0x00000000003014b4 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(start.c.o)
.text 0x00000000003014b4 0x104 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(setup.c.o)
0x0000000000301520 _gint_install
0x00000000003015a0 _gint_unload
.text 0x00000000003015b8 0x5c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(gint.c.o)
0x00000000003015b8 _gint_intlevel
0x00000000003015f0 _gint_inthandler
.text 0x0000000000301614 0x2d4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000301664 _r61524_win_get
0x000000000030171c _r61524_win_set
0x00000000003017dc _r61524_display
.text 0x00000000003018e8 0xc8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x00000000003019a4 _clock_freq
.text 0x00000000003019b0 0xdc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
0x00000000003019b0 _memcpy
0x0000000000301a6a __memmove
0x0000000000301a6e __memcmp
0x0000000000301a72 _memset
.text 0x0000000000301a8c 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
0x0000000000301a8c _dma_memset
.text 0x0000000000301ad8 0x3f8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000301dac _dma_transfer
0x0000000000301dec _dma_transfer_wait
0x0000000000301e64 _dma_transfer_noint
.text 0x0000000000301ed0 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
.text 0x0000000000301ed0 0x100 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(bopti-asm.s.o)
0x0000000000301ed0 _bopti_r5g6b5
0x0000000000301f20 _bopti_r5g6b5a
0x0000000000301f50 _bopti_p8
0x0000000000301f80 _bopti_p4
.text 0x0000000000301fd0 0xf8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(mmu.c.o)
0x0000000000301fd0 _utlb_addr
0x0000000000301fe0 _utlb_data
0x0000000000301ff0 _utlb_mapped_memory
.text 0x00000000003020c8 0x2e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.c.o)
0x0000000000302370 _gint_panic
0x0000000000302380 _gint_panic_set
0x0000000000302394 _gint_exc_catch
0x00000000003023a0 _gint_exc_skip
.text 0x00000000003023ac 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.s.o)
.text 0x00000000003023ac 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.S.o)
.text 0x00000000003023ac 0x2c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(vbr.s.o)
0x00000000003023ac _gint_setvbr
.text 0x00000000003023d8 0x9c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
0x00000000003023d8 _dsize
.text 0x0000000000302474 0x58 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dprint.c.o)
0x0000000000302474 _dprint
.text 0x00000000003024cc 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
.text 0x00000000003024cc 0xc0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(drect.c.o)
0x00000000003024cc _drect
.text 0x000000000030258c 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti-asm.s.o)
.text 0x000000000030258c 0xce4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(stdio.c.o)
0x0000000000302f88 _kprint_opt
0x00000000003030d0 _kprint
0x00000000003031a8 _kvsprint
0x00000000003031f0 _sprintf
0x0000000000303218 _vsprintf
0x0000000000303238 _snprintf
0x0000000000303258 _vsnprintf
.text 0x0000000000303270 0x7c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(string.c.o)
0x0000000000303270 _strlen
0x0000000000303280 _strncpy
0x0000000000303298 _strcat
0x00000000003032dc _strcmp
.text 0x00000000003032ec 0x78 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_movmem.o)
0x00000000003032ec ___movstr
0x00000000003032ec ___movmem
0x0000000000303320 ___movmemSI64
0x0000000000303320 ___movstrSI64
0x0000000000303324 ___movstrSI60
0x0000000000303324 ___movmemSI60
0x0000000000303328 ___movmemSI56
0x0000000000303328 ___movstrSI56
0x000000000030332c ___movstrSI52
0x000000000030332c ___movmemSI52
0x0000000000303330 ___movstrSI48
0x0000000000303330 ___movmemSI48
0x0000000000303334 ___movstrSI44
0x0000000000303334 ___movmemSI44
0x0000000000303338 ___movstrSI40
0x0000000000303338 ___movmemSI40
0x000000000030333c ___movstrSI36
0x000000000030333c ___movmemSI36
0x0000000000303340 ___movmemSI32
0x0000000000303340 ___movstrSI32
0x0000000000303344 ___movmemSI28
0x0000000000303344 ___movstrSI28
0x0000000000303348 ___movstrSI24
0x0000000000303348 ___movmemSI24
0x000000000030334c ___movmemSI20
0x000000000030334c ___movstrSI20
0x0000000000303350 ___movstrSI16
0x0000000000303350 ___movmemSI16
0x0000000000303354 ___movmemSI12
0x0000000000303354 ___movstrSI12
0x0000000000303358 ___movmemSI8
0x0000000000303358 ___movstrSI8
0x000000000030335c ___movmemSI4
0x000000000030335c ___movstrSI4
.text 0x0000000000303364 0x1e0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_udivdi3.o)
0x0000000000303364 ___udivdi3
.text 0x0000000000303544 0x208 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_umoddi3.o)
0x0000000000303544 ___umoddi3
*fill* 0x000000000030374c 0x4
.text 0x0000000000303750 0x60 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_udiv_qrnnd_16.o)
0x0000000000303750 ___udiv_qrnnd_16
.text 0x00000000003037b0 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_clz.o)
.text 0x00000000003009b4 0x1f0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o)
0x00000000003009b4 _getkey_opt
0x0000000000300b5c _getkey
0x0000000000300b68 _getkey_repeat
.text 0x0000000000300ba4 0x3ac /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000300cfc _pollevent
0x0000000000300e40 _waitevent
0x0000000000300e8c _clearevents
0x0000000000300eac _keydown
0x0000000000300ed8 _keydown_all
0x0000000000300f14 _keydown_any
.text 0x0000000000300f50 0xdc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
0x0000000000300f50 _memcpy
0x000000000030100a __memmove
0x000000000030100e __memcmp
0x0000000000301012 _memset
.text 0x000000000030102c 0x4cc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x00000000003012b4 _timer_setup
0x0000000000301344 _timer_delay
0x00000000003013a4 _timer_start
0x00000000003013d8 _timer_reload
0x00000000003013f8 _timer_pause
0x000000000030142c _timer_stop
0x0000000000301488 _timer_timeout
0x0000000000301494 _timer_address
0x00000000003014c8 _timer_clear
.text 0x00000000003014f8 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
.text 0x00000000003014f8 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dimage.c.o)
0x00000000003014f8 _dimage
0x0000000000301520 _dsubimage
.text 0x0000000000301538 0x1c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dclear.c.o)
0x0000000000301538 _dclear
.text 0x0000000000301554 0x1e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(bopti.c.o)
0x0000000000301554 _bopti_render
0x0000000000301644 _bopti_render_clip
0x000000000030170c _bopti_render_noclip
.text 0x0000000000301738 0x3c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dupdate.c.o)
0x0000000000301738 _dupdate
0x000000000030175c _dupdate_noint
.text 0x0000000000301774 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dvram.c.o)
0x0000000000301774 _dvram
0x00000000003017a0 _dvram_switch
.text 0x00000000003017c0 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(hardware.c.o)
.text 0x00000000003017c0 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(start.c.o)
.text 0x00000000003017c0 0x104 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(setup.c.o)
0x000000000030182c _gint_install
0x00000000003018ac _gint_unload
.text 0x00000000003018c4 0x5c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(gint.c.o)
0x00000000003018c4 _gint_intlevel
0x00000000003018fc _gint_inthandler
.text 0x0000000000301920 0x2d4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000301970 _r61524_win_get
0x0000000000301a28 _r61524_win_set
0x0000000000301ae8 _r61524_display
.text 0x0000000000301bf4 0xc8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x0000000000301cb0 _clock_freq
.text 0x0000000000301cbc 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
0x0000000000301cbc _dma_memset
.text 0x0000000000301d08 0x3f8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000301fdc _dma_transfer
0x000000000030201c _dma_transfer_wait
0x0000000000302094 _dma_transfer_noint
.text 0x0000000000302100 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
.text 0x0000000000302100 0x100 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(bopti-asm.s.o)
0x0000000000302100 _bopti_r5g6b5
0x0000000000302150 _bopti_r5g6b5a
0x0000000000302180 _bopti_p8
0x00000000003021b0 _bopti_p4
.text 0x0000000000302200 0xf8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(mmu.c.o)
0x0000000000302200 _utlb_addr
0x0000000000302210 _utlb_data
0x0000000000302220 _utlb_mapped_memory
.text 0x00000000003022f8 0x2e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.c.o)
0x00000000003025a0 _gint_panic
0x00000000003025b0 _gint_panic_set
0x00000000003025c4 _gint_exc_catch
0x00000000003025d0 _gint_exc_skip
.text 0x00000000003025dc 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.s.o)
.text 0x00000000003025dc 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.S.o)
.text 0x00000000003025dc 0x2c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(vbr.s.o)
0x00000000003025dc _gint_setvbr
.text 0x0000000000302608 0x9c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
0x0000000000302608 _dsize
.text 0x00000000003026a4 0x58 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dprint.c.o)
0x00000000003026a4 _dprint
.text 0x00000000003026fc 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
.text 0x00000000003026fc 0xc0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(drect.c.o)
0x00000000003026fc _drect
.text 0x00000000003027bc 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti-asm.s.o)
.text 0x00000000003027bc 0xce4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(stdio.c.o)
0x00000000003031b8 _kprint_opt
0x0000000000303300 _kprint
0x00000000003033d8 _kvsprint
0x0000000000303420 _sprintf
0x0000000000303448 _vsprintf
0x0000000000303468 _snprintf
0x0000000000303488 _vsnprintf
.text 0x00000000003034a0 0x7c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(string.c.o)
0x00000000003034a0 _strlen
0x00000000003034b0 _strncpy
0x00000000003034c8 _strcat
0x000000000030350c _strcmp
.text 0x000000000030351c 0x78 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_movmem.o)
0x000000000030351c ___movstr
0x000000000030351c ___movmem
0x0000000000303550 ___movmemSI64
0x0000000000303550 ___movstrSI64
0x0000000000303554 ___movstrSI60
0x0000000000303554 ___movmemSI60
0x0000000000303558 ___movmemSI56
0x0000000000303558 ___movstrSI56
0x000000000030355c ___movstrSI52
0x000000000030355c ___movmemSI52
0x0000000000303560 ___movstrSI48
0x0000000000303560 ___movmemSI48
0x0000000000303564 ___movstrSI44
0x0000000000303564 ___movmemSI44
0x0000000000303568 ___movstrSI40
0x0000000000303568 ___movmemSI40
0x000000000030356c ___movstrSI36
0x000000000030356c ___movmemSI36
0x0000000000303570 ___movmemSI32
0x0000000000303570 ___movstrSI32
0x0000000000303574 ___movmemSI28
0x0000000000303574 ___movstrSI28
0x0000000000303578 ___movstrSI24
0x0000000000303578 ___movmemSI24
0x000000000030357c ___movmemSI20
0x000000000030357c ___movstrSI20
0x0000000000303580 ___movstrSI16
0x0000000000303580 ___movmemSI16
0x0000000000303584 ___movmemSI12
0x0000000000303584 ___movstrSI12
0x0000000000303588 ___movmemSI8
0x0000000000303588 ___movstrSI8
0x000000000030358c ___movmemSI4
0x000000000030358c ___movstrSI4
.text 0x0000000000303594 0x1e0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_udivdi3.o)
0x0000000000303594 ___udivdi3
.text 0x0000000000303774 0x208 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_umoddi3.o)
0x0000000000303774 ___umoddi3
*fill* 0x000000000030397c 0x4
.text 0x0000000000303980 0x60 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_udiv_qrnnd_16.o)
0x0000000000303980 ___udiv_qrnnd_16
.text 0x00000000003039e0 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_clz.o)
.gint.blocks 0x00000000003037b0 0x140
.gint.blocks 0x00000000003039e0 0x140
*(.gint.blocks)
.gint.blocks 0x00000000003037b0 0xe0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x00000000003037b0 _inth_tmu
0x0000000000303830 _inth_etmu2
0x0000000000303850 _inth_etmu_help
0x0000000000303870 _inth_etmux
.gint.blocks 0x0000000000303890 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x0000000000303890 _inth_dma_te
0x00000000003038b0 _inth_dma_ae
.gint.blocks 0x00000000003038d0 0x20 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.S.o)
0x00000000003038d0 _gint_inth_7305
.gint.blocks 0x00000000003039e0 0xe0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x00000000003039e0 _inth_tmu
0x0000000000303a60 _inth_etmu2
0x0000000000303a80 _inth_etmu_help
0x0000000000303aa0 _inth_etmux
.gint.blocks 0x0000000000303ac0 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x0000000000303ac0 _inth_dma_te
0x0000000000303ae0 _inth_dma_ae
.gint.blocks 0x0000000000303b00 0x20 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.S.o)
0x0000000000303b00 _gint_inth_7305
.gint.drivers 0x00000000003038f0 0xc8
0x00000000003038f0 _bdrv = .
.gint.drivers 0x0000000000303b20 0xc8
0x0000000000303b20 _bdrv = .
*(.gint.drivers.0)
*(.gint.drivers.1)
.gint.drivers.1
0x00000000003038f0 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x00000000003038f0 _drv_cpg
0x0000000000303b20 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x0000000000303b20 _drv_cpg
*(.gint.drivers.2)
.gint.drivers.2
0x0000000000303918 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000303918 _drv_tmu
0x0000000000303b48 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000303b48 _drv_tmu
.gint.drivers.2
0x0000000000303940 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000303940 _drv_dma0
0x0000000000303b70 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000303b70 _drv_dma0
*(.gint.drivers.3)
*(.gint.drivers.4)
.gint.drivers.4
0x0000000000303968 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000303968 _drv_keysc
0x0000000000303b98 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000303b98 _drv_keysc
*(.gint.drivers.5)
.gint.drivers.5
0x0000000000303990 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000303990 _drv_r61524
0x0000000000303bc0 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000303bc0 _drv_r61524
*(.gint.drivers.6)
0x00000000003039b8 _edrv = .
0x0000000000303be8 _edrv = .
.rodata 0x00000000003039b8 0x2b1c
.rodata 0x0000000000303be8 0x10e0
*(.rodata.4)
*(.rodata .rodata.*)
.rodata 0x00000000003039b8 0x24c build-cg/assets/fonts/island.png.o
0x00000000003039b8 _font_island
0x0000000000303c04 _font_island_end
.rodata 0x0000000000303c04 0x1808 build-cg/assets/img/title.png.o
0x0000000000303c04 _img_title
0x000000000030540c _img_title_end
.rodata 0x000000000030540c 0x808 build-cg/assets/img/player.png.o
0x000000000030540c _img_player
0x0000000000305c14 _img_player_end
.rodata 0x0000000000303be8 0x208 build-cg/assets/img/grass_1.png.o
0x0000000000303be8 _img_grass_1
0x0000000000303df0 _img_grass_1_end
.rodata 0x0000000000303df0 0x208 build-cg/assets/img/grass_2.png.o
0x0000000000303df0 _img_grass_2
0x0000000000303ff8 _img_grass_2_end
.rodata 0x0000000000303ff8 0x208 build-cg/assets/img/grass_3.png.o
0x0000000000303ff8 _img_grass_3
0x0000000000304200 _img_grass_3_end
.rodata 0x0000000000304200 0x208 build-cg/assets/img/player.png.o
0x0000000000304200 _img_player
0x0000000000304408 _img_player_end
.rodata.str1.4
0x0000000000305c14 0x6 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
*fill* 0x0000000000305c1a 0x2
0x0000000000304408 0x6 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
*fill* 0x000000000030440e 0x2
.rodata.str1.4
0x0000000000305c1c 0x4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000304410 0x4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
.rodata.str1.4
0x0000000000305c20 0x7 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
*fill* 0x0000000000305c27 0x1
0x0000000000304414 0x7 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
*fill* 0x000000000030441b 0x1
.rodata.str1.4
0x0000000000305c28 0x4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
.rodata 0x0000000000305c2c 0x30 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x000000000030441c 0x4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
.rodata 0x0000000000304420 0x30 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
.rodata.str1.4
0x0000000000305c5c 0x5 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
*fill* 0x0000000000305c61 0x3
0x0000000000304450 0x5 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
*fill* 0x0000000000304455 0x3
.rodata.str1.4
0x0000000000305c64 0x288 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.c.o)
0x0000000000304458 0x288 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.c.o)
0x28c (size before relaxing)
.rodata 0x0000000000305eec 0x18 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
.rodata 0x0000000000305f04 0x49c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(font8x9.png.o)
0x0000000000305f04 _gint_font8x9
0x00000000003063a0 _gint_font8x9_end
.rodata 0x00000000003046e0 0x18 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
.rodata 0x00000000003046f8 0x49c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(font8x9.png.o)
0x00000000003046f8 _gint_font8x9
0x0000000000304b94 _gint_font8x9_end
.rodata.str1.4
0x00000000003063a0 0x31 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(stdio.c.o)
*fill* 0x00000000003063d1 0x3
.rodata 0x00000000003063d4 0x100 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_clz.o)
0x00000000003063d4 ___clz_tab
0x0000000000304b94 0x31 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(stdio.c.o)
*fill* 0x0000000000304bc5 0x3
.rodata 0x0000000000304bc8 0x100 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_clz.o)
0x0000000000304bc8 ___clz_tab
.rela.dyn 0x00000000003064d4 0x0
.rela.text.startup
0x00000000003064d4 0x0 build-cg/src/main.c.o
.rela.dyn 0x0000000000304cc8 0x0
.rela.pretext.entry
0x00000000003064d4 0x0 build-cg/src/main.c.o
.rela.text 0x00000000003064d4 0x0 build-cg/src/main.c.o
.rela.pretext 0x00000000003064d4 0x0 build-cg/src/main.c.o
0x0000000000304cc8 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(start.c.o)
.rela.text 0x0000000000304cc8 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(start.c.o)
.rela.pretext 0x0000000000304cc8 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(start.c.o)
0x0000000008102000 . = ORIGIN (ram)
.bss 0x0000000008102000 0x150
@ -433,6 +435,7 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
.bss 0x0000000008102000 0x0 build-cg/src/main.c.o
.bss 0x0000000008102000 0xc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o)
.bss 0x000000000810200c 0x24 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dimage.c.o)
@ -446,7 +449,6 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(gint.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
.bss 0x0000000008102030 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
@ -472,13 +474,14 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
*fill* 0x0000000008102144 0xc
0x0000000000000150 _sbss = SIZEOF (.bss)
.data 0x0000000008102150 0x90 load address 0x00000000003064d4
0x00000000003064d4 _ldata = LOADADDR (.data)
.data 0x0000000008102150 0x90 load address 0x0000000000304cc8
0x0000000000304cc8 _ldata = LOADADDR (.data)
0x0000000008102150 _rdata = .
*(.data .data.*)
.data 0x0000000008102150 0x0 build-cg/src/main.c.o
.data 0x0000000008102150 0x8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o)
.data 0x0000000008102158 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
.data 0x0000000008102158 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
.data 0x0000000008102158 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
.data 0x0000000008102158 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
.data 0x0000000008102158 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dimage.c.o)
@ -493,7 +496,6 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
.data 0x0000000008102164 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(gint.c.o)
.data 0x0000000008102164 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
.data 0x0000000008102164 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
.data 0x0000000008102164 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
.data 0x0000000008102164 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
.data 0x0000000008102164 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
.data 0x0000000008102164 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
@ -521,29 +523,29 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
0x00000000081021e0 . = ALIGN (0x10)
*fill* 0x00000000081021d4 0xc
.data.4 0x00000000081021e0 0x0 load address 0x0000000000306564
.data.4 0x00000000081021e0 0x0 load address 0x0000000000304d58
*(.data.4)
0x00000000081021e0 . = ALIGN (0x10)
0x0000000000000090 _sdata = (SIZEOF (.data) + SIZEOF (.data.4))
0x00000000e5200000 . = ORIGIN (ilram)
.ilram 0x00000000e5200000 0x20 load address 0x0000000000306564
0x0000000000306564 _lilram = LOADADDR (.ilram)
.ilram 0x00000000e5200000 0x20 load address 0x0000000000304d58
0x0000000000304d58 _lilram = LOADADDR (.ilram)
0x00000000e5200000 _rilram = .
*(.ilram)
.ilram 0x00000000e5200000 0x20 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
0x00000000e5200020 . = ALIGN (0x10)
0x00000000e5007000 . = ORIGIN (xram)
.xram 0x00000000e5007000 0x0 load address 0x0000000000306584
0x0000000000306584 _lxram = LOADADDR (.xram)
.xram 0x00000000e5007000 0x0 load address 0x0000000000304d78
0x0000000000304d78 _lxram = LOADADDR (.xram)
0x00000000e5007000 _rxram = .
*(.xram)
0x00000000e5007000 . = ALIGN (0x10)
0x00000000e5017000 . = ORIGIN (yram)
.yram 0x00000000e5017000 0x0 load address 0x0000000000306584
0x0000000000306584 _lyram = LOADADDR (.yram)
.yram 0x00000000e5017000 0x0 load address 0x0000000000304d78
0x0000000000304d78 _lyram = LOADADDR (.yram)
0x00000000e5017000 _ryram = .
*(.yram)
0x00000000e5017000 . = ALIGN (0x10)
@ -553,8 +555,8 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
0x000000008c15ff00 _gint_vbr = (ORIGIN (vbr) - 0x100)
0x000000008c161400 . = ORIGIN (rram)
.gint.data 0x000000008c161400 0xe0 load address 0x0000000000306584
0x0000000000306584 _lgdata = LOADADDR (.gint.data)
.gint.data 0x000000008c161400 0xe0 load address 0x0000000000304d78
0x0000000000304d78 _lgdata = LOADADDR (.gint.data)
0x000000008c161400 _rgdata = .
*(.gint.data .gint.data.*)
.gint.data 0x000000008c161400 0x24 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
@ -572,7 +574,7 @@ LOAD /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a
*fill* 0x000000008c1614d8 0x8
0x00000000000000e0 _sgdata = SIZEOF (.gint.data)
.gint.bss 0x000000008c1614e0 0x300 load address 0x0000000000306664
.gint.bss 0x000000008c1614e0 0x300 load address 0x0000000000304e58
*(.gint.bss .gint.bss.*)
.gint.bss 0x000000008c1614e0 0x180 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
.gint.bss 0x000000008c161660 0x88 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)

Binary file not shown.

View File

@ -1,47 +1,110 @@
#include <gint/display.h>
#include <gint/keyboard.h>
//#include <libprof.h>
int main(void)
{
extern image_t img_player;
int x = 0;
//Initialisation de la map
int xMap = 50;
int yMap = 15;
int map[yMap][xMap] = { {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1}};
extern image_t img_grass_1;
extern image_t img_grass_2;
extern image_t img_grass_3;
//Initialisation du joueur
int x = 0;
int y = 0;
int speed = 2;
extern image_t img_player;
//prof_init(1, 0);
//uint32_t delta = 0;
int delta = 1;
//Initialisation de la camera
int xCamera, yCamera;
int xCameraOffset = 12;
int yCameraOffset = 7;
//Boucle de jeu
while(1)
{
///prof_enter(1);
dclear(C_WHITE);
dimage(x, y, &img_player);
dupdate();
//prof_leave(1);
//delta = prof_time(1) * 100000/3;*/
//Positionement de la caméra par rapport au joueur
if (x-xCameraOffset < 0)
{
xCamera = 0;
} else if (x+xCameraOffset > xMap)
{
xCamera = xMap-xCameraOffset;
}else
{
xCamera = x-xCameraOffset;
}
if (y-yCameraOffset < 0)
{
yCamera = 0;
} else if (y+yCameraOffset > yMap)
{
yCamera = yMap-yCameraOffset;
}else
{
yCamera = y-yCameraOffset;
}
//Chargement de la partie de la map à afficher
dclear(C_WHITE);
int i, j;
for(j=0;j<14;j++)
{
for(i=0; i<25; i++)
{
switch(map[j+yCamera][i+xCamera])
{
case 0:
dimage(i*16, j*16, &img_grass_1);
break;
case 1:
dimage(i*16, j*16, &img_grass_2);
break;
case 2:
dimage(i*16, j*16, &img_grass_3);
break;
}
}
}
//Affichage de l'écran
dimage((x-xCamera)*16, (y-yCamera)*16, &img_player);
dupdate();
//Gestion du clavier
switch(getkey().key)
{
case KEY_UP:
y -= speed * delta;
y--;
break;
case KEY_DOWN:
y += speed * delta;
y++;
break;
case KEY_LEFT:
x -= speed * delta;
x--;
break;
case KEY_RIGHT:
x += speed * delta;
x++;
break;
case KEY_EXE:
case KEY_EXE:
return 0;
}
}
//prof_quit();
return 0;
}