fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

vic20: Enable undefined CPU instructions

+21 -5
+9 -2
src/arch/vic20/cmd.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/arch/vic20/cmd.c * 7 7 * Created: 2020-04-18 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 2020 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 2020-2022 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 58 58 n += sprintf (dst + n, " %02X", (unsigned) op->dat[i]); 59 59 } 60 60 61 - while (n < 16) { 61 + while (n < 15) { 62 + dst[n++] = ' '; 63 + } 64 + 65 + if (op->flags & E6502_OPF_UND) { 66 + dst[n++] = '*'; 67 + } 68 + else { 62 69 dst[n++] = ' '; 63 70 } 64 71
+12 -3
src/arch/vic20/setup.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/arch/vic20/setup.c * 7 7 * Created: 2020-04-19 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 2020 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 2020-2022 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 82 82 sim->clock, sim->speed, sim->speed_auto, sim->pal 83 83 ); 84 84 85 - sim->cpu = e6502_new(); 86 - sim->mem = mem_new(); 85 + if ((sim->cpu = e6502_new()) == NULL) { 86 + pce_log (MSG_ERR, "*** creating the cpu failed\n"); 87 + return; 88 + } 89 + 90 + e6502_set_flags (sim->cpu, E6502_FLAG_UNDEF); 91 + 92 + if ((sim->mem = mem_new()) == NULL) { 93 + pce_log (MSG_ERR, "*** creating memory failed\n"); 94 + return; 95 + } 87 96 88 97 e6502_set_mem_f (sim->cpu, sim->mem, mem_get_uint8, mem_set_uint8); 89 98 }