mirror of
https://github.com/ksherlock/mpw.git
synced 2025-02-07 01:30:43 +00:00
set LMTime global at start
This commit is contained in:
parent
9dc63fd4b7
commit
9aaf997fe3
6
TODO.txt
6
TODO.txt
@ -1,5 +1,9 @@
|
|||||||
TODO
|
TODO
|
||||||
|
|
||||||
|
|
||||||
|
- tool to list iigs/mac resource fork (rlist)
|
||||||
|
|
||||||
|
|
||||||
1. scan file for debug names (starting at 4e56 - link a6), load into environment table (with tools)
|
1. scan file for debug names (starting at 4e56 - link a6), load into environment table (with tools)
|
||||||
2. address break, ^C break, etc - list reason *before* disasm line
|
2. address break, ^C break, etc - list reason *before* disasm line
|
||||||
4. ; commands - keep track of last address (;l to repeat...)
|
4. ; commands - keep track of last address (;l to repeat...)
|
||||||
@ -46,6 +50,8 @@ CLibraries=$MPW:Libraries:CLibraries-$MPWVersion:
|
|||||||
|
|
||||||
Done
|
Done
|
||||||
----
|
----
|
||||||
|
- set the time global @ start up (Pascal res files)
|
||||||
|
|
||||||
- rbreak/wbreak/rwbreak - break on memory access
|
- rbreak/wbreak/rwbreak - break on memory access
|
||||||
- orca/c : symfile support.
|
- orca/c : symfile support.
|
||||||
|
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <toolbox/toolbox.h>
|
#include <toolbox/toolbox.h>
|
||||||
#include <toolbox/mm.h>
|
#include <toolbox/mm.h>
|
||||||
|
#include <toolbox/os.h>
|
||||||
|
|
||||||
#include <mpw/mpw.h>
|
#include <mpw/mpw.h>
|
||||||
|
|
||||||
#include <mplite/mplite.h>
|
#include <mplite/mplite.h>
|
||||||
@ -728,7 +730,7 @@ int main(int argc, char **argv)
|
|||||||
// for the stack vs allocating it?
|
// for the stack vs allocating it?
|
||||||
|
|
||||||
MM::Init(Memory, MemorySize, kGlobalSize);
|
MM::Init(Memory, MemorySize, kGlobalSize);
|
||||||
|
OS::Init();
|
||||||
MPW::Init(argc, argv);
|
MPW::Init(argc, argv);
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,6 +83,12 @@ namespace OS
|
|||||||
BootTime = std::chrono::steady_clock::now();
|
BootTime = std::chrono::steady_clock::now();
|
||||||
memoryWriteLong(0, MacOS::Ticks); // 0 ticks since boot.
|
memoryWriteLong(0, MacOS::Ticks); // 0 ticks since boot.
|
||||||
|
|
||||||
|
//std::chrono::system_clock::now(), to_time_t
|
||||||
|
// set global variable Time to the current time
|
||||||
|
time_t now = UnixToMac(::time(NULL));
|
||||||
|
|
||||||
|
memoryWriteLong(now, MacOS::TimeLM);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -902,6 +908,7 @@ namespace OS
|
|||||||
{
|
{
|
||||||
return t + EpochAdjust;
|
return t + EpochAdjust;
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t MacToUnix(time_t t)
|
time_t MacToUnix(time_t t)
|
||||||
{
|
{
|
||||||
return t - EpochAdjust;
|
return t - EpochAdjust;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user