diff options
Diffstat (limited to 'src/macros.asm')
-rwxr-xr-x | src/macros.asm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/macros.asm b/src/macros.asm index 5a79e0b..874c473 100755 --- a/src/macros.asm +++ b/src/macros.asm @@ -403,3 +403,28 @@ move_data_struct: MACRO \1Unknown1:: db \1Unknown2:: db ENDM + +run_script: MACRO + db \1_index + if(_NARG > 1) + + rept (_NARG + -1) + shift + db \1 + endr + + endc +ENDM + +; for the repeated functions on the table, need to specify which one, unfortunately +run_scriptx: MACRO + db \1 + if(_NARG > 1) + + rept (_NARG + -1) + shift + db \1 + endr + + endc +ENDM |