1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-15 20:35:13 +00:00

Some sequence 0 improvements (#2536)

* Some sequence 0 improvements

* Sync aseq.h with MM
This commit is contained in:
Tharo 2025-05-23 14:52:18 +01:00 committed by GitHub
parent d6cf6d6adb
commit f7073a7837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 311 additions and 251 deletions

View file

@ -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
/**