Skip to content

Commit e4c9c07

Browse files
committed
updated Arduino Mnemonic Display sketch
1 parent 304199d commit e4c9c07

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Arduino Mnemonic Debug Display/Arduino_Mnemonic_Debug_Display/Arduino_Mnemonic_Debug_Display.ino

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire);
1010

11-
const int INSTRUCTION_REGISTER_PINS[] = {2, 3, 4, 5, 6, 7, 8, 9};
11+
const int INSTRUCTION_REGISTER_PINS[] = {9, 8, 7, 6, 5, 4, 3, 2};
1212
char buffer[32];
1313

1414
const char opcodeMap[256][32] PROGMEM = {
@@ -207,9 +207,9 @@ const char opcodeMap[256][32] PROGMEM = {
207207
"bleu",
208208
"bgtu",
209209
"s7sdsm",
210-
"INVALID",
211-
"INVALID",
212-
"INVALID",
210+
"add",
211+
"slr",
212+
"sub",
213213
"INVALID",
214214
"INVALID",
215215
"mov C->A",
@@ -220,12 +220,12 @@ const char opcodeMap[256][32] PROGMEM = {
220220
"mov Y->C",
221221
"mov F->C",
222222
"INVALID",
223-
"add",
224-
"slr",
225-
"sub",
226-
"INVALID",
227-
"INVALID",
228-
"INVALID",
223+
"ldindr ->A",
224+
"ldindr ->TMP",
225+
"ldindr ->B",
226+
"ldindr ->C",
227+
"ldindr ->X",
228+
"ldindr ->Y",
229229
"INVALID",
230230
"INVALID",
231231
"mov X->A",
@@ -260,12 +260,12 @@ const char opcodeMap[256][32] PROGMEM = {
260260
"bns",
261261
"bnc",
262262
"INVALID",
263-
"INVALID",
264-
"INVALID",
265-
"INVALID",
266-
"INVALID",
267-
"INVALID",
268-
"INVALID",
263+
"stindr ->A",
264+
"stindr ->TMP",
265+
"stindr ->B",
266+
"stindr ->C",
267+
"stindr ->X",
268+
"stindr ->Y",
269269
"INVALID",
270270
"INVALID"
271271
};

0 commit comments

Comments
 (0)