branlwyd / bdcpu16

DCPU-16 simulator based on version 1.7 of the DCPU-16 specification. See http://dcpu.com/.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codegen: stricter failures for HWI/HWQ

branlwyd opened this issue · comments

Currently, if the hardware index read by HWI/HWQ is out of bounds, these instructions will act as no-ops. Preferably, these instructions should fault the CPU as illegal instructions to ease debugging. This is possible now that the CPU is notified of illegal instructions through illegalInstructionExecuted().

Done in a5fc4c9. Closing.