Il n'est plus possible de sortir des limites de la carte

This commit is contained in:
Jean-Paul NOEL 2020-04-19 14:47:31 +02:00
parent 93a22211d1
commit 4f942fa8b9
7 changed files with 255 additions and 229 deletions

View File

@ -1,3 +1,3 @@
# test01
Test de système de map.
Moteur d'affichage de carte avec scrolling.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -156,9 +156,9 @@ 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
0x0000000000004cb8 _srom = (((SIZEOF (.text) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks))
0x0000000000004d78 _srom = (((SIZEOF (.text) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks))
.text 0x0000000000300000 0x39d0
.text 0x0000000000300000 0x3a90
*(.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)
@ -193,241 +193,241 @@ 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 0x31c build-cg/src/main.c.o
.text.startup 0x000000000030067c 0x3e4 build-cg/src/main.c.o
0x000000000030067c _main
.text 0x0000000000300998 0x1f0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o)
0x0000000000300998 _getkey_opt
0x0000000000300b40 _getkey
0x0000000000300b4c _getkey_repeat
.text 0x0000000000300b88 0x3ac /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000300ce0 _pollevent
0x0000000000300e24 _waitevent
0x0000000000300e70 _clearevents
0x0000000000300e90 _keydown
0x0000000000300ebc _keydown_all
0x0000000000300ef8 _keydown_any
.text 0x0000000000300f34 0xdc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
0x0000000000300f34 _memcpy
0x0000000000300fee __memmove
0x0000000000300ff2 __memcmp
0x0000000000300ff6 _memset
.text 0x0000000000301010 0x4cc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000301298 _timer_setup
0x0000000000301328 _timer_delay
0x0000000000301388 _timer_start
0x00000000003013bc _timer_reload
0x00000000003013dc _timer_pause
0x0000000000301410 _timer_stop
0x000000000030146c _timer_timeout
0x0000000000301478 _timer_address
0x00000000003014ac _timer_clear
.text 0x00000000003014dc 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 0x00000000003014dc 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dimage.c.o)
0x00000000003014dc _dimage
0x0000000000301504 _dsubimage
.text 0x000000000030151c 0x1c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dclear.c.o)
0x000000000030151c _dclear
.text 0x0000000000301538 0x1e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(bopti.c.o)
0x0000000000301538 _bopti_render
0x0000000000301628 _bopti_render_clip
0x00000000003016f0 _bopti_render_noclip
.text 0x000000000030171c 0x3c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dupdate.c.o)
0x000000000030171c _dupdate
0x0000000000301740 _dupdate_noint
.text 0x0000000000301758 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dvram.c.o)
0x0000000000301758 _dvram
0x0000000000301784 _dvram_switch
.text 0x00000000003017a4 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 0x00000000003017a4 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 0x00000000003017a4 0x104 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(setup.c.o)
0x0000000000301810 _gint_install
0x0000000000301890 _gint_unload
.text 0x00000000003018a8 0x5c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(gint.c.o)
0x00000000003018a8 _gint_intlevel
0x00000000003018e0 _gint_inthandler
.text 0x0000000000301904 0x2d4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000301954 _r61524_win_get
0x0000000000301a0c _r61524_win_set
0x0000000000301acc _r61524_display
.text 0x0000000000301bd8 0xc8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x0000000000301c94 _clock_freq
.text 0x0000000000301ca0 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
0x0000000000301ca0 _dma_memset
.text 0x0000000000301cec 0x3f8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000301fc0 _dma_transfer
0x0000000000302000 _dma_transfer_wait
0x0000000000302078 _dma_transfer_noint
.text 0x00000000003020e4 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
*fill* 0x00000000003020e4 0xc
.text 0x00000000003020f0 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)
0x00000000003020f0 _bopti_r5g6b5
0x0000000000302140 _bopti_r5g6b5a
0x0000000000302170 _bopti_p8
0x00000000003021a0 _bopti_p4
.text 0x00000000003021f0 0xf8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(mmu.c.o)
0x00000000003021f0 _utlb_addr
0x0000000000302200 _utlb_data
0x0000000000302210 _utlb_mapped_memory
.text 0x00000000003022e8 0x2e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.c.o)
0x0000000000302590 _gint_panic
0x00000000003025a0 _gint_panic_set
0x00000000003025b4 _gint_exc_catch
0x00000000003025c0 _gint_exc_skip
.text 0x00000000003025cc 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 0x00000000003025cc 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 0x00000000003025cc 0x2c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(vbr.s.o)
0x00000000003025cc _gint_setvbr
.text 0x00000000003025f8 0x9c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
0x00000000003025f8 _dsize
.text 0x0000000000302694 0x58 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dprint.c.o)
0x0000000000302694 _dprint
.text 0x00000000003026ec 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 0x00000000003026ec 0xc0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(drect.c.o)
0x00000000003026ec _drect
.text 0x00000000003027ac 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 0x00000000003027ac 0xce4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(stdio.c.o)
0x00000000003031a8 _kprint_opt
0x00000000003032f0 _kprint
0x00000000003033c8 _kvsprint
0x0000000000303410 _sprintf
0x0000000000303438 _vsprintf
0x0000000000303458 _snprintf
0x0000000000303478 _vsnprintf
.text 0x0000000000303490 0x7c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(string.c.o)
0x0000000000303490 _strlen
0x00000000003034a0 _strncpy
0x00000000003034b8 _strcat
0x00000000003034fc _strcmp
.text 0x000000000030350c 0x78 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_movmem.o)
0x000000000030350c ___movstr
0x000000000030350c ___movmem
0x0000000000303540 ___movmemSI64
0x0000000000303540 ___movstrSI64
0x0000000000303544 ___movstrSI60
0x0000000000303544 ___movmemSI60
0x0000000000303548 ___movmemSI56
0x0000000000303548 ___movstrSI56
0x000000000030354c ___movstrSI52
0x000000000030354c ___movmemSI52
0x0000000000303550 ___movstrSI48
0x0000000000303550 ___movmemSI48
0x0000000000303554 ___movstrSI44
0x0000000000303554 ___movmemSI44
0x0000000000303558 ___movstrSI40
0x0000000000303558 ___movmemSI40
0x000000000030355c ___movstrSI36
0x000000000030355c ___movmemSI36
0x0000000000303560 ___movmemSI32
0x0000000000303560 ___movstrSI32
0x0000000000303564 ___movmemSI28
0x0000000000303564 ___movstrSI28
0x0000000000303568 ___movstrSI24
0x0000000000303568 ___movmemSI24
0x000000000030356c ___movmemSI20
0x000000000030356c ___movstrSI20
0x0000000000303570 ___movstrSI16
0x0000000000303570 ___movmemSI16
0x0000000000303574 ___movmemSI12
0x0000000000303574 ___movstrSI12
0x0000000000303578 ___movmemSI8
0x0000000000303578 ___movstrSI8
0x000000000030357c ___movmemSI4
0x000000000030357c ___movstrSI4
.text 0x0000000000303584 0x1e0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_udivdi3.o)
0x0000000000303584 ___udivdi3
.text 0x0000000000303764 0x208 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_umoddi3.o)
0x0000000000303764 ___umoddi3
*fill* 0x000000000030396c 0x4
.text 0x0000000000303970 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)
0x0000000000303970 ___udiv_qrnnd_16
.text 0x00000000003039d0 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 0x0000000000300a60 0x1f0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(getkey.c.o)
0x0000000000300a60 _getkey_opt
0x0000000000300c08 _getkey
0x0000000000300c14 _getkey_repeat
.text 0x0000000000300c50 0x3ac /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000300da8 _pollevent
0x0000000000300eec _waitevent
0x0000000000300f38 _clearevents
0x0000000000300f58 _keydown
0x0000000000300f84 _keydown_all
0x0000000000300fc0 _keydown_any
.text 0x0000000000300ffc 0xdc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memory.c.o)
0x0000000000300ffc _memcpy
0x00000000003010b6 __memmove
0x00000000003010ba __memcmp
0x00000000003010be _memset
.text 0x00000000003010d8 0x4cc /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000301360 _timer_setup
0x00000000003013f0 _timer_delay
0x0000000000301450 _timer_start
0x0000000000301484 _timer_reload
0x00000000003014a4 _timer_pause
0x00000000003014d8 _timer_stop
0x0000000000301534 _timer_timeout
0x0000000000301540 _timer_address
0x0000000000301574 _timer_clear
.text 0x00000000003015a4 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 0x00000000003015a4 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dimage.c.o)
0x00000000003015a4 _dimage
0x00000000003015cc _dsubimage
.text 0x00000000003015e4 0x1c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dclear.c.o)
0x00000000003015e4 _dclear
.text 0x0000000000301600 0x1e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(bopti.c.o)
0x0000000000301600 _bopti_render
0x00000000003016f0 _bopti_render_clip
0x00000000003017b8 _bopti_render_noclip
.text 0x00000000003017e4 0x3c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dupdate.c.o)
0x00000000003017e4 _dupdate
0x0000000000301808 _dupdate_noint
.text 0x0000000000301820 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dvram.c.o)
0x0000000000301820 _dvram
0x000000000030184c _dvram_switch
.text 0x000000000030186c 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 0x000000000030186c 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 0x000000000030186c 0x104 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(setup.c.o)
0x00000000003018d8 _gint_install
0x0000000000301958 _gint_unload
.text 0x0000000000301970 0x5c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(gint.c.o)
0x0000000000301970 _gint_intlevel
0x00000000003019a8 _gint_inthandler
.text 0x00000000003019cc 0x2d4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000301a1c _r61524_win_get
0x0000000000301ad4 _r61524_win_set
0x0000000000301b94 _r61524_display
.text 0x0000000000301ca0 0xc8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x0000000000301d5c _clock_freq
.text 0x0000000000301d68 0x4c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(memset.c.o)
0x0000000000301d68 _dma_memset
.text 0x0000000000301db4 0x3f8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000302088 _dma_transfer
0x00000000003020c8 _dma_transfer_wait
0x0000000000302140 _dma_transfer_noint
.text 0x00000000003021ac 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
*fill* 0x00000000003021ac 0x4
.text 0x00000000003021b0 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)
0x00000000003021b0 _bopti_r5g6b5
0x0000000000302200 _bopti_r5g6b5a
0x0000000000302230 _bopti_p8
0x0000000000302260 _bopti_p4
.text 0x00000000003022b0 0xf8 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(mmu.c.o)
0x00000000003022b0 _utlb_addr
0x00000000003022c0 _utlb_data
0x00000000003022d0 _utlb_mapped_memory
.text 0x00000000003023a8 0x2e4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.c.o)
0x0000000000302650 _gint_panic
0x0000000000302660 _gint_panic_set
0x0000000000302674 _gint_exc_catch
0x0000000000302680 _gint_exc_skip
.text 0x000000000030268c 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 0x000000000030268c 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 0x000000000030268c 0x2c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(vbr.s.o)
0x000000000030268c _gint_setvbr
.text 0x00000000003026b8 0x9c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(topti.c.o)
0x00000000003026b8 _dsize
.text 0x0000000000302754 0x58 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dprint.c.o)
0x0000000000302754 _dprint
.text 0x00000000003027ac 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 0x00000000003027ac 0xc0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(drect.c.o)
0x00000000003027ac _drect
.text 0x000000000030286c 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 0x000000000030286c 0xce4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(stdio.c.o)
0x0000000000303268 _kprint_opt
0x00000000003033b0 _kprint
0x0000000000303488 _kvsprint
0x00000000003034d0 _sprintf
0x00000000003034f8 _vsprintf
0x0000000000303518 _snprintf
0x0000000000303538 _vsnprintf
.text 0x0000000000303550 0x7c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(string.c.o)
0x0000000000303550 _strlen
0x0000000000303560 _strncpy
0x0000000000303578 _strcat
0x00000000003035bc _strcmp
.text 0x00000000003035cc 0x78 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_movmem.o)
0x00000000003035cc ___movstr
0x00000000003035cc ___movmem
0x0000000000303600 ___movmemSI64
0x0000000000303600 ___movstrSI64
0x0000000000303604 ___movstrSI60
0x0000000000303604 ___movmemSI60
0x0000000000303608 ___movmemSI56
0x0000000000303608 ___movstrSI56
0x000000000030360c ___movstrSI52
0x000000000030360c ___movmemSI52
0x0000000000303610 ___movstrSI48
0x0000000000303610 ___movmemSI48
0x0000000000303614 ___movstrSI44
0x0000000000303614 ___movmemSI44
0x0000000000303618 ___movstrSI40
0x0000000000303618 ___movmemSI40
0x000000000030361c ___movstrSI36
0x000000000030361c ___movmemSI36
0x0000000000303620 ___movmemSI32
0x0000000000303620 ___movstrSI32
0x0000000000303624 ___movmemSI28
0x0000000000303624 ___movstrSI28
0x0000000000303628 ___movstrSI24
0x0000000000303628 ___movmemSI24
0x000000000030362c ___movmemSI20
0x000000000030362c ___movstrSI20
0x0000000000303630 ___movstrSI16
0x0000000000303630 ___movmemSI16
0x0000000000303634 ___movmemSI12
0x0000000000303634 ___movstrSI12
0x0000000000303638 ___movmemSI8
0x0000000000303638 ___movstrSI8
0x000000000030363c ___movmemSI4
0x000000000030363c ___movstrSI4
.text 0x0000000000303644 0x1e0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_udivdi3.o)
0x0000000000303644 ___udivdi3
.text 0x0000000000303824 0x208 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_umoddi3.o)
0x0000000000303824 ___umoddi3
*fill* 0x0000000000303a2c 0x4
.text 0x0000000000303a30 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)
0x0000000000303a30 ___udiv_qrnnd_16
.text 0x0000000000303a90 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 0x00000000003039d0 0x140
.gint.blocks 0x0000000000303a90 0x140
*(.gint.blocks)
.gint.blocks 0x00000000003039d0 0xe0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x00000000003039d0 _inth_tmu
0x0000000000303a50 _inth_etmu2
0x0000000000303a70 _inth_etmu_help
0x0000000000303a90 _inth_etmux
.gint.blocks 0x0000000000303ab0 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x0000000000303ab0 _inth_dma_te
0x0000000000303ad0 _inth_dma_ae
.gint.blocks 0x0000000000303af0 0x20 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.S.o)
0x0000000000303af0 _gint_inth_7305
.gint.blocks 0x0000000000303a90 0xe0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x0000000000303a90 _inth_tmu
0x0000000000303b10 _inth_etmu2
0x0000000000303b30 _inth_etmu_help
0x0000000000303b50 _inth_etmux
.gint.blocks 0x0000000000303b70 0x40 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.s.o)
0x0000000000303b70 _inth_dma_te
0x0000000000303b90 _inth_dma_ae
.gint.blocks 0x0000000000303bb0 0x20 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(inth.S.o)
0x0000000000303bb0 _gint_inth_7305
.gint.drivers 0x0000000000303b10 0xc8
0x0000000000303b10 _bdrv = .
.gint.drivers 0x0000000000303bd0 0xc8
0x0000000000303bd0 _bdrv = .
*(.gint.drivers.0)
*(.gint.drivers.1)
.gint.drivers.1
0x0000000000303b10 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x0000000000303b10 _drv_cpg
0x0000000000303bd0 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(cpg.c.o)
0x0000000000303bd0 _drv_cpg
*(.gint.drivers.2)
.gint.drivers.2
0x0000000000303b38 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000303b38 _drv_tmu
0x0000000000303bf8 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x0000000000303bf8 _drv_tmu
.gint.drivers.2
0x0000000000303b60 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000303b60 _drv_dma0
0x0000000000303c20 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x0000000000303c20 _drv_dma0
*(.gint.drivers.3)
*(.gint.drivers.4)
.gint.drivers.4
0x0000000000303b88 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000303b88 _drv_keysc
0x0000000000303c48 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(keysc.c.o)
0x0000000000303c48 _drv_keysc
*(.gint.drivers.5)
.gint.drivers.5
0x0000000000303bb0 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000303bb0 _drv_r61524
0x0000000000303c70 0x28 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(r61524.c.o)
0x0000000000303c70 _drv_r61524
*(.gint.drivers.6)
0x0000000000303bd8 _edrv = .
0x0000000000303c98 _edrv = .
.rodata 0x0000000000303bd8 0x10e0
.rodata 0x0000000000303c98 0x10e0
*(.rodata.4)
*(.rodata .rodata.*)
.rodata 0x0000000000303bd8 0x208 build-cg/assets/img/grass_1.png.o
0x0000000000303bd8 _img_grass_1
0x0000000000303de0 _img_grass_1_end
.rodata 0x0000000000303de0 0x208 build-cg/assets/img/grass_2.png.o
0x0000000000303de0 _img_grass_2
0x0000000000303fe8 _img_grass_2_end
.rodata 0x0000000000303fe8 0x208 build-cg/assets/img/grass_3.png.o
0x0000000000303fe8 _img_grass_3
0x00000000003041f0 _img_grass_3_end
.rodata 0x00000000003041f0 0x208 build-cg/assets/img/player.png.o
0x00000000003041f0 _img_player
0x00000000003043f8 _img_player_end
.rodata 0x0000000000303c98 0x208 build-cg/assets/img/grass_1.png.o
0x0000000000303c98 _img_grass_1
0x0000000000303ea0 _img_grass_1_end
.rodata 0x0000000000303ea0 0x208 build-cg/assets/img/grass_2.png.o
0x0000000000303ea0 _img_grass_2
0x00000000003040a8 _img_grass_2_end
.rodata 0x00000000003040a8 0x208 build-cg/assets/img/grass_3.png.o
0x00000000003040a8 _img_grass_3
0x00000000003042b0 _img_grass_3_end
.rodata 0x00000000003042b0 0x208 build-cg/assets/img/player.png.o
0x00000000003042b0 _img_player
0x00000000003044b8 _img_player_end
.rodata.str1.4
0x00000000003043f8 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* 0x00000000003043fe 0x2
0x00000000003044b8 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* 0x00000000003044be 0x2
.rodata.str1.4
0x0000000000304400 0x4 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(tmu.c.o)
0x00000000003044c0 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
0x0000000000304404 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* 0x000000000030440b 0x1
0x00000000003044c4 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* 0x00000000003044cb 0x1
.rodata.str1.4
0x000000000030440c 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 0x0000000000304410 0x30 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(dma.c.o)
0x00000000003044cc 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 0x00000000003044d0 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
0x0000000000304440 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* 0x0000000000304445 0x3
0x0000000000304500 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* 0x0000000000304505 0x3
.rodata.str1.4
0x0000000000304448 0x288 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(exch.c.o)
0x0000000000304508 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 0x00000000003046d0 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 0x00000000003046e8 0x49c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(font8x9.png.o)
0x00000000003046e8 _gint_font8x9
0x0000000000304b84 _gint_font8x9_end
.rodata 0x0000000000304790 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 0x00000000003047a8 0x49c /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(font8x9.png.o)
0x00000000003047a8 _gint_font8x9
0x0000000000304c44 _gint_font8x9_end
.rodata.str1.4
0x0000000000304b84 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* 0x0000000000304bb5 0x3
.rodata 0x0000000000304bb8 0x100 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_clz.o)
0x0000000000304bb8 ___clz_tab
0x0000000000304c44 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* 0x0000000000304c75 0x3
.rodata 0x0000000000304c78 0x100 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/m4-nofpu/libgcc.a(_clz.o)
0x0000000000304c78 ___clz_tab
.rela.dyn 0x0000000000304cb8 0x0
.rela.dyn 0x0000000000304d78 0x0
.rela.pretext.entry
0x0000000000304cb8 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 0x0000000000304cb8 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 0x0000000000304cb8 0x0 /home/leno/opt/sh-elf-2.34-9.3.0/lib/gcc/sh3eb-elf/9.3.0/libgint-cg.a(start.c.o)
0x0000000000304d78 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 0x0000000000304d78 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 0x0000000000304d78 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
@ -475,8 +475,8 @@ 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 0x0000000000304cb8
0x0000000000304cb8 _ldata = LOADADDR (.data)
.data 0x0000000008102150 0x90 load address 0x0000000000304d78
0x0000000000304d78 _ldata = LOADADDR (.data)
0x0000000008102150 _rdata = .
*(.data .data.*)
.data 0x0000000008102150 0x0 build-cg/src/main.c.o
@ -524,29 +524,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 0x0000000000304d48
.data.4 0x00000000081021e0 0x0 load address 0x0000000000304e08
*(.data.4)
0x00000000081021e0 . = ALIGN (0x10)
0x0000000000000090 _sdata = (SIZEOF (.data) + SIZEOF (.data.4))
0x00000000e5200000 . = ORIGIN (ilram)
.ilram 0x00000000e5200000 0x20 load address 0x0000000000304d48
0x0000000000304d48 _lilram = LOADADDR (.ilram)
.ilram 0x00000000e5200000 0x20 load address 0x0000000000304e08
0x0000000000304e08 _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 0x0000000000304d68
0x0000000000304d68 _lxram = LOADADDR (.xram)
.xram 0x00000000e5007000 0x0 load address 0x0000000000304e28
0x0000000000304e28 _lxram = LOADADDR (.xram)
0x00000000e5007000 _rxram = .
*(.xram)
0x00000000e5007000 . = ALIGN (0x10)
0x00000000e5017000 . = ORIGIN (yram)
.yram 0x00000000e5017000 0x0 load address 0x0000000000304d68
0x0000000000304d68 _lyram = LOADADDR (.yram)
.yram 0x00000000e5017000 0x0 load address 0x0000000000304e28
0x0000000000304e28 _lyram = LOADADDR (.yram)
0x00000000e5017000 _ryram = .
*(.yram)
0x00000000e5017000 . = ALIGN (0x10)
@ -556,8 +556,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 0x0000000000304d68
0x0000000000304d68 _lgdata = LOADADDR (.gint.data)
.gint.data 0x000000008c161400 0xe0 load address 0x0000000000304e28
0x0000000000304e28 _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)
@ -575,7 +575,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 0x0000000000304e48
.gint.bss 0x000000008c1614e0 0x300 load address 0x0000000000304f08
*(.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

@ -5,8 +5,14 @@ int main(void)
{
//Initialisation de la map
int xMap = 50;
int yMap = 14;
int map[14][50] = { {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},
int yMap = 20;
int map[20][50] = { {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},
@ -33,17 +39,20 @@ int main(void)
int xCamera, yCamera;
int xCameraOffset = 12;
int yCameraOffset = 7;
int xCameraMax = 0;
//Boucle de jeu
while(1)
{
//Positionement de la caméra par rapport au joueur
xCameraMax = 0;
if (x-xCameraOffset < 0)
{
xCamera = 0;
} else if (x+xCameraOffset > xMap)
} else if (x+xCameraOffset > xMap-1)
{
xCamera = xMap-xCameraOffset*2;
xCamera = xMap-1-xCameraOffset*2;
xCameraMax = 1;
}else
{
xCamera = x-xCameraOffset;
@ -70,20 +79,20 @@ int main(void)
switch(map[j+yCamera][i+xCamera])
{
case 0:
dimage(i*16, j*16, &img_grass_1);
dimage(i*16-(4*xCameraMax), j*16, &img_grass_1);
break;
case 1:
dimage(i*16, j*16, &img_grass_2);
dimage(i*16-(4*xCameraMax), j*16, &img_grass_2);
break;
case 2:
dimage(i*16, j*16, &img_grass_3);
dimage(i*16-(4*xCameraMax), j*16, &img_grass_3);
break;
}
}
}
//Affichage de l'écran
dimage((x-xCamera)*16, (y-yCamera)*16, &img_player);
dimage((x-xCamera)*16-(4*xCameraMax), (y-yCamera)*16, &img_player);
dupdate();
//Gestion du clavier
@ -91,15 +100,32 @@ int main(void)
{
case KEY_UP:
y--;
if (y < 0)
{
y = 0:
}
break;
case KEY_DOWN:
y++;
if (y > yMap)
{
y = yMap:
}
break;
case KEY_LEFT:
x--;
if (x < 0)
{
x = 0:
}
break;
case KEY_RIGHT:
x++;
if (x > xMap)
{
x = xMap:
}
break;
break;
case KEY_EXE:
return 0;