diff options
author | jidoc01 <jidoc01@naver.com> | 2019-08-11 14:25:54 +0200 |
---|---|---|
committer | jidoc01 <jidoc01@naver.com> | 2019-08-11 14:25:54 +0200 |
commit | 3ad77d0f42eed38f131eeef9b518f30bbf4a1cb4 (patch) | |
tree | 8004ac9d49fa9ee3a76e246574bbe106522a6cab /src/macros/data.asm | |
parent | 74ff6135b9cb5406c7bd0cacb56aa0d3e56a2b57 (diff) |
Relocate transition macro
The 'cursor_transition' macro is now used by different banks,
which means that it's not a local macro.
So I moved its definition into a macro file.
Diffstat (limited to 'src/macros/data.asm')
-rw-r--r-- | src/macros/data.asm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/macros/data.asm b/src/macros/data.asm index a7ac93d..f2a2210 100644 --- a/src/macros/data.asm +++ b/src/macros/data.asm @@ -88,4 +88,15 @@ ENDM textitem: MACRO db \1, \2 tx \3 +ENDM + +; cursor x / cursor y / attribute / idx-up / idx-down / idx-right / idx-left +; idx-[direction] means the index to get when the input is in the direction. +; its attribute is used for drawing a flipped cursor. +cursor_transition: MACRO + db \1, \2, \3 + rept 4 + db \4 + shift + endr ENDM
\ No newline at end of file |