39 lines
624 B
ArmAsm
39 lines
624 B
ArmAsm
.macro arm_func_start name
|
|
.align 2, 0
|
|
.global \name
|
|
.arm
|
|
.type \name, %function
|
|
.endm
|
|
|
|
.macro arm_func_end name
|
|
.size \name, .-\name
|
|
.endm
|
|
|
|
.macro thumb_func_start name
|
|
.align 2, 0
|
|
.global \name
|
|
.thumb
|
|
.thumb_func
|
|
.type \name, %function
|
|
.endm
|
|
|
|
.macro non_word_aligned_thumb_func_start name
|
|
.global \name
|
|
.thumb
|
|
.thumb_func
|
|
.type \name, %function
|
|
.endm
|
|
|
|
.macro thumb_func_end name
|
|
.size \name, .-\name
|
|
.endm
|
|
|
|
.macro window_template bg_id, x, y, width, height, palette, vram_tile_offset
|
|
.byte \bg_id
|
|
.byte \x
|
|
.byte \y
|
|
.byte \width
|
|
.byte \height
|
|
.byte \palette
|
|
.2byte \vram_tile_offset
|
|
.endm
|