From 23dd8f2722be316350dea8fc1ac3f5acc3fa2307 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Thu, 7 Feb 2013 19:03:19 -0500 Subject: [PATCH] more global variables --- bin/loader.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/loader.cpp b/bin/loader.cpp index 7ae7873..815c598 100644 --- a/bin/loader.cpp +++ b/bin/loader.cpp @@ -14,7 +14,7 @@ #include uint8_t *Memory; -uint32_t HighWater = 0x1000; +uint32_t HighWater = 0x10000; uint32_t MemorySize = 0; uint32_t EmulatedNewPtr(uint32_t size) @@ -288,6 +288,15 @@ void InitializeMPW(int argc, char **argv) WriteLong(Memory, address + 10, argc); WriteLong(Memory, address + 14, argvAddress); WriteLong(Memory, address + 18, envpAddress); + + + + // 0x031a - Lo3Bytes + WriteLong(Memory, 0x031a, 0x00ffffff); + // 0x0a02 - OneOne + WriteLong(Memory, 0x0a02, 0x00010001); + // 0x0a06 - MinusOne + WriteLong(Memory, 0x0a06, 0xffffffff); } void help()