Merge pull request #113 from davidgfnet/asmfixes2

asm fixes for clang
This commit is contained in:
Autechre 2021-03-18 03:14:55 +01:00 committed by GitHub
commit 11632ad5e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 8 deletions

View File

@ -8,6 +8,8 @@
.globl reg .globl reg
.globl palette_ram .globl palette_ram
.globl palette_ram_converted .globl palette_ram_converted
.globl reg_mode
.globl spsr
#define REG_R0 (0 * 4) #define REG_R0 (0 * 4)
#define REG_R1 (1 * 4) #define REG_R1 (1 * 4)
@ -765,12 +767,18 @@ execute_load_builder(u32, 32, ldrne, #0xF0000000)
.data .data
.comm memory_map_read 0x8000 memory_map_read:
.comm memory_map_write 0x8000 .space 0x8000
.comm palette_ram 0x400 memory_map_write:
.comm palette_ram_converted 0x400 .space 0x8000
.comm spsr 24 palette_ram:
.comm reg_mode 196 .space 0x400
palette_ram_converted:
.space 0x400
spsr:
.space 24
reg_mode:
.space 196
.globl reg .globl reg
.globl _reg .globl _reg

View File

@ -575,7 +575,9 @@ _spsr:
_reg_mode: _reg_mode:
.space 196 .space 196
.comm _memory_map_read 0x8000 _memory_map_read:
.comm _memory_map_write 0x8000 .space 0x8000
_memory_map_write:
.space 0x8000