[ROOT] --> Emulator
I8080 CPU emulator.
public I8080 ( I8080Environment & env ) ;
Costructor.
Creates an I8080 emulator associated to the specified environment. The environment provides functions to access memory and ports, that is it interfaces the emulated CPU with the other (emulated) hardware components.
public I8080 ( const I8080 & cpu ) ;
Copy constructor.
public virtual ~ I8080 ( ) ;
Destructor.
public enum Flags { Carry = 0x01, , AddSub = 0x02, , Subtraction = AddSub , Parity = 0x04, , Overflow = Parity , Flag3 = 0x08, , HalfCarry = 0x10, , AuxCarry = HalfCarry , Flag5 = 0x20, , Interrupt = Flag5 , Zero = 0x40, , Sign = 0x80 } ;
CPU flags.
public unsigned char B
8-bit register B.
public unsigned char C
8-bit register C.
public unsigned char D
8-bit register D.
public unsigned char E
8-bit register E.
public unsigned char H
8-bit register H.
public unsigned char L
8-bit register L.
public unsigned char A
8-bit accumulator register A.
public unsigned char F
8-bit flag register F.
public unsigned PC
16-bit program counter.
public unsigned SP
16-bit stack pointer.
public virtual void reset ( ) ;
Resets the CPU to its initial state.
public virtual void step ( ) ;
Executes one CPU instruction.
public virtual void interrupt ( unsigned address ) ;
Informs the CPU that an interrupt has occurred.
address | 16-bit address of the interrupt handler |
public unsigned AF ( ) const ;
Returns the 16-bit pseudo-register AF.
public unsigned BC ( ) const ;
Returns the 16-bit pseudo-register BC.
public unsigned DE ( ) const ;
Returns the 16-bit pseudo-register DE.
public unsigned HL ( ) const ;
Returns the 16-bit pseudo-register HL.
public unsigned getCycles ( ) const ;
Returns the number of CPU cycles elapsed from the last reset.
public void setCycles ( unsigned value ) ;
Sets the CPU cycle counter to the specified value.
public I8080 & operator = ( const I8080 & ) ;
Assignment operator. Note that the environment is not copied.
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.