ref: 310d34c655cd06dfdc579e29b4c1e3f831f8bd66
parent: 39c38f98387c3b8ad0a285c8cb5948f101d37ce3
author: Rangi <[email protected]>
date: Wed Mar 31 14:41:42 EDT 2021
Comment on REG_SP and REG_AF both being 3 No instruction needs to distinguish them both
--- a/src/asm/parser.y
+++ b/src/asm/parser.y
@@ -392,6 +392,7 @@
REG_BC = 0,
REG_DE = 1,
REG_HL = 2,
+ // LD/INC/ADD/DEC allow SP, PUSH/POP allow AF
REG_SP = 3,
REG_AF = 3
};