From 145a1c344190be52d75ea8823122a33a9c41823f Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Fri, 29 Dec 2017 16:14:02 -0500 Subject: [PATCH] Define ld_dims for in-order (width, height) pairs --- macros/coords.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/macros/coords.asm b/macros/coords.asm index 777e798c9..1eccd9139 100644 --- a/macros/coords.asm +++ b/macros/coords.asm @@ -53,3 +53,8 @@ lda_coord: MACRO ld a, [(\2) screenrows + (\1) + \3] endc ENDM + +ld_dims: MACRO +; register, width, height + lb \1, \3, \2 +ENDM