1 |
|
/* |
2 |
|
* main.cpp - Startup/shutdown code |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2002 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2004 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 |
|
} |
176 |
|
// Set default video mode in XPRAM |
177 |
|
XPRAM[0x56] = 0x42; // 'B' |
178 |
|
XPRAM[0x57] = 0x32; // '2' |
179 |
< |
XPRAM[0x58] = DepthToAppleMode(VideoMonitor.mode.depth); |
179 |
> |
const monitor_desc &main_monitor = *VideoMonitors[0]; |
180 |
> |
XPRAM[0x58] = main_monitor.depth_to_apple_mode(main_monitor.get_current_mode().depth); |
181 |
|
XPRAM[0x59] = 0; |
182 |
|
|
183 |
|
#if EMULATED_68K |