dioscuri.module.cpu
Class Instruction_CBW

java.lang.Object
  extended by dioscuri.module.cpu.Instruction_CBW
All Implemented Interfaces:
Instruction

public class Instruction_CBW
extends java.lang.Object
implements Instruction

Intel opcode 98
Convert byte to word.
Copies the sign (bit 7) in AL into every bit in AH register
Flags modified: none


Constructor Summary
Instruction_CBW()
          Class constructor
Instruction_CBW(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Copy sign (bit 7) in AL into every bit in AH register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_CBW

public Instruction_CBW()
Class constructor


Instruction_CBW

public Instruction_CBW(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Copy sign (bit 7) in AL into every bit in AH register

Specified by:
execute in interface Instruction