Started work on tile-map

This commit is contained in:
Simponic 2020-08-11 16:44:22 -06:00
parent e09a23f0a4
commit e84e232f8d
18 changed files with 137 additions and 608 deletions

View File

@ -1,532 +0,0 @@
Archive member included to satisfy reference by file (symbol)
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-init.o)
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o (__libc_init_array)
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-memcpy-stub.o)
main.o (memcpy)
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
/opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o (fake_heap_end)
Discarded input sections
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crti.o
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crti.o
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crti.o
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.data.__dso_handle
0x0000000000000000 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.data 0x0000000000000000 0x0 playerObject.o
.bss 0x0000000000000000 0x0 playerObject.o
.text 0x0000000000000000 0x0 main.o
.text 0x0000000000000000 0x0 sinlut.o
.data 0x0000000000000000 0x0 sinlut.o
.bss 0x0000000000000000 0x0 sinlut.o
.data 0x0000000000000000 0x0 toolbox.o
.text 0x0000000000000000 0x0 player.o
.data 0x0000000000000000 0x0 player.o
.bss 0x0000000000000000 0x0 player.o
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-init.o)
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-init.o)
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-init.o)
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-memcpy-stub.o)
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-memcpy-stub.o)
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-memcpy-stub.o)
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
.bss.fake_heap_start
0x0000000000000000 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtend.o
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtend.o
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtend.o
.text 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtn.o
.data 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtn.o
.bss 0x0000000000000000 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtn.o
Memory Configuration
Name Origin Length Attributes
rom 0x0000000008000000 0x0000000002000000
iwram 0x0000000003000000 0x0000000000008000
ewram 0x0000000002000000 0x0000000000040000
*default* 0x0000000000000000 0xffffffffffffffff
Linker script and memory map
0x0000000008000000 __text_start = ORIGIN (rom)
0x0000000002040000 __eheap_end = (ORIGIN (ewram) + LENGTH (ewram))
0x0000000003000000 __iwram_start = ORIGIN (iwram)
0x0000000003008000 __iwram_top = (ORIGIN (iwram) + LENGTH (iwram))
0x0000000003007fa0 __sp_irq = (__iwram_top - 0x60)
0x0000000003007f00 __sp_usr = (__sp_irq - 0xa0)
0x0000000003007ff8 __irq_flags = 0x3007ff8
0x0000000008000000 . = __text_start
.crt0 0x0000000008000000 0x210
*(.crt0)
.crt0 0x0000000008000000 0x210 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
0x0000000008000000 _start
0x00000000080000c4 __boot_method
0x00000000080000c5 __slave_number
0x00000000080000e0 start_vector
0x0000000008000210 . = ALIGN (0x4)
.init 0x0000000008000210 0xc
*(SORT_NONE(.init))
.init 0x0000000008000210 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crti.o
0x0000000008000210 _init
.init 0x0000000008000214 0x8 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtn.o
.plt 0x000000000800021c 0x0
*(.plt)
0x000000000800021c . = ALIGN (0x4)
.text 0x000000000800021c 0x4cc
*(EXCLUDE_FILE(*.iwram*) .text*)
.text.__do_global_dtors_aux
0x000000000800021c 0x2c /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.text.frame_dummy
0x0000000008000248 0x24 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.text 0x000000000800026c 0x1e8 playerObject.o
0x000000000800026c initializePlayerObject
0x0000000008000280 createPlayerObject
0x00000000080002c8 applyGravity
0x00000000080002d0 scalePlayer
0x00000000080002e0 rotatePlayer
0x0000000008000310 roundToNearest90Degrees
0x0000000008000360 updatePlayer
.text.startup 0x0000000008000454 0xdc main.o
0x0000000008000454 main
.text 0x0000000008000530 0xc0 toolbox.o
0x0000000008000530 oam_init
0x0000000008000570 oam_copy
0x0000000008000590 obj_copy
0x00000000080005b0 obj_affine_copy
0x00000000080005e0 obj_affine_identity
.text.__libc_init_array
0x00000000080005f0 0x50 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-init.o)
0x00000000080005f0 __libc_init_array
.text.memcpy 0x0000000008000640 0xa8 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-memcpy-stub.o)
0x0000000008000640 memcpy
*(.gnu.linkonce.t.*)
*(.text.*personality*)
*(.gnu.warning)
*(.glue_7t)
.glue_7t 0x00000000080006e8 0x0 linker stubs
*(.glue_7)
.glue_7 0x00000000080006e8 0x0 linker stubs
*(.vfp11_veneer)
.vfp11_veneer 0x00000000080006e8 0x0 linker stubs
0x00000000080006e8 . = ALIGN (0x4)
0x00000000080006e8 __text_end = .
.v4_bx 0x00000000080006e8 0x0
.v4_bx 0x00000000080006e8 0x0 linker stubs
.iplt 0x00000000080006e8 0x0
.iplt 0x00000000080006e8 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
.fini 0x00000000080006e8 0xc
*(.fini)
.fini 0x00000000080006e8 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crti.o
0x00000000080006e8 _fini
.fini 0x00000000080006ec 0x8 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtn.o
0x00000000080006f4 . = ALIGN (0x4)
.rodata 0x00000000080006f4 0x680
*(.rodata)
.rodata 0x00000000080006f4 0x400 sinlut.o
0x00000000080006f4 sin_lut
.rodata 0x0000000008000af4 0x280 player.o
0x0000000008000af4 playerTiles
0x0000000008000b74 playerPal
*all.rodata*(*)
*(.roda)
*(.rodata.*)
*(.gnu.linkonce.r*)
0x0000000008000d74 . = ALIGN (0x4)
.ARM.extab
*(.ARM.extab* .gnu.linkonce.armextab.*)
0x0000000008000d74 __exidx_start = .
.ARM.exidx
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
0x0000000008000d74 __exidx_end = .
.ctors 0x0000000008000d74 0x0
*crtbegin.o(.ctors)
*(EXCLUDE_FILE(*crtend.o) .ctors)
*(SORT_BY_NAME(.ctors.*))
*(.ctors)
0x0000000008000d74 . = ALIGN (0x4)
.dtors 0x0000000008000d74 0x0
*crtbegin.o(.dtors)
*(EXCLUDE_FILE(*crtend.o) .dtors)
*(SORT_BY_NAME(.dtors.*))
*(.dtors)
0x0000000008000d74 . = ALIGN (0x4)
.eh_frame 0x0000000008000d74 0x4
*(.eh_frame)
.eh_frame 0x0000000008000d74 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.eh_frame 0x0000000008000d74 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtend.o
0x0000000008000d78 . = ALIGN (0x4)
.rel.dyn 0x0000000008000d78 0x0
.rel.iplt 0x0000000008000d78 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
.gcc_except_table
0x0000000008000d78 0x0
*(.gcc_except_table)
0x0000000008000d78 . = ALIGN (0x4)
0x0000000008000d78 __iwram_lma = .
.iwram 0x0000000003000000 0x0 load address 0x0000000008000d78
0x0000000003000000 __iwram_start__ = ABSOLUTE (.)
*(.iwram .iwram*)
*iwram.*(.text* .data*)
0x0000000003000000 . = ALIGN (0x4)
0x0000000003000000 __iwram_end__ = ABSOLUTE (.)
0x0000000008000d78 __data_lma = (__iwram_lma + SIZEOF (.iwram))
.bss 0x0000000003000000 0x424
0x0000000003000000 __bss_start = ABSOLUTE (.)
0x0000000003000000 __bss_start__ = ABSOLUTE (.)
*(.dynbss)
*(.gnu.linkonce.b*)
*(.bss*)
.bss.completed.1
0x0000000003000000 0x1 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
*fill* 0x0000000003000001 0x3
.bss.object.0 0x0000000003000004 0x18 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.bss 0x000000000300001c 0x400 main.o
0x000000000300001c obj_buffer
.bss 0x000000000300041c 0x4 toolbox.o
0x000000000300041c __key_prev
0x000000000300041e __key_curr
.bss.fake_heap_end
0x0000000003000420 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
0x0000000003000420 fake_heap_end
*(COMMON)
0x0000000003000424 . = ALIGN (0x4)
0x0000000003000424 __bss_end__ = ABSOLUTE (.)
.data 0x0000000003000424 0x4 load address 0x0000000008000d78
0x0000000003000424 __data_start__ = ABSOLUTE (.)
*(.data*)
.data 0x0000000003000424 0x4 main.o
0x0000000003000424 obj_aff_buffer
*(.gnu.linkonce.d*)
0x0000000003000428 . = ALIGN (0x4)
0x0000000008000d7c __preinit_lma = (__data_lma + SIZEOF (.data))
.igot.plt 0x0000000003000428 0x0 load address 0x0000000008000d7c
.igot.plt 0x0000000003000428 0x0 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
.preinit_array 0x0000000003000428 0x0 load address 0x0000000008000d7c
0x0000000003000428 __preinit_array_start = ABSOLUTE (.)
*(.preinit_array)
0x0000000003000428 __preinit_array_end = ABSOLUTE (.)
0x0000000008000d7c __init_lma = (__preinit_lma + SIZEOF (.preinit_array))
.init_array 0x0000000003000428 0x4 load address 0x0000000008000d7c
0x0000000003000428 __init_array_start = ABSOLUTE (.)
*(SORT_BY_NAME(.init_array.*))
*(.init_array)
.init_array 0x0000000003000428 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
0x000000000300042c __init_array_end = ABSOLUTE (.)
0x0000000008000d80 __fini_lma = (__init_lma + SIZEOF (.init_array))
.fini_array 0x000000000300042c 0x4 load address 0x0000000008000d80
0x000000000300042c __fini_array_start = ABSOLUTE (.)
*(SORT_BY_NAME(.fini_array.*))
*(.fini_array)
.fini_array 0x000000000300042c 0x4 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
0x0000000003000430 __fini_array_end = ABSOLUTE (.)
0x0000000008000d84 __jcr_lma = (__fini_lma + SIZEOF (.fini_array))
.jcr 0x0000000003000430 0x0 load address 0x0000000008000d84
*(.jcr)
0x0000000003000430 __data_end__ = ABSOLUTE (.)
0x0000000008000d84 __iwram_overlay_lma = (__jcr_lma + SIZEOF (.jcr))
0x0000000003000430 __iwram_overlay_start = .
.iwram0 0x0000000003000430 0x0 load address 0x0000000008000d84
*(.iwram0)
0x0000000003000430 . = ALIGN (0x4)
0x0000000008000d84 PROVIDE (__load_start_iwram0 = LOADADDR (.iwram0))
0x0000000008000d84 PROVIDE (__load_stop_iwram0 = (LOADADDR (.iwram0) + SIZEOF (.iwram0)))
.iwram1 0x0000000003000430 0x0
*(.iwram1)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram1 = LOADADDR (.iwram1))
[!provide] PROVIDE (__load_stop_iwram1 = (LOADADDR (.iwram1) + SIZEOF (.iwram1)))
.iwram2 0x0000000003000430 0x0
*(.iwram2)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram2 = LOADADDR (.iwram2))
[!provide] PROVIDE (__load_stop_iwram2 = (LOADADDR (.iwram2) + SIZEOF (.iwram2)))
.iwram3 0x0000000003000430 0x0
*(.iwram3)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram3 = LOADADDR (.iwram3))
[!provide] PROVIDE (__load_stop_iwram3 = (LOADADDR (.iwram3) + SIZEOF (.iwram3)))
.iwram4 0x0000000003000430 0x0
*(.iwram4)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram4 = LOADADDR (.iwram4))
[!provide] PROVIDE (__load_stop_iwram4 = (LOADADDR (.iwram4) + SIZEOF (.iwram4)))
.iwram5 0x0000000003000430 0x0
*(.iwram5)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram5 = LOADADDR (.iwram5))
[!provide] PROVIDE (__load_stop_iwram5 = (LOADADDR (.iwram5) + SIZEOF (.iwram5)))
.iwram6 0x0000000003000430 0x0
*(.iwram6)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram6 = LOADADDR (.iwram6))
[!provide] PROVIDE (__load_stop_iwram6 = (LOADADDR (.iwram6) + SIZEOF (.iwram6)))
.iwram7 0x0000000003000430 0x0
*(.iwram7)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram7 = LOADADDR (.iwram7))
[!provide] PROVIDE (__load_stop_iwram7 = (LOADADDR (.iwram7) + SIZEOF (.iwram7)))
.iwram8 0x0000000003000430 0x0
*(.iwram8)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram8 = LOADADDR (.iwram8))
[!provide] PROVIDE (__load_stop_iwram8 = (LOADADDR (.iwram8) + SIZEOF (.iwram8)))
.iwram9 0x0000000003000430 0x0
*(.iwram9)
0x0000000003000430 . = ALIGN (0x4)
[!provide] PROVIDE (__load_start_iwram9 = LOADADDR (.iwram9))
[!provide] PROVIDE (__load_stop_iwram9 = (LOADADDR (.iwram9) + SIZEOF (.iwram9)))
0x0000000003000430 __iwram_overlay_end = .
0x0000000008000d84 __ewram_lma = (__iwram_overlay_lma + (__iwram_overlay_end - __iwram_overlay_start))
0x0000000003000430 __iheap_start = .
0x0000000002000000 __ewram_start = ORIGIN (ewram)
.ewram 0x0000000002000000 0x0 load address 0x0000000008000d84
*(.ewram*)
0x0000000002000000 . = ALIGN (0x4)
0x0000000002000000 __ewram_end = ABSOLUTE (.)
0x0000000008000d84 __pad_lma = (__ewram_lma + SIZEOF (.ewram))
.sbss 0x0000000002000000 0x0
0x0000000002000000 __sbss_start__ = ABSOLUTE (.)
*(.sbss*)
0x0000000002000000 . = ALIGN (0x4)
0x0000000002000000 __sbss_end__ = ABSOLUTE (.)
0x0000000002000000 __end__ = ABSOLUTE (.)
0x0000000002000000 __eheap_start = ABSOLUTE (.)
.pad 0x0000000002000000 0x8 load address 0x0000000008000d84
0x0000000002000000 0x4 LONG 0x52416b64
0x0000000002000004 0x4 LONG 0x4d
0x0000000002000008 . = ALIGN (0x4)
0x0000000008000d8c __rom_end__ = (__pad_lma + SIZEOF (.pad))
.stab
*(.stab)
.stabstr
*(.stabstr)
.stab.excl
*(.stab.excl)
.stab.exclstr
*(.stab.exclstr)
.stab.index
*(.stab.index)
.stab.indexstr
*(.stab.indexstr)
.comment 0x0000000000000000 0x23
*(.comment)
.comment 0x0000000000000000 0x23 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
0x24 (size before relaxing)
.comment 0x0000000000000023 0x24 playerObject.o
.comment 0x0000000000000023 0x24 main.o
.comment 0x0000000000000023 0x24 sinlut.o
.comment 0x0000000000000023 0x24 toolbox.o
.comment 0x0000000000000023 0x24 player.o
.comment 0x0000000000000023 0x24 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-init.o)
.comment 0x0000000000000023 0x24 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-memcpy-stub.o)
.comment 0x0000000000000023 0x24 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
.comment 0x0000000000000023 0x24 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtend.o
.debug
*(.debug)
.line
*(.line)
.debug_srcinfo
*(.debug_srcinfo)
.debug_sfnames
*(.debug_sfnames)
.debug_aranges 0x0000000000000000 0x90
*(.debug_aranges)
.debug_aranges
0x0000000000000000 0x20 playerObject.o
.debug_aranges
0x0000000000000020 0x20 main.o
.debug_aranges
0x0000000000000040 0x18 sinlut.o
.debug_aranges
0x0000000000000058 0x20 toolbox.o
.debug_aranges
0x0000000000000078 0x18 player.o
.debug_pubnames
*(.debug_pubnames)
.debug_info 0x0000000000000000 0x13d6
*(.debug_info)
.debug_info 0x0000000000000000 0x996 playerObject.o
.debug_info 0x0000000000000996 0x581 main.o
.debug_info 0x0000000000000f17 0x8b sinlut.o
.debug_info 0x0000000000000fa2 0x3b5 toolbox.o
.debug_info 0x0000000000001357 0x7f player.o
.debug_abbrev 0x0000000000000000 0x70c
*(.debug_abbrev)
.debug_abbrev 0x0000000000000000 0x2b1 playerObject.o
.debug_abbrev 0x00000000000002b1 0x20d main.o
.debug_abbrev 0x00000000000004be 0x61 sinlut.o
.debug_abbrev 0x000000000000051f 0x1a6 toolbox.o
.debug_abbrev 0x00000000000006c5 0x47 player.o
.debug_line 0x0000000000000000 0x9ee
*(.debug_line)
.debug_line 0x0000000000000000 0x4c7 playerObject.o
.debug_line 0x00000000000004c7 0x1f3 main.o
.debug_line 0x00000000000006ba 0x80 sinlut.o
.debug_line 0x000000000000073a 0x26a toolbox.o
.debug_line 0x00000000000009a4 0x4a player.o
.debug_frame 0x0000000000000000 0x15c
*(.debug_frame)
.debug_frame 0x0000000000000000 0xa4 playerObject.o
.debug_frame 0x00000000000000a4 0x30 main.o
.debug_frame 0x00000000000000d4 0x88 toolbox.o
.debug_str 0x0000000000000000 0x476
*(.debug_str)
.debug_str 0x0000000000000000 0x2f2 playerObject.o
0x30b (size before relaxing)
.debug_str 0x00000000000002f2 0xf8 main.o
0x2c3 (size before relaxing)
.debug_str 0x00000000000003ea 0x29 sinlut.o
0x116 (size before relaxing)
.debug_str 0x0000000000000413 0x39 toolbox.o
0x1ad (size before relaxing)
.debug_str 0x000000000000044c 0x2a player.o
0xdc (size before relaxing)
.debug_loc 0x0000000000000000 0x9c2
*(.debug_loc)
.debug_loc 0x0000000000000000 0x640 playerObject.o
.debug_loc 0x0000000000000640 0x16 main.o
.debug_loc 0x0000000000000656 0x36c toolbox.o
.debug_macinfo
*(.debug_macinfo)
.debug_weaknames
*(.debug_weaknames)
.debug_funcnames
*(.debug_funcnames)
.debug_typenames
*(.debug_typenames)
.debug_varnames
*(.debug_varnames)
.stack 0x0000000000080000 0x0
0x0000000000080000 _stack = .
*(.stack)
.note.gnu.arm.ident
*(.note.gnu.arm.ident)
.ARM.attributes
0x0000000000000000 0x2c
*(.ARM.attributes)
.ARM.attributes
0x0000000000000000 0x20 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
.ARM.attributes
0x0000000000000020 0x1c /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crti.o
.ARM.attributes
0x000000000000003c 0x2a /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
.ARM.attributes
0x0000000000000066 0x2a playerObject.o
.ARM.attributes
0x0000000000000090 0x2a main.o
.ARM.attributes
0x00000000000000ba 0x30 sinlut.o
.ARM.attributes
0x00000000000000ea 0x2a toolbox.o
.ARM.attributes
0x0000000000000114 0x30 player.o
.ARM.attributes
0x0000000000000144 0x2a /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-init.o)
.ARM.attributes
0x000000000000016e 0x2a /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-memcpy-stub.o)
.ARM.attributes
0x0000000000000198 0x30 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a(malloc_vars.o)
.ARM.attributes
0x00000000000001c8 0x30 /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtend.o
.ARM.attributes
0x00000000000001f8 0x1c /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtn.o
/DISCARD/
*(.note.GNU-stack)
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/gba_crt0.o
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crti.o
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtbegin.o
LOAD playerObject.o
LOAD main.o
LOAD sinlut.o
LOAD toolbox.o
LOAD player.o
LOAD /opt/devkitpro/libgba/lib/libmm.a
LOAD /opt/devkitpro/libgba/lib/libgba.a
START GROUP
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/libgcc.a
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libg.a
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libc.a
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/lib/thumb/libsysbase.a
END GROUP
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtend.o
LOAD /opt/devkitpro/devkitARM/bin/../lib/gcc/arm-none-eabi/10.2.0/thumb/crtn.o
OUTPUT(/home/logan/git/gba-dash/gba-dash.elf elf32-littlearm)
LOAD linker stubs
.debug_ranges 0x0000000000000000 0x1e8
.debug_ranges 0x0000000000000000 0x1a8 playerObject.o
.debug_ranges 0x00000000000001a8 0x28 main.o
.debug_ranges 0x00000000000001d0 0x18 toolbox.o

