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
Entity | Type | Scope | Short Description |
~Z80Environment | destructor | public | Destructor.
|
Z80Environment | constructor | public | Constructor.
|
Z80Environment | constructor | public | automatically generated |
onReturnFromInterrupt | method | public | Called immediately after a RETI is executed.
|
operator = | operator | public | automatically generated |
readByte | method | public | Reads one byte from memory at the specified address.
|
readPort | method | public | Reads one byte from the specified port.
|
writeByte | method | public | Writes one byte to memory at the specified address.
|
writePort | method | public | Writes 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 ( | ) |
automatically generated
- Source:
- z80.h
- Code:
public Z80Environment & operator = ( | const Z80Environment & ) |
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 ) |
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 ) |
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 ) |
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.