From 440a0869c83fcfb91159610646523e9722041199 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 3 Jun 2018 19:22:40 +0300 Subject: [PATCH] Assembler: accept SP as A7. --- newcpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newcpu.cpp b/newcpu.cpp index e148b71d..b37a549e 100644 --- a/newcpu.cpp +++ b/newcpu.cpp @@ -6808,6 +6808,8 @@ static int asm_isareg(const TCHAR *s) { if (s[0] == 'A' && s[1] >= '0' && s[1] <= '7') return s[1] - '0'; + if (s[0] == 'S' && s[1] == 'P') + return 7; return -1; } static int asm_ispc(const TCHAR *s) -- 2.47.3