Home :: PacmanEmulator :: Z80 classes

class Z80Environment

? ^ 
Environment for Z80 emulation.

This class implements all input/output functions for the Z80 emulator class, that is it provides functions to access the system RAM, ROM and I/O ports.

An object of this class corresponds to a system that has no RAM, ROM or ports: users of the Z80 emulator should provide the desired behaviour by writing a descendant of this class.

Source:
z80.h:38
Author:
Alessandro Scotti
Version:
1.0

Contents

^ 
EntityTypeScopeShort Description
~Z80Environmentdestructor publicDestructor.
Z80Environmentconstructor publicConstructor.
Z80Environmentconstructor publicautomatically generated
onReturnFromInterruptmethod publicCalled immediately after a RETI is executed.
operator =operator publicautomatically generated
readBytemethod publicReads one byte from memory at the specified address.
readPortmethod publicReads one byte from the specified port.
writeBytemethod publicWrites one byte to memory at the specified address.
writePortmethod publicWrites one byte from the specified port.

destructor ~Z80Environment

? ^  > 
Destructor.
Source:
z80.h:46
Code:
public virtual ~ Z80Environment ( )

constructor Z80Environment

? ^  < > 
Constructor.
Source:
z80.h:42
Code:
public Z80Environment ( )

constructor Z80Environment

? ^  < > 
automatically generated
Source:
z80.h
Code:
public Z80Environment ( const Z80Environment & )

method onReturnFromInterrupt

? ^  < > 
Called immediately after a RETI is executed.
Source:
z80.h:94
Code:
public virtual void onReturnFromInterrupt ( )

operator =

? ^  < > 
automatically generated
Source:
z80.h
Code:
public Z80Environment & operator = ( const Z80Environment & )

method readByte

? ^  < > 
Reads one byte from memory at the specified address.

The address parameter may contain any value, including values greater than 0xFFFF (64k), so if necessary the implementation must check for illegal values and handle them according to the implemented system specifications.

Source:
z80.h:59
Code:
public virtual unsigned char readByte ( unsigned addr )

method readPort

? ^  < > 
Reads one byte from the specified port.

Note: the port value is always between 00h and FFh included.

Source:
z80.h:80
Code:
public virtual unsigned char readPort ( unsigned port )

method writeByte

? ^  < > 
Writes one byte to memory at the specified address.

The address parameter may contain any value, including values greater than 0xFFFF (64k), so if necessary the implementation must check for illegal values and handle them according to the implemented system specifications.

Source:
z80.h:71
Code:
public virtual void writeByte ( unsigned addr ,
unsigned char value )

method writePort

? ^  < > 
Writes one byte from the specified port.

Note: the port value is always between 00h and FFh included.

Source:
z80.h:88
Code:
public virtual void writePort ( unsigned port ,
unsigned char value )

Copyright (c) 1997-2003,2004 Alessandro Scotti. All rights reserved.