1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-24 15:29:32 +00:00

Document the pseudo-instruction "bad"

This commit is contained in:
Peter Evans 2018-02-03 17:44:41 -06:00
parent f45a64dfe4
commit 10d13f755c

View File

@ -9,6 +9,12 @@
#include "mos6502.h"
#include "mos6502.enums.h"
/*
* Log the attempt to execute a "bad" (which is to say, _undefined_)
* instruction, and exit the program. If we get to this instruction,
* there's probably a bug in the program. (Or you're passing in an
* invalid disk image--one of the two.)
*/
DEFINE_INST(bad)
{
log_critical("Invalid instruction: %2x @ %4x",