]> git.sur5r.net Git - cc65/commitdiff
Added two useful opcode mnemonic aliases. 8/head
authorGreg King <gregdk@users.sf.net>
Tue, 7 May 2013 23:59:16 +0000 (19:59 -0400)
committerGreg King <gregdk@users.sf.net>
Wed, 8 May 2013 04:03:44 +0000 (00:03 -0400)
bnz - jump if not zero.
bze - jump if zero.

asminc/generic.mac

index 02eccef5da8e5e3ddd669190a12b8891b857d063..bc6f5924e51b59f01aa1aaa58e4d75f1f29c87a4 100644 (file)
@@ -43,3 +43,13 @@ L:
         bcc     Arg
 .endmacro
 
+; bnz - jump if not zero
+.macro  bnz     Arg
+        bne     Arg
+.endmacro
+
+; bze - jump if zero
+.macro  bze     Arg
+        beq     Arg
+.endmacro
+