diff options
author | anmart <andrewrmartinek@gmail.com> | 2016-06-13 19:50:52 -0400 |
---|---|---|
committer | anmart <andrewrmartinek@gmail.com> | 2016-06-13 19:50:52 -0400 |
commit | 8bfb38d813af48ed872443e90caaa3b32acca844 (patch) | |
tree | 89124cd4be27e402ec2010ca657df588202308f4 /src/macros.asm | |
parent | 23e89e5fdfab3d1fe5dc57c675397722559e407e (diff) |
Added a basic overworld scripting system to help disassemble scripts.
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 |