-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmachine.c
More file actions
64 lines (58 loc) · 2.09 KB
/
machine.c
File metadata and controls
64 lines (58 loc) · 2.09 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include "machine.h"
extern unsigned char* xlink_server_c64(unsigned short address, int *size);
extern unsigned char* xlink_server_basic_c64(int *size);
extern unsigned char* xlink_server_c128(unsigned short address, int *size);
extern unsigned char* xlink_server_basic_c128(int *size);
extern void xlink_kernal_c64(unsigned char* image);
extern void xlink_kernal_c128(unsigned char* image);
xlink_machine_t c64 = {
.type = XLINK_MACHINE_C64,
.name = "c64",
.memory = 0x37,
.bank = 0x00,
.safe_memory = 0x33,
.safe_bank = 0x00,
.default_basic_start = 0x0801,
.basic_start = 0x2b,
.basic_end = 0x2d,
.warmstart = 0xfe66,
.mode = 0x9d,
.prgmode = 0x00,
.io = 0xd000e000,
.screenram = 0x040007e7,
.loram = 0x08010a00,
.hiram = 0xc000d000,
.lorom = 0xa000c000,
.hirom = 0xe0000000,
.benchmark = 0x10008000,
.free_ram_area = 0xc000,
.server = &xlink_server_c64,
.basic_server = &xlink_server_basic_c64,
.kernal = &xlink_kernal_c64,
};
xlink_machine_t c128 = {
.type = XLINK_MACHINE_C128,
.name = "c128",
.memory = 0x00,
.bank = 0x0f,
.safe_memory = 0x01,
.safe_bank = 0x0e,
.default_basic_start = 0x1c01,
.basic_start = 0x2d,
.basic_end = 0x1210,
.warmstart = 0x4003,
.mode = 0x7f,
.prgmode = 0x80,
.io = 0xd000e000,
.screenram = 0x040007e7,
.loram = 0x13001c01,
.hiram = 0x1c014000,
.lorom = 0x4000d000,
.hirom = 0xe0000000,
.benchmark = 0x20004000,
.free_ram_area = 0x1300,
.server = &xlink_server_c128,
.basic_server = &xlink_server_basic_c128,
.kernal = &xlink_kernal_c128,
};
xlink_machine_t *machine = &c64;