forked from EtchedPixels/Virtual68
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv68.h
More file actions
24 lines (21 loc) · 815 Bytes
/
v68.h
File metadata and controls
24 lines (21 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _V68_H
#define _V68_H
#include <stdint.h>
extern uint8_t fc;
inline void cpu_set_fc(unsigned int fcv)
{
fc = fcv;
}
extern unsigned int cpu_read_byte(unsigned int address);
extern unsigned int cpu_read_word(unsigned int address);
extern unsigned int cpu_read_long(unsigned int address);
extern unsigned int cpu_read_word_dasm(unsigned int address);
extern unsigned int cpu_read_long_dasm(unsigned int address);
extern void cpu_write_byte(unsigned int address, unsigned int value);
extern void cpu_write_word(unsigned int address, unsigned int value);
extern void cpu_write_long(unsigned int address, unsigned int value);
extern void cpu_write_long_pd(unsigned int address, unsigned int value);
extern int cpu_irq_ack(int level);
extern void cpu_pulse_reset(void);
void cpu_instr_callback(void);
#endif