better error message when C compilation fails

This commit is contained in:
Araq 2013-03-19 08:43:45 +01:00
commit b7d1901747
3 changed files with 10 additions and 2 deletions

View file

@ -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