Files
z80/z80.h
Raimon Zamora 045a2238bd - [NEW] Port function pointers now also receive port number as uint16_t
- [NEW] Implemented keyboard response to IN(0xfe), not working yet, DKW
2024-04-15 14:32:18 +02:00

24 lines
494 B
C++

#pragma once
#include <stdint.h>
namespace z80
{
void reset(uint8_t* mem);
void connect_port(int num, int (*in_ptr)(int), void (*out_ptr)(int,int));
void interrupt();
uint32_t step();
uint8_t *getMem();
uint16_t getAF(const bool alt=false);
uint16_t getBC(const bool alt=false);
uint16_t getDE(const bool alt=false);
uint16_t getHL(const bool alt=false);
uint16_t getIX();
uint16_t getIY();
uint16_t getSP();
uint16_t getPC();
}