View File

@ -1,37 +0,0 @@
main.o: /home/logan/git/gba-dash/source/main.c \
/home/logan/git/gba-dash/source/../include/input.h \
/home/logan/git/gba-dash/source/../include/memmap.h \
/home/logan/git/gba-dash/source/../include/types.h \
/home/logan/git/gba-dash/source/../include/memdef.h \
/home/logan/git/gba-dash/source/../include/toolbox.h \
/home/logan/git/gba-dash/source/../include/input.h \
/home/logan/git/gba-dash/source/../include/memmap.h \
/home/logan/git/gba-dash/source/../include/types.h \
/home/logan/git/gba-dash/source/../include/memdef.h \
/home/logan/git/gba-dash/source/../include/point.h \
/home/logan/git/gba-dash/source/../include/fixed.h \
/home/logan/git/gba-dash/source/../include/velocity.h \
/home/logan/git/gba-dash/source/../include/point.h \
/home/logan/git/gba-dash/source/../include/playerObject.h \
/home/logan/git/gba-dash/source/../include/velocity.h \
/home/logan/git/gba-dash/source/../include/toolbox.h \
/home/logan/git/gba-dash/source/../include/sinlut.h \
/home/logan/git/gba-dash/source/../sprites/player.h
/home/logan/git/gba-dash/source/../include/input.h:
/home/logan/git/gba-dash/source/../include/memmap.h:
/home/logan/git/gba-dash/source/../include/types.h:
/home/logan/git/gba-dash/source/../include/memdef.h:
/home/logan/git/gba-dash/source/../include/toolbox.h:
/home/logan/git/gba-dash/source/../include/input.h:
/home/logan/git/gba-dash/source/../include/memmap.h:
/home/logan/git/gba-dash/source/../include/types.h:
/home/logan/git/gba-dash/source/../include/memdef.h:
/home/logan/git/gba-dash/source/../include/point.h:
/home/logan/git/gba-dash/source/../include/fixed.h:
/home/logan/git/gba-dash/source/../include/velocity.h:
/home/logan/git/gba-dash/source/../include/point.h:
/home/logan/git/gba-dash/source/../include/playerObject.h:
/home/logan/git/gba-dash/source/../include/velocity.h:
/home/logan/git/gba-dash/source/../include/toolbox.h:
/home/logan/git/gba-dash/source/../include/sinlut.h:
/home/logan/git/gba-dash/source/../sprites/player.h:

