- [NEW] Port function pointers now also receive port number as uint16_t

- [NEW] Implemented keyboard response to IN(0xfe), not working yet, DKW
This commit is contained in:
2024-04-15 14:32:18 +02:00
parent 2781a50228
commit 045a2238bd
4 changed files with 100 additions and 19 deletions

2
z80.h
View File

@@ -5,7 +5,7 @@
namespace z80
{
void reset(uint8_t* mem);
void connect_port(int num, int (*in_ptr)(), void (*out_ptr)(int));
void connect_port(int num, int (*in_ptr)(int), void (*out_ptr)(int,int));
void interrupt();
uint32_t step();