Class NULL

java.lang.Object
CPU.instructions.NULL

public class NULL extends Object
This is a "null" instruction - actually means that an illegal opcode will be "executed". The purpose of this is to fill all remaining instructions in the CPU(s opcode table with this one. Then, when this is called it means that there is an instruction that wasn't emulated yet. This is better than to test at every loop iteration during program execution whether an opcode is null or not.
  • Constructor Details

    • NULL

      public NULL()
  • Method Details

    • register

      public final void register(Instruction[] i_table, MC68000Cpu mcpu)
      This registers this instruction for all null elements in the table of instructions.
      Parameters:
      i_table - the table to register with.
      mcpu - the cpu used.