Binary file not shown.

View File

@ -1 +0,0 @@
player.o: /home/logan/git/gba-dash/sprites/player.c

Binary file not shown.

View File

@ -1,21 +0,0 @@
playerObject.o: /home/logan/git/gba-dash/source/playerObject.c \
/home/logan/git/gba-dash/source/../include/playerObject.h \
/home/logan/git/gba-dash/source/../include/types.h \
/home/logan/git/gba-dash/source/../include/point.h \
/home/logan/git/gba-dash/source/../include/fixed.h \
/home/logan/git/gba-dash/source/../include/velocity.h \
/home/logan/git/gba-dash/source/../include/toolbox.h \
/home/logan/git/gba-dash/source/../include/memmap.h \
/home/logan/git/gba-dash/source/../include/memdef.h \
/home/logan/git/gba-dash/source/../include/input.h \
/home/logan/git/gba-dash/source/../include/sinlut.h
/home/logan/git/gba-dash/source/../include/playerObject.h:
/home/logan/git/gba-dash/source/../include/types.h:
/home/logan/git/gba-dash/source/../include/point.h:
/home/logan/git/gba-dash/source/../include/fixed.h:
/home/logan/git/gba-dash/source/../include/velocity.h:
/home/logan/git/gba-dash/source/../include/toolbox.h:
/home/logan/git/gba-dash/source/../include/memmap.h:
/home/logan/git/gba-dash/source/../include/memdef.h:
/home/logan/git/gba-dash/source/../include/input.h:
/home/logan/git/gba-dash/source/../include/sinlut.h:

