summaryrefslogtreecommitdiff
path: root/src/apple.h
blob: 01452cf93e0414395cfd5a907527c75a3626074d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef APPLE
#define APPLE


#include"cpu/6502.h"
#include"cpu/addressing.h"
#include"cpu/core.h"
#include"cpu/instructions.h"
#include"cpu/table.h"

#define MEMORY_SIZE 4096

#define XAML	0x24
#define XAMH	0x25
#define STL		0x26
#define STH		0x27
#define L		0x28
#define H		0x29
#define YSAV	0x2A
#define MODE	0x2B

#define KBD		0xD010
#define KBD_CR	0xD011
#define DSP		0xD012
#define DSP_CR	0xD013

void AppleOn();

void AppleReset();

byte getMemory(address x);

void setMemory(address x, byte y);

#endif