mirror of
https://github.com/zeldaret/oot
synced 2026-08-06 01:48:49 -04:00
Some sequence 0 improvements (#2536)
* Some sequence 0 improvements * Sync aseq.h with MM
This commit is contained in:
@@ -741,6 +741,7 @@ _RESET_SECTION
|
||||
/* Write the sequence name into a special .note.name section */
|
||||
.pushsection .note.name, "", @note
|
||||
.asciz "\name"
|
||||
.balign 4
|
||||
.popsection
|
||||
|
||||
/* Reset section and write start symbol. */
|
||||
@@ -826,7 +827,7 @@ _RESET_SECTION
|
||||
.macro _wr_s16 value
|
||||
/* Ensure the provided arg value fits in 16 bits (signed) */
|
||||
_check_arg_bitwidth_s \value, 16
|
||||
_wr16 \value
|
||||
_wr16 \value & 0xFFFF
|
||||
.endm
|
||||
|
||||
.macro _wr_u16 value
|
||||
@@ -1847,7 +1848,7 @@ $reladdr\@:
|
||||
.endm
|
||||
|
||||
/**
|
||||
* ptraddi <value:u16>
|
||||
* ptraddi <value:s16>
|
||||
*
|
||||
* Like ptradd but for immediates instead of labels
|
||||
*
|
||||
@@ -1855,7 +1856,7 @@ $reladdr\@:
|
||||
*/
|
||||
.macro ptraddi value
|
||||
_wr_cmd_id ptradd, ,ASEQ_OP_CHAN_PTRADD,,,,,,, 0, 0
|
||||
_wr_u16 \value
|
||||
_wr_s16 \value
|
||||
.endm
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user