aboutsummaryrefslogtreecommitdiff
path: root/SrcShared/EmLowMem.h
blob: ecb22ab468f8580ce57c84f408b2f891f299f0f3 (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
36
37
38
39
40
41
/* -*- mode: C++; tab-width: 4 -*- */
/* ===================================================================== *\
	Copyright (c) 2000-2001 Palm, Inc. or its subsidiaries.
	All rights reserved.

	This file is part of the Palm OS Emulator.

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.
\* ===================================================================== */

#ifndef EmLowMem_h
#define EmLowMem_h

#include "EmPalmStructs.h"

class SessionFile;

class EmLowMem
{
	public:
		static void 			Initialize			(void);
		static void 			Reset				(void);
		static void 			Save				(SessionFile&);
		static void 			Load				(SessionFile&);
		static void 			Dispose 			(void);

		static uint8			GetEvtMgrIdle		(void);
		static Bool 			TrapExists			(uint16 iATrap);
		static emuptr			GetTrapAddress		(uint16 iATrap);

		#define EmLowMem_GetGlobal(x) 		EmLowMem::fgLowMem.globals.x
		#define EmLowMem_SetGlobal(x, v)	EmLowMem::fgLowMem.globals.x = v
		#define EmLowMem_AddressOf(x)		EmLowMem::fgLowMem.globals.x.GetPtr ()

		static EmAliasLowMemHdrType<PAS>	fgLowMem;	
};

#endif	// EmLowMem_h