Binary file not shown.

View File

@ -1,5 +0,0 @@
sinlut.o: /home/logan/git/gba-dash/source/sinlut.c \
/home/logan/git/gba-dash/source/../include/sinlut.h \
/home/logan/git/gba-dash/source/../include/types.h
/home/logan/git/gba-dash/source/../include/sinlut.h:
/home/logan/git/gba-dash/source/../include/types.h:

Binary file not shown.

View File

@ -1,11 +0,0 @@
toolbox.o: /home/logan/git/gba-dash/source/toolbox.c \
/home/logan/git/gba-dash/source/../include/toolbox.h \
/home/logan/git/gba-dash/source/../include/types.h \
/home/logan/git/gba-dash/source/../include/memmap.h \
/home/logan/git/gba-dash/source/../include/memdef.h \
/home/logan/git/gba-dash/source/../include/input.h
/home/logan/git/gba-dash/source/../include/toolbox.h:
/home/logan/git/gba-dash/source/../include/types.h:
/home/logan/git/gba-dash/source/../include/memmap.h:
/home/logan/git/gba-dash/source/../include/memdef.h:
/home/logan/git/gba-dash/source/../include/input.h:

Binary file not shown.

Binary file not shown.

Binary file not shown.

8
include/map.h Normal file
View File

@ -0,0 +1,8 @@
#include "types.h"
#ifndef MAP_H
#define MAP_H
extern const int map1[7][20];
#endif // MAP_H

View File

@ -4,11 +4,13 @@
#include "../include/memmap.h" #include "../include/memmap.h"
#include "../include/types.h" #include "../include/types.h"
#include "../include/memdef.h" #include "../include/memdef.h"
#include "../include/point.h" #include "../include/point.h"
#include "../include/velocity.h" #include "../include/velocity.h"
#include "../include/playerObject.h" #include "../include/playerObject.h"
#include "../include/map.h"
#include "../sprites/player.h" #include "../sprites/player.h"
#include "../sprites/block.h"
OBJ_ATTR obj_buffer[128]; OBJ_ATTR obj_buffer[128];
OBJ_AFFINE *obj_aff_buffer= (OBJ_AFFINE*)obj_buffer; // Object affine-buffer OBJ_AFFINE *obj_aff_buffer= (OBJ_AFFINE*)obj_buffer; // Object affine-buffer
@ -16,6 +18,7 @@ OBJ_AFFINE *obj_aff_buffer= (OBJ_AFFINE*)obj_buffer; // Object affine-buffer
int main() { int main() {
memcpy(&tile_mem[4][0], playerTiles, playerTilesLen); memcpy(&tile_mem[4][0], playerTiles, playerTilesLen);
memcpy(pal_obj_mem, playerPal, playerPalLen); memcpy(pal_obj_mem, playerPal, playerPalLen);
memcpy(&tile_mem[4][4], blockTiles, blockTilesLen);
oam_init(obj_buffer, 128); oam_init(obj_buffer, 128);
@ -31,9 +34,26 @@ int main() {
player.vel.dy -= 9 << FIX_SHIFT; player.vel.dy -= 9 << FIX_SHIFT;
} }
updatePlayer(&player, 120); updatePlayer(&player, 120);
obj_affine_copy(obj_aff_mem, player.affine, 1); obj_affine_copy(obj_aff_mem, player.affine, 1);
obj_copy(obj_mem, player.obj, 1); obj_copy(obj_mem, player.obj, 1);
OBJ_ATTR tileObject;
for (int i = 0; i < 7; i++) {
for (int j = 0; j < 12; j++){
obj_set_attr(&tileObject,
ATTR0_SQUARE,
ATTR1_SIZE_16,
ATTR2_PALBANK(0) | 4
);
obj_set_pos(&tileObject, (j * 16), (i * 16));
if (map1[i][j]) {
obj_copy(obj_mem + (17 * i + j) + 1, &tileObject, 1);
}
}
}
} }
return 0; return 0;

21
source/map.c Normal file
View File

@ -0,0 +1,21 @@
#include "../include/map.h"
/*
const int map1[7][20] = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
};
*/
const int map1[7][20] = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
};

64
sprites/block.c Normal file
View File

@ -0,0 +1,64 @@
//======================================================================
//
// block, 16x16@4,
// + palette 256 entries, not compressed
// + 4 tiles not compressed
// Total size: 512 + 128 = 640
//
// Time-stamp: 2020-08-11, 14:57:03
// Exported by Cearn's Usenti v1.7.6
// (comments, kudos, flames to "daytshen@hotmail.com")
//
//======================================================================
const unsigned short blockPal[256]=
{
0x0000,0x0010,0x0200,0x0210,0x4000,0x4010,0x4200,0x6318,
0x4210,0x001F,0x03E0,0x03FF,0x7C00,0x7C1F,0x7FE0,0x7FFF,
0x0004,0x0007,0x000B,0x000F,0x0013,0x0017,0x001B,0x001F,
0x0080,0x00E0,0x0160,0x01E0,0x0260,0x02E0,0x0360,0x03E0,
0x0084,0x00E7,0x016B,0x01EF,0x0273,0x02F7,0x037B,0x03FF,
0x1000,0x1C00,0x2C00,0x3C00,0x4C00,0x5C00,0x6C00,0x7C00,
0x1004,0x1C07,0x2C0B,0x3C0F,0x4C13,0x5C17,0x6C1B,0x7C1F,
0x1080,0x1CE0,0x2D60,0x3DE0,0x4E60,0x5EE0,0x6F60,0x7FE0,
0x0842,0x0C63,0x14A5,0x1CE7,0x2529,0x2D6B,0x35AD,0x3DEF,
0x4631,0x4E73,0x56B5,0x5EF7,0x6739,0x6F7B,0x77BD,0x7FFF,
0x001F,0x007F,0x00FF,0x017F,0x01FF,0x027F,0x02FF,0x037F,
0x03FF,0x03FC,0x03F8,0x03F4,0x03F0,0x03EC,0x03E8,0x03E4,
0x03E0,0x0FE0,0x1FE0,0x2FE0,0x3FE0,0x4FE0,0x5FE0,0x6FE0,
0x7FE0,0x7F80,0x7F00,0x7E80,0x7E00,0x7D80,0x7D00,0x7C80,
0x7C00,0x7C03,0x7C07,0x7C0B,0x7C0F,0x7C13,0x7C17,0x7C1B,
0x7C1F,0x701F,0x601F,0x501F,0x401F,0x301F,0x201F,0x101F,
0x001F,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0421,0x0842,0x0C63,0x1084,0x14A5,0x18C6,0x1CE7,
0x2108,0x2529,0x294A,0x2D6B,0x318C,0x35AD,0x39CE,0x3DEF,
0x4210,0x4631,0x4A52,0x4E73,0x5294,0x56B5,0x5AD6,0x5EF7,
0x6318,0x6739,0x6B5A,0x6F7B,0x739C,0x77BD,0x7BDE,0x7FFF,
};
const unsigned short blockTiles[64]=
{
0x1111,0x1111,0x0001,0x0000,0x1101,0x0001,0x0101,0x0000,
0x0101,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
0x1111,0x1111,0x0000,0x1000,0x0000,0x1000,0x0000,0x1000,
0x0000,0x1000,0x0000,0x1000,0x0000,0x1000,0x0000,0x1000,
0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,
0x0001,0x0000,0x0001,0x0000,0x0001,0x0000,0x1111,0x1111,
0x0000,0x1000,0x0000,0x1000,0x0000,0x1000,0x0000,0x1000,
0x0000,0x1010,0x0000,0x1011,0x0000,0x1000,0x1111,0x1111,
};

23
sprites/block.h Normal file
View File

@ -0,0 +1,23 @@
//======================================================================
//
// block, 16x16@4,
// + palette 256 entries, not compressed
// + 4 tiles not compressed
// Total size: 512 + 128 = 640
//
// Time-stamp: 2020-08-11, 14:57:03
// Exported by Cearn's Usenti v1.7.6
// (comments, kudos, flames to "daytshen@hotmail.com")
//
//======================================================================
#ifndef __BLOCK__
#define __BLOCK__
#define blockPalLen 512
extern const unsigned short blockPal[256];
#define blockTilesLen 128
extern const unsigned short blockTiles[64];
#endif // __BLOCK__