1 |
|
/* |
2 |
|
* main.cpp - Startup/shutdown code |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2002 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
45 |
|
#if ENABLE_MON |
46 |
|
#include "mon.h" |
47 |
|
|
48 |
< |
static uint32 mon_read_byte_b2(uint32 adr) |
48 |
> |
static uint32 mon_read_byte_b2(uintptr adr) |
49 |
|
{ |
50 |
|
return ReadMacInt8(adr); |
51 |
|
} |
52 |
|
|
53 |
< |
static void mon_write_byte_b2(uint32 adr, uint32 b) |
53 |
> |
static void mon_write_byte_b2(uintptr adr, uint32 b) |
54 |
|
{ |
55 |
|
WriteMacInt8(adr, b); |
56 |
|
} |
61 |
|
* Initialize everything, returns false on error |
62 |
|
*/ |
63 |
|
|
64 |
< |
bool InitAll(void) |
64 |
> |
bool InitAll(const char *vmdir) |
65 |
|
{ |
66 |
|
// Check ROM version |
67 |
|
if (!CheckROM()) { |
100 |
|
#endif |
101 |
|
|
102 |
|
// Load XPRAM |
103 |
< |
XPRAMInit(); |
103 |
> |
XPRAMInit(vmdir); |
104 |
|
|
105 |
|
// Load XPRAM default values if signature not found |
106 |
|
if (XPRAM[0x0c] != 0x4e || XPRAM[0x0d] != 0x75 |