From 3315f309a760fd6d8a5ae1f8bd2b8478245681ea Mon Sep 17 00:00:00 2001 From: David Banks Date: Wed, 19 Sep 2018 14:45:41 +0100 Subject: [PATCH] Added EXX to test program, as we seem to start off with alternative BC/DE/HL active --- chip-z80/testprogram.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chip-z80/testprogram.js b/chip-z80/testprogram.js index c18043a..85814c2 100644 --- a/chip-z80/testprogram.js +++ b/chip-z80/testprogram.js @@ -15,6 +15,7 @@ readTriggers[0x8000]="var c=consolegetc; consolegetc=undefined; (c)"; // for opcodes, see http://www.textfiles.com/programming/CARDS/6800 testprogram = [ + 0xD9, // EXX 0x21, 0x34, 0x12, // LD HL,$1234 0x31, 0xfe, 0xdc, // LD SP,0xDCFE 0xe5, // PUSH HL