fix bug of zbuffer and prepare face drawing

This commit is contained in:
util1 2019-07-26 15:07:11 +02:00
parent 1881d3df1b
commit 7139f8b757
8 changed files with 245 additions and 260 deletions

BIN
1v13D.g1a

Binary file not shown.

View File

@ -295,7 +295,7 @@ LOAD build-fx/assets/fonts/FxEngine.png.o
LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a
LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a
0x0000000000300000 _brom = 0x300000
0x000000000000507c _srom = ((((0x200 + SIZEOF (.text)) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks))
0x000000000000502c _srom = ((((0x200 + SIZEOF (.text)) + SIZEOF (.rodata)) + SIZEOF (.gint.drivers)) + SIZEOF (.gint.blocks))
.pretext 0x0000000000300200 0x890
*(.pretext.entry)
@ -334,7 +334,7 @@ LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a
*(.dtors .dtors.*)
0x0000000000300a90 _etors = .
.text 0x0000000000300a90 0x4458
.text 0x0000000000300a90 0x4408
*(.text .text.*)
.text 0x0000000000300a90 0x154 build-fx/src/FxEngine/libprof.o
0x0000000000300a90 _prof_time
@ -354,265 +354,265 @@ LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a
0x0000000000301490 _FE_get_fps_current
0x00000000003014b0 _FE_get_fps_min
0x00000000003014d0 _FE_get_fps_max
.text 0x00000000003014f0 0x19c build-fx/src/FxEngine/face.o
.text 0x00000000003014f0 0x148 build-fx/src/FxEngine/face.o
0x00000000003014f0 _FE_draw_face
.text 0x000000000030168c 0xbc build-fx/src/FxEngine/zbuffer.o
0x000000000030168c _FE_zbuffer_clear
0x00000000003016f8 _FE_zbuffer_set_dist
.text 0x0000000000301748 0x0 build-fx/src/main.o
.text.startup 0x0000000000301748 0xa4 build-fx/src/main.o
0x0000000000301748 _main
.text 0x00000000003017ec 0x74 build-fx/src/controls.o
0x00000000003017ec _init_controls
0x00000000003017fc _reload_fps_displaying
0x0000000000301820 _display_fps
.text 0x0000000000301860 0x150 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
0x00000000003019a4 _clock_freq
.text 0x00000000003019b0 0x2c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
0x0000000000301b54 _pollevent
0x0000000000301c40 _waitevent
.text 0x0000000000301c78 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(hardware.c.o)
.text 0x0000000000301c78 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(syscalls.S.o)
.text 0x0000000000301c78 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(start.c.o)
.text 0x0000000000301c78 0x1f4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(mmu.c.o)
0x0000000000301c78 _tlb_addr
0x0000000000301c8c _tlb_data
0x0000000000301ca0 _tlb_mapped_memory
0x0000000000301d74 _utlb_addr
0x0000000000301d84 _utlb_data
0x0000000000301d94 _utlb_mapped_memory
.text 0x0000000000301e6c 0x56c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
0x000000000030218c _timer_setup
0x000000000030221c _timer_delay
0x000000000030227c _timer_start
0x00000000003022b0 _timer_reload
0x00000000003022d0 _timer_pause
0x0000000000302304 _timer_stop
0x0000000000302360 _timer_timeout
0x000000000030236c _timer_address
0x00000000003023a8 _timer_clear
.text 0x00000000003023d8 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
0x00000000003023d8 _dsize
.text 0x0000000000302474 0x50 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dpixel.c.o)
0x0000000000302474 _dpixel
.text 0x00000000003024c4 0x54 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dimage.c.o)
0x00000000003024c4 _dimage
0x00000000003024f8 _dsubimage
.text 0x0000000000302518 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dupdate.c.o)
0x0000000000302518 _dupdate
0x0000000000302530 _dupdate_noint
.text 0x000000000030253c 0x4c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dclear.c.o)
0x000000000030253c _dclear
.text 0x0000000000302588 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
.text 0x0000000000302588 0xc00 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(stdio.c.o)
0x0000000000302eb0 _kprint_opt
0x0000000000302fe8 _kprint
0x00000000003030c0 _kvsprint
0x0000000000303108 _sprintf
0x0000000000303130 _vsprintf
0x0000000000303150 _snprintf
0x0000000000303170 _vsnprintf
.text 0x0000000000303188 0xdc /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(memory.c.o)
0x0000000000303188 _memcpy
0x0000000000303242 __memmove
0x0000000000303246 __memcmp
0x000000000030324a _memset
.text 0x0000000000303264 0x1d8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x00000000003032fc _t6k11_display
0x00000000003033d0 _t6k11_contrast
0x00000000003033fc _t6k11_backlight
.text 0x000000000030343c 0x1c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(getkey.c.o)
0x000000000030343c _getkey_opt
0x00000000003035bc _getkey
0x00000000003035c8 _getkey_repeat
.text 0x0000000000303604 0x124 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(iokbd.c.o)
0x0000000000303610 _iokbd_row
0x00000000003036f8 _iokbd_scan
.text 0x0000000000303728 0x170 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(setup.c.o)
0x00000000003037dc _gint_install
0x0000000000303880 _gint_unload
.text 0x0000000000303898 0x2c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(vbr.s.o)
0x0000000000303898 _gint_setvbr
.text 0x00000000003038c4 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(gint.c.o)
0x00000000003038c4 _gint_intlevel
0x0000000000303918 _gint_inthandler
.text 0x000000000030393c 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.S.o)
.text 0x000000000030393c 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(exch.S.o)
.text 0x000000000030393c 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.s.o)
.text 0x000000000030393c 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti-asm.s.o)
.text 0x000000000030393c 0x3b0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti.c.o)
0x000000000030393c _bopti_grid
0x0000000000303a92 _bopti_render
0x0000000000303b98 _bopti_render_clip
0x0000000000303ca0 _bopti_render_noclip
.text 0x0000000000303cec 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(masks.c.o)
0x0000000000303cec _masks
.text 0x0000000000303d88 0x60 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti-asm.s.o)
0x0000000000303d88 _bopti_asm_mono
0x0000000000303dae _bopti_asm_mono_alpha
0x0000000000303de0 _bopti_asm_gray
0x0000000000303de4 _bopti_asm_gray_alpha
.text 0x0000000000303de8 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_movmem.o)
0x0000000000303de8 ___movstr
0x0000000000303de8 ___movmem
0x0000000000303e1c ___movmemSI64
0x0000000000303e1c ___movstrSI64
0x0000000000303e20 ___movstrSI60
0x0000000000303e20 ___movmemSI60
0x0000000000303e24 ___movmemSI56
0x0000000000303e24 ___movstrSI56
0x0000000000303e28 ___movstrSI52
0x0000000000303e28 ___movmemSI52
0x0000000000303e2c ___movstrSI48
0x0000000000303e2c ___movmemSI48
0x0000000000303e30 ___movstrSI44
0x0000000000303e30 ___movmemSI44
0x0000000000303e34 ___movstrSI40
0x0000000000303e34 ___movmemSI40
0x0000000000303e38 ___movstrSI36
0x0000000000303e38 ___movmemSI36
0x0000000000303e3c ___movmemSI32
0x0000000000303e3c ___movstrSI32
0x0000000000303e40 ___movmemSI28
0x0000000000303e40 ___movstrSI28
0x0000000000303e44 ___movstrSI24
0x0000000000303e44 ___movmemSI24
0x0000000000303e48 ___movmemSI20
0x0000000000303e48 ___movstrSI20
0x0000000000303e4c ___movstrSI16
0x0000000000303e4c ___movmemSI16
0x0000000000303e50 ___movmemSI12
0x0000000000303e50 ___movstrSI12
0x0000000000303e54 ___movmemSI8
0x0000000000303e54 ___movstrSI8
0x0000000000303e58 ___movmemSI4
0x0000000000303e58 ___movstrSI4
.text 0x0000000000303e60 0xa0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_sdivsi3.o)
0x0000000000303e60 ___sdivsi3
.text 0x0000000000303f00 0x6c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivsi3.o)
0x0000000000303f22 ___udivsi3
.text 0x0000000000303f6c 0x1f0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivdi3.o)
0x0000000000303f6c ___udivdi3
.text 0x000000000030415c 0x348 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_addsub_df.o)
0x0000000000304400 ___adddf3
0x0000000000304450 ___subdf3
.text 0x00000000003044a4 0x208 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_mul_df.o)
0x00000000003044a4 ___muldf3
.text 0x00000000003046ac 0x130 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_div_df.o)
0x00000000003046ac ___divdf3
.text 0x00000000003047dc 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_gt_df.o)
0x00000000003047dc ___gtdf2
.text 0x0000000000304834 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_ge_df.o)
0x0000000000304834 ___gedf2
.text 0x000000000030488c 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_lt_df.o)
0x000000000030488c ___ltdf2
.text 0x00000000003048e4 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_le_df.o)
0x00000000003048e4 ___ledf2
.text 0x000000000030493c 0x98 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_si_to_df.o)
0x000000000030493c ___floatsidf
.text 0x00000000003049d4 0x8c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_df_to_si.o)
0x00000000003049d4 ___fixdfsi
.text 0x0000000000304a60 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_thenan_df.o)
.text 0x0000000000304a60 0x60 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udiv_qrnnd_16.o)
0x0000000000304a60 ___udiv_qrnnd_16
.text 0x0000000000304ac0 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_clz.o)
.text 0x0000000000304ac0 0x54 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_clzsi2.o)
0x0000000000304ac0 ___clzsi2
.text 0x0000000000304b14 0x240 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_pack_df.o)
0x0000000000304b14 ___pack_d
.text 0x0000000000304d54 0xcc /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_unpack_df.o)
0x0000000000304d54 ___unpack_d
.text 0x0000000000304e20 0xc8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_fpcmp_parts_df.o)
0x0000000000304e20 ___fpcmp_parts_d
.text 0x0000000000301638 0xc0 build-fx/src/FxEngine/zbuffer.o
0x0000000000301638 _FE_zbuffer_clear
0x00000000003016a4 _FE_zbuffer_set_dist
.text 0x00000000003016f8 0x0 build-fx/src/main.o
.text.startup 0x00000000003016f8 0xa4 build-fx/src/main.o
0x00000000003016f8 _main
.text 0x000000000030179c 0x74 build-fx/src/controls.o
0x000000000030179c _init_controls
0x00000000003017ac _reload_fps_displaying
0x00000000003017d0 _display_fps
.text 0x0000000000301810 0x150 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
0x0000000000301954 _clock_freq
.text 0x0000000000301960 0x2c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
0x0000000000301b04 _pollevent
0x0000000000301bf0 _waitevent
.text 0x0000000000301c28 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(hardware.c.o)
.text 0x0000000000301c28 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(syscalls.S.o)
.text 0x0000000000301c28 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(start.c.o)
.text 0x0000000000301c28 0x1f4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(mmu.c.o)
0x0000000000301c28 _tlb_addr
0x0000000000301c3c _tlb_data
0x0000000000301c50 _tlb_mapped_memory
0x0000000000301d24 _utlb_addr
0x0000000000301d34 _utlb_data
0x0000000000301d44 _utlb_mapped_memory
.text 0x0000000000301e1c 0x56c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
0x000000000030213c _timer_setup
0x00000000003021cc _timer_delay
0x000000000030222c _timer_start
0x0000000000302260 _timer_reload
0x0000000000302280 _timer_pause
0x00000000003022b4 _timer_stop
0x0000000000302310 _timer_timeout
0x000000000030231c _timer_address
0x0000000000302358 _timer_clear
.text 0x0000000000302388 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
0x0000000000302388 _dsize
.text 0x0000000000302424 0x50 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dpixel.c.o)
0x0000000000302424 _dpixel
.text 0x0000000000302474 0x54 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dimage.c.o)
0x0000000000302474 _dimage
0x00000000003024a8 _dsubimage
.text 0x00000000003024c8 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dupdate.c.o)
0x00000000003024c8 _dupdate
0x00000000003024e0 _dupdate_noint
.text 0x00000000003024ec 0x4c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(dclear.c.o)
0x00000000003024ec _dclear
.text 0x0000000000302538 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
.text 0x0000000000302538 0xc00 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(stdio.c.o)
0x0000000000302e60 _kprint_opt
0x0000000000302f98 _kprint
0x0000000000303070 _kvsprint
0x00000000003030b8 _sprintf
0x00000000003030e0 _vsprintf
0x0000000000303100 _snprintf
0x0000000000303120 _vsnprintf
.text 0x0000000000303138 0xdc /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(memory.c.o)
0x0000000000303138 _memcpy
0x00000000003031f2 __memmove
0x00000000003031f6 __memcmp
0x00000000003031fa _memset
.text 0x0000000000303214 0x1d8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x00000000003032ac _t6k11_display
0x0000000000303380 _t6k11_contrast
0x00000000003033ac _t6k11_backlight
.text 0x00000000003033ec 0x1c8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(getkey.c.o)
0x00000000003033ec _getkey_opt
0x000000000030356c _getkey
0x0000000000303578 _getkey_repeat
.text 0x00000000003035b4 0x124 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(iokbd.c.o)
0x00000000003035c0 _iokbd_row
0x00000000003036a8 _iokbd_scan
.text 0x00000000003036d8 0x170 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(setup.c.o)
0x000000000030378c _gint_install
0x0000000000303830 _gint_unload
.text 0x0000000000303848 0x2c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(vbr.s.o)
0x0000000000303848 _gint_setvbr
.text 0x0000000000303874 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(gint.c.o)
0x0000000000303874 _gint_intlevel
0x00000000003038c8 _gint_inthandler
.text 0x00000000003038ec 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.S.o)
.text 0x00000000003038ec 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(exch.S.o)
.text 0x00000000003038ec 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.s.o)
.text 0x00000000003038ec 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti-asm.s.o)
.text 0x00000000003038ec 0x3b0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti.c.o)
0x00000000003038ec _bopti_grid
0x0000000000303a42 _bopti_render
0x0000000000303b48 _bopti_render_clip
0x0000000000303c50 _bopti_render_noclip
.text 0x0000000000303c9c 0x9c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(masks.c.o)
0x0000000000303c9c _masks
.text 0x0000000000303d38 0x60 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(bopti-asm.s.o)
0x0000000000303d38 _bopti_asm_mono
0x0000000000303d5e _bopti_asm_mono_alpha
0x0000000000303d90 _bopti_asm_gray
0x0000000000303d94 _bopti_asm_gray_alpha
.text 0x0000000000303d98 0x78 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_movmem.o)
0x0000000000303d98 ___movstr
0x0000000000303d98 ___movmem
0x0000000000303dcc ___movmemSI64
0x0000000000303dcc ___movstrSI64
0x0000000000303dd0 ___movstrSI60
0x0000000000303dd0 ___movmemSI60
0x0000000000303dd4 ___movmemSI56
0x0000000000303dd4 ___movstrSI56
0x0000000000303dd8 ___movstrSI52
0x0000000000303dd8 ___movmemSI52
0x0000000000303ddc ___movstrSI48
0x0000000000303ddc ___movmemSI48
0x0000000000303de0 ___movstrSI44
0x0000000000303de0 ___movmemSI44
0x0000000000303de4 ___movstrSI40
0x0000000000303de4 ___movmemSI40
0x0000000000303de8 ___movstrSI36
0x0000000000303de8 ___movmemSI36
0x0000000000303dec ___movmemSI32
0x0000000000303dec ___movstrSI32
0x0000000000303df0 ___movmemSI28
0x0000000000303df0 ___movstrSI28
0x0000000000303df4 ___movstrSI24
0x0000000000303df4 ___movmemSI24
0x0000000000303df8 ___movmemSI20
0x0000000000303df8 ___movstrSI20
0x0000000000303dfc ___movstrSI16
0x0000000000303dfc ___movmemSI16
0x0000000000303e00 ___movmemSI12
0x0000000000303e00 ___movstrSI12
0x0000000000303e04 ___movmemSI8
0x0000000000303e04 ___movstrSI8
0x0000000000303e08 ___movmemSI4
0x0000000000303e08 ___movstrSI4
.text 0x0000000000303e10 0xa0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_sdivsi3.o)
0x0000000000303e10 ___sdivsi3
.text 0x0000000000303eb0 0x6c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivsi3.o)
0x0000000000303ed2 ___udivsi3
.text 0x0000000000303f1c 0x1f0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udivdi3.o)
0x0000000000303f1c ___udivdi3
.text 0x000000000030410c 0x348 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_addsub_df.o)
0x00000000003043b0 ___adddf3
0x0000000000304400 ___subdf3
.text 0x0000000000304454 0x208 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_mul_df.o)
0x0000000000304454 ___muldf3
.text 0x000000000030465c 0x130 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_div_df.o)
0x000000000030465c ___divdf3
.text 0x000000000030478c 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_gt_df.o)
0x000000000030478c ___gtdf2
.text 0x00000000003047e4 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_ge_df.o)
0x00000000003047e4 ___gedf2
.text 0x000000000030483c 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_lt_df.o)
0x000000000030483c ___ltdf2
.text 0x0000000000304894 0x58 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_le_df.o)
0x0000000000304894 ___ledf2
.text 0x00000000003048ec 0x98 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_si_to_df.o)
0x00000000003048ec ___floatsidf
.text 0x0000000000304984 0x8c /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_df_to_si.o)
0x0000000000304984 ___fixdfsi
.text 0x0000000000304a10 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_thenan_df.o)
.text 0x0000000000304a10 0x60 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_udiv_qrnnd_16.o)
0x0000000000304a10 ___udiv_qrnnd_16
.text 0x0000000000304a70 0x0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_clz.o)
.text 0x0000000000304a70 0x54 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_clzsi2.o)
0x0000000000304a70 ___clzsi2
.text 0x0000000000304ac4 0x240 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_pack_df.o)
0x0000000000304ac4 ___pack_d
.text 0x0000000000304d04 0xcc /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_unpack_df.o)
0x0000000000304d04 ___unpack_d
.text 0x0000000000304dd0 0xc8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_fpcmp_parts_df.o)
0x0000000000304dd0 ___fpcmp_parts_d
*(C P)
.gint.blocks 0x0000000000304ef0 0x140
.gint.blocks 0x0000000000304ea0 0x140
*(.gint.blocks)
.gint.blocks 0x0000000000304ef0 0x40 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.S.o)
0x0000000000304ef0 _inth_entry_7305
0x0000000000304f10 _inth_entry_7705
.gint.blocks 0x0000000000304f30 0x20 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(exch.S.o)
0x0000000000304f30 _exch_entry_7705
0x0000000000304f30 _exch_entry_7305
.gint.blocks 0x0000000000304f50 0xe0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.s.o)
0x0000000000304f50 _inth_tmu
0x0000000000304fd0 _inth_etmu2
0x0000000000304ff0 _inth_etmu_help
0x0000000000305010 _inth_etmux
.gint.blocks 0x0000000000304ea0 0x40 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.S.o)
0x0000000000304ea0 _inth_entry_7305
0x0000000000304ec0 _inth_entry_7705
.gint.blocks 0x0000000000304ee0 0x20 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(exch.S.o)
0x0000000000304ee0 _exch_entry_7705
0x0000000000304ee0 _exch_entry_7305
.gint.blocks 0x0000000000304f00 0xe0 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(inth.s.o)
0x0000000000304f00 _inth_tmu
0x0000000000304f80 _inth_etmu2
0x0000000000304fa0 _inth_etmu_help
0x0000000000304fc0 _inth_etmux
.gint.drivers 0x0000000000305030 0x90
0x0000000000305030 _bdrv = .
.gint.drivers 0x0000000000304fe0 0x90
0x0000000000304fe0 _bdrv = .
*(.gint.drivers.0)
*(.gint.drivers.1)
.gint.drivers.1
0x0000000000305030 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
0x0000000000305030 _drv_cpg
0x0000000000304fe0 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
0x0000000000304fe0 _drv_cpg
*(.gint.drivers.2)
.gint.drivers.2
0x0000000000305054 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
0x0000000000305054 _drv_tmu
0x0000000000305004 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
0x0000000000305004 _drv_tmu
*(.gint.drivers.3)
*(.gint.drivers.4)
.gint.drivers.4
0x0000000000305078 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
0x0000000000305078 _drv_keysc
0x0000000000305028 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
0x0000000000305028 _drv_keysc
*(.gint.drivers.5)
.gint.drivers.5
0x000000000030509c 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x000000000030509c _drv_t6k11
0x000000000030504c 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x000000000030504c _drv_t6k11
*(.gint.drivers.6)
0x00000000003050c0 _edrv = .
0x0000000000305070 _edrv = .
.rodata 0x00000000003050c0 0x854
.rodata 0x0000000000305070 0x854
*(.rodata .rodata.*)
.rodata 0x00000000003050c0 0x10 build-fx/src/FxEngine/texture.o
0x00000000003050c0 _FE_textures
.rodata 0x00000000003050d0 0x18 build-fx/src/FxEngine/coord.o
0x00000000003050d0 _pi_sur2
0x00000000003050d8 _pi2
0x00000000003050e0 _pi
.rodata 0x0000000000305070 0x10 build-fx/src/FxEngine/texture.o
0x0000000000305070 _FE_textures
.rodata 0x0000000000305080 0x18 build-fx/src/FxEngine/coord.o
0x0000000000305080 _pi_sur2
0x0000000000305088 _pi2
0x0000000000305090 _pi
.rodata.str1.4
0x00000000003050e8 0x9 build-fx/src/FxEngine/FxEngine.o
*fill* 0x00000000003050f1 0x3
0x0000000000305098 0x9 build-fx/src/FxEngine/FxEngine.o
*fill* 0x00000000003050a1 0x3
.rodata.str1.4
0x00000000003050f4 0x12 build-fx/src/FxEngine/zbuffer.o
*fill* 0x0000000000305106 0x2
.rodata 0x0000000000305108 0x60 build-fx/src/main.o
0x00000000003050a4 0x12 build-fx/src/FxEngine/zbuffer.o
*fill* 0x00000000003050b6 0x2
.rodata 0x00000000003050b8 0x60 build-fx/src/main.o
.rodata.str1.4
0x0000000000305168 0x3 build-fx/src/controls.o
*fill* 0x000000000030516b 0x1
.rodata 0x000000000030516c 0x24 build-fx/assets/img/fps.png.o
0x000000000030516c _img_fps
0x0000000000305190 _img_fps_end
.rodata 0x0000000000305190 0x204 build-fx/assets/fonts/FxEngine.png.o
0x0000000000305190 _font_FxEngine
0x0000000000305394 _font_FxEngine_end
0x0000000000305118 0x3 build-fx/src/controls.o
*fill* 0x000000000030511b 0x1
.rodata 0x000000000030511c 0x24 build-fx/assets/img/fps.png.o
0x000000000030511c _img_fps
0x0000000000305140 _img_fps_end
.rodata 0x0000000000305140 0x204 build-fx/assets/fonts/FxEngine.png.o
0x0000000000305140 _font_FxEngine
0x0000000000305344 _font_FxEngine_end
.rodata.str1.4
0x0000000000305394 0x4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
0x0000000000305344 0x4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
.rodata.str1.4
0x0000000000305398 0x6 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
*fill* 0x000000000030539e 0x2
0x0000000000305348 0x6 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
*fill* 0x000000000030534e 0x2
.rodata.str1.4
0x00000000003053a0 0x4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
.rodata 0x00000000003053a4 0x18 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
0x0000000000305350 0x4 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(tmu.c.o)
.rodata 0x0000000000305354 0x18 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(topti.c.o)
.rodata.str1.4
0x00000000003053bc 0x31 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(stdio.c.o)
*fill* 0x00000000003053ed 0x3
0x000000000030536c 0x31 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(stdio.c.o)
*fill* 0x000000000030539d 0x3
.rodata.str1.4
0x00000000003053f0 0x8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x00000000003053a0 0x8 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(t6k11.c.o)
0x6 (size before relaxing)
.rodata 0x00000000003053f8 0x408 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(font5x7.png.o)
0x00000000003053f8 _gint_font5x7
0x0000000000305800 _gint_font5x7_end
.rodata 0x0000000000305800 0x14 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_thenan_df.o)
0x0000000000305800 ___thenan_df
.rodata 0x0000000000305814 0x100 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_clz.o)
0x0000000000305814 ___clz_tab
.rodata 0x00000000003053a8 0x408 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(font5x7.png.o)
0x00000000003053a8 _gint_font5x7
0x00000000003057b0 _gint_font5x7_end
.rodata 0x00000000003057b0 0x14 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_thenan_df.o)
0x00000000003057b0 ___thenan_df
.rodata 0x00000000003057c4 0x100 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a(_clz.o)
0x00000000003057c4 ___clz_tab
.rela.dyn 0x0000000000305914 0x0
.rela.text 0x0000000000305914 0x0 build-fx/src/FxEngine/coord.o
.rela.dyn 0x00000000003058c4 0x0
.rela.text 0x00000000003058c4 0x0 build-fx/src/FxEngine/coord.o
.rela.pretext.entry
0x0000000000305914 0x0 build-fx/src/FxEngine/coord.o
0x00000000003058c4 0x0 build-fx/src/FxEngine/coord.o
0x0000000008100000 . = ORIGIN (ram)
.bss 0x0000000008100000 0x5b0
@ -688,8 +688,8 @@ LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a
*fill* 0x00000000081005ac 0x4
0x00000000000005b0 _sbss = SIZEOF (.bss)
.data 0x00000000081005b0 0x110 load address 0x0000000000305914
0x0000000000305914 _ldata = LOADADDR (.data)
.data 0x00000000081005b0 0x110 load address 0x00000000003058c4
0x00000000003058c4 _ldata = LOADADDR (.data)
0x00000000081005b0 _rdata = .
*(.data .data.*)
.data 0x00000000081005b0 0x0 build-fx/src/FxEngine/libprof.o
@ -755,15 +755,15 @@ LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a
*(D)
0x00000000081006c0 . = ALIGN (0x10)
.data.4 0x00000000081006c0 0x0 load address 0x0000000000305a24
.data.4 0x00000000081006c0 0x0 load address 0x00000000003059d4
*(.data.4)
0x00000000081006c0 . = ALIGN (0x10)
0x0000000000000110 _sdata = (SIZEOF (.data) + SIZEOF (.data.4))
0x000000008800df00 _gint_vbr = 0x8800df00
0x000000008800f400 . = ORIGIN (rram)
.gint.data 0x000000008800f400 0x130 load address 0x0000000000305a24
0x0000000000305a24 _lgdata = LOADADDR (.gint.data)
.gint.data 0x000000008800f400 0x130 load address 0x00000000003059d4
0x00000000003059d4 _lgdata = LOADADDR (.gint.data)
0x000000008800f400 _rgdata = .
*(.gint.data .gint.data.*)
.gint.data 0x000000008800f400 0x18 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)
@ -781,7 +781,7 @@ LOAD /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgcc.a
0x000000008800f530 . = ALIGN (0x10)
0x0000000000000130 _sgdata = SIZEOF (.gint.data)
.gint.bss 0x000000008800f530 0x210 load address 0x0000000000305b54
.gint.bss 0x000000008800f530 0x210 load address 0x0000000000305b04
*(.gint.bss .gint.bss.*)
.gint.bss 0x000000008800f530 0x24 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(cpg.c.o)
.gint.bss 0x000000008800f554 0x100 /home/util1/Bureau/MILAN/gcc/lib/gcc/sh3eb-elf/9.1.0/libgint-fx.a(keysc.c.o)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -51,29 +51,13 @@ void FE_draw_face(FE_face const * face)
const int xAC=face->s3->translated.x-face->s1->translated.x, yAC=face->s3->translated.y-face->s1->translated.y;
const int diviseur_commun=xAB*yAC-yAB*xAC;
bool x_previous_success=0;
bool x_success=0;
for (int tx=xmin; tx<=xmax; tx++)
{
bool y_previous_success=0;
bool y_success=0;
for (int ty=ymin; ty<=xmax; ty++)
for (int ty=ymin; ty<=ymax; ty++)
{
int xAM=tx-face->s1->translated.x, yAM=ty-face->s1->translated.y;
int nx=(yAC*xAM*8+xAC*yAM*8)/diviseur_commun;
int ny=(yAM*xAB*8+xAM*yAB*8)/diviseur_commun;
if (nx>=0&&nx<8&&ny>=0&&ny<8)
{
if(FE_zbuffer_set_dist(tx, ty, 1))
if (FE_zbuffer_set_dist(tx, ty, 1))
dpixel(tx,ty,C_BLACK);
}
/*if (y_success==y_previous_success|| (!y_success)) // si fin de la ligne
break;
y_previous_success=y_success;*/
}
/*if (x_success==x_previous_success|| (!x_success)) // si fin de la ligne
break;
x_previous_success=x_success;*/
}
// x=Det(AM,AC)/det(AB,AC)

View File

@ -5,6 +5,7 @@
#include <gint/std/stdlib.h>
#include <gint/keyboard.h>
static const int size_uint32 = 128*64;
static const int size_octets = size_uint32*sizeof(uint32_t);
static uint32_t* address=0;
@ -12,16 +13,16 @@ void FE_zbuffer_clear()
{
while (address==0)
{
address=malloc(size_uint32*sizeof(uint32_t));
address=malloc(size_octets);
if (address==0)
{
dclear(C_WHITE);
dtext(1,1,"Not enough RAM...",C_BLACK,C_NONE);
}
}
int indice=0;
uint32_t indice=0;
// TODO ** ajouter le DMA pour les architectures sh4
for (indice=0; indice<4096; indice++)
for (indice=0; indice<size_uint32; indice++)
address[indice]=3000;
}
@ -29,7 +30,7 @@ bool FE_zbuffer_set_dist(int x, int y, int dist)
{
x%=FE_ZB_SIZE_X;
y%=FE_ZB_SIZE_Y;
const int indice=x*y;
const int indice=x*64+y;
if (address[indice]>dist&&dist>0)
{
address[indice]=dist;