shithub: rgbds

Download patch

ref: 3cd1d46a1bf66df5fafe04dde885cc6f3dfcdb28
parent: d00ec024a25be214377f0b1449e6676053bf392b
parent: 88eceec25755cf1ec0405c7744c71129d246b0c8
author: Antonio Niño Díaz <antonio_nd@outlook.com>
date: Sun Jun 16 18:35:37 EDT 2019

Merge pull request #356 from NieDzejkob/add-narg-test

Add a test for the behavior of NARG after SHIFT

--- /dev/null
+++ b/test/asm/narg-decreases-after-shift.asm
@@ -1,0 +1,14 @@
+testing: MACRO
+	db _NARG
+	shift
+	db _NARG
+	shift
+	db _NARG
+	shift
+	db _NARG
+	shift
+	db _NARG
+ENDM
+
+SECTION "Test output", ROM0
+	testing 1, 2, 3
--- /dev/null
+++ b/test/asm/narg-decreases-after-shift.out.bin
@@ -1,0 +1,1 @@
+
\ No newline at end of file