From 3ad77d0f42eed38f131eeef9b518f30bbf4a1cb4 Mon Sep 17 00:00:00 2001 From: jidoc01 Date: Sun, 11 Aug 2019 14:25:54 +0200 Subject: 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. --- src/macros/data.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/macros/data.asm') 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 -- cgit v1.2.3