ROLAND  0.70
Amstrad Emulator based on Caprice Source rewritten in C++.
Classes | Macros | Enumerations | Functions
raze.h File Reference
#include "types.h"

Go to the source code of this file.

Classes

class  Raze
 

Macros

#define Z80_MAP_DIRECT   0 /* Reads/writes are done directly */
 
#define Z80_MAP_HANDLED   1 /* Reads/writes use a function handler */
 

Enumerations

enum  z80_register {
  Z80_REG_AF =0, Z80_REG_BC, Z80_REG_DE, Z80_REG_HL,
  Z80_REG_IX, Z80_REG_IY, Z80_REG_PC, Z80_REG_SP,
  Z80_REG_AF2, Z80_REG_BC2, Z80_REG_DE2, Z80_REG_HL2,
  Z80_REG_IFF1, Z80_REG_IFF2, Z80_REG_IR, Z80_REG_IM,
  Z80_REG_IRQVector, Z80_REG_IRQLine, Z80_REG_Halted
}
 

Functions

void z80_reset (void)
 
int z80_emulate (int cycles)
 
void z80_raise_IRQ (tUBYTE vector)
 
void z80_lower_IRQ (void)
 
void z80_cause_NMI (void)
 
int z80_get_context_size (void)
 
void z80_set_context (void *context)
 
void z80_get_context (void *context)
 
tUWORD z80_get_reg (z80_register reg)
 
void z80_set_reg (z80_register reg, tUWORD value)
 
int z80_get_cycles_elapsed (void)
 
void z80_stop_emulating (void)
 
void z80_skip_idle (void)
 
void z80_do_wait_states (int n)
 
void z80_init_memmap (void)
 
void z80_map_fetch (tUWORD start, tUWORD end, tUBYTE *memory)
 
void z80_map_read (tUWORD start, tUWORD end, tUBYTE *memory)
 
void z80_map_write (tUWORD start, tUWORD end, tUBYTE *memory)
 
void z80_add_read (tUWORD start, tUWORD end, int method, void *data)
 
void z80_add_write (tUWORD start, tUWORD end, int method, void *data)
 
void z80_set_in (tUBYTE(*handler)(tUWORD port))
 
void z80_set_out (void(*handler)(tUWORD port, tUBYTE value))
 
void z80_set_reti (void(*handler)(void))
 
void z80_set_av (void(*handler)(void))
 
void z80_set_fetch_callback (void(*handler)(tUWORD pc))
 
void z80_end_memmap (void)
 

Macro Definition Documentation

#define Z80_MAP_DIRECT   0 /* Reads/writes are done directly */
#define Z80_MAP_HANDLED   1 /* Reads/writes use a function handler */

Enumeration Type Documentation

Enumerator
Z80_REG_AF 
Z80_REG_BC 
Z80_REG_DE 
Z80_REG_HL 
Z80_REG_IX 
Z80_REG_IY 
Z80_REG_PC 
Z80_REG_SP 
Z80_REG_AF2 
Z80_REG_BC2 
Z80_REG_DE2 
Z80_REG_HL2 
Z80_REG_IFF1 
Z80_REG_IFF2 
Z80_REG_IR 
Z80_REG_IM 
Z80_REG_IRQVector 
Z80_REG_IRQLine 
Z80_REG_Halted 

Function Documentation

void z80_add_read ( tUWORD  start,
tUWORD  end,
int  method,
void *  data 
)
void z80_add_write ( tUWORD  start,
tUWORD  end,
int  method,
void *  data 
)
void z80_cause_NMI ( void  )
void z80_do_wait_states ( int  n)
int z80_emulate ( int  cycles)

Referenced by Raze::execute().

void z80_end_memmap ( void  )

Referenced by Raze::endMemMap().

void z80_get_context ( void *  context)
int z80_get_context_size ( void  )
int z80_get_cycles_elapsed ( void  )

Referenced by Raze::cyclecount().

tUWORD z80_get_reg ( z80_register  reg)
void z80_init_memmap ( void  )

Referenced by Raze::initMemMap().

void z80_lower_IRQ ( void  )

Referenced by Raze::setIntPending().

void z80_map_fetch ( tUWORD  start,
tUWORD  end,
tUBYTE memory 
)

Referenced by Raze::setMembank_read().

void z80_map_read ( tUWORD  start,
tUWORD  end,
tUBYTE memory 
)

Referenced by Raze::setMembank_read().

void z80_map_write ( tUWORD  start,
tUWORD  end,
tUBYTE memory 
)

Referenced by Raze::setMembank_write().

void z80_raise_IRQ ( tUBYTE  vector)

Referenced by Raze::setIntPending().

void z80_reset ( void  )

Referenced by Raze::endMemMap().

void z80_set_av ( void(*)(void)  handler)

Referenced by Raze::setWsHandler().

void z80_set_context ( void *  context)
void z80_set_fetch_callback ( void(*)(tUWORD pc)  handler)
void z80_set_in ( tUBYTE(*)(tUWORD port handler)

Referenced by Raze::setInHandler().

void z80_set_out ( void(*)(tUWORD port, tUBYTE value)  handler)

Referenced by Raze::setOutHandler().

void z80_set_reg ( z80_register  reg,
tUWORD  value 
)
void z80_set_reti ( void(*)(void)  handler)
void z80_skip_idle ( void  )
void z80_stop_emulating ( void  )

Referenced by Raze::stop().