better error message when C compilation fails
This commit is contained in:
parent
09fc94c4c2
commit
b7d1901747
3 changed files with 10 additions and 2 deletions
|
|
@ -132,6 +132,7 @@ proc exec(cpu: PCPU) =
|
|||
let opcode = cpu.mem.readByte(cpu.r.pc)
|
||||
#echo("OPCODE: 0x", toHex(opcode, 2))
|
||||
cpu.r.pc.inc()
|
||||
# PROBLEM: 0x7B is part of some range later but the compiler does not care!
|
||||
case opcode
|
||||
of 0x06:
|
||||
# LD B, n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue