shithub: pokecrystal

Download patch

ref: b47f460061441158dd2a143b1b1796e726020aa1
parent: b4968a9ab7dbe596354351d06458598805d37445
author: yenatch <[email protected]>
date: Sat Nov 23 23:06:37 EST 2013

lb macro for fast double-register loads

--- a/macros.asm
+++ b/macros.asm
@@ -36,6 +36,12 @@
 	rst FarCall
 	ENDM
 
+
+lb: MACRO ; r, hi, lo
+	ld \1, \2 << 8 + \3
+	ENDM
+
+
 TX_RAM: MACRO
 	db 1
 	dw \1