Commit Graph

315 Commits

Author SHA1 Message Date
Kelvin Sherlock 49dcba4173 Loader::Native::LoadFile 2013-08-17 19:01:43 -04:00
Kelvin Sherlock 60869a697a MM::Native::HLock / HUnlock 2013-08-17 19:01:25 -04:00
Kelvin Sherlock a0ea7c365a RM::Native::SetResLoad 2013-08-17 18:59:03 -04:00
Kelvin Sherlock 88423bc690 .cpp is a text file 2013-08-15 23:39:37 -04:00
Kelvin Sherlock d6d30ba81e MM - print resource bit when dumping handle info 2013-08-15 23:39:08 -04:00
Kelvin Sherlock 99a5ed86f8 loader makefile 2013-08-15 23:38:41 -04:00
Kelvin Sherlock 748dd6e634 load KODE resource (farModel link) 2013-08-15 23:36:26 -04:00
Kelvin Sherlock 5130649a9e loader.cpp 2013-08-15 23:35:39 -04:00
Kelvin Sherlock 061c025e02 SetToolTrapAddress 2013-08-04 14:34:34 -04:00
Kelvin Sherlock bf5b087514 GetResInfo, LoadResource 2013-08-03 19:19:44 -04:00
Kelvin Sherlock 75606c72e2 MM::Native::ResizeHandle and ReallocHandle (for resource manager) 2013-08-03 19:18:50 -04:00
Kelvin Sherlock 2bd086232b HGetState 2013-08-03 19:17:50 -04:00
Kelvin Sherlock bdce056449 add resource bit to handle info 2013-08-03 19:17:15 -04:00
Kelvin Sherlock b4e5e5a059 new path conversion code 2013-08-03 00:33:24 -04:00
Kelvin Sherlock fc04a2b2cb add license 2013-07-30 01:06:19 -04:00
Kelvin Sherlock 541ac7fc29 TEXT file type is a text file 2013-07-19 19:58:07 -04:00
Kelvin Sherlock 1abb98e1dd ragel compiler flags 2013-07-14 21:05:01 -04:00
Kelvin Sherlock 9aaf997fe3 set LMTime global at start 2013-07-14 16:45:06 -04:00
Kelvin Sherlock 7f59b64aad HandToHand (Pascal) 2013-07-13 19:19:49 -04:00
Kelvin Sherlock 9e2a8d3e53 ResError should return the error on the stack (Pascal / Pascal IIgs) 2013-07-13 01:05:02 -04:00
Kelvin Sherlock b85cf313c0 MM::Native::MemoryInfo 2013-07-07 23:42:27 -04:00
Kelvin Sherlock a436e91373 str2dec, dec2x (Pascal) 2013-07-07 23:41:28 -04:00
Kelvin Sherlock 0dbb111b9b arp long lines 2013-07-07 23:40:51 -04:00
Kelvin Sherlock 16604caf0f minor sane stuff 2013-07-06 15:16:49 -04:00
Kelvin Sherlock a11a264b02 load PACK resources (PascalIIgs) 2013-06-30 13:13:02 -04:00
Kelvin Sherlock ce66961c7e Fix ResLoad not actually loading 2013-06-30 13:12:27 -04:00
Kelvin Sherlock a40bf9ee39 SetMemErrror more often. 2013-06-30 13:10:41 -04:00
Kelvin Sherlock 457c045ebe RM::GetResourceSizeOnDisk 2013-06-30 13:08:40 -04:00
Kelvin Sherlock 9ef1bba18d PtrToHand was also calling GetZone. 2013-06-30 13:07:35 -04:00
Kelvin Sherlock 4c27545022 OpenResFile 2013-06-27 21:54:58 -04:00
Kelvin Sherlock 1dc96f1777 log MM::StackSpace 2013-06-27 20:28:20 -04:00
Kelvin Sherlock 39d1a33483 more resource manager calls 2013-06-27 20:27:55 -04:00
Kelvin Sherlock e40bd303f2 MM::GetZone/SetZone 2013-06-26 23:50:08 -04:00
Kelvin Sherlock fafc1b6cd8 RM Toolcalls 2013-06-26 23:24:20 -04:00
Kelvin Sherlock 675f36368b MM toolcalls 2013-06-26 23:24:03 -04:00
Kelvin Sherlock 7f3b7bcd13 multiple MM::SetHandleSize fixes 2013-06-26 23:23:22 -04:00
Kelvin Sherlock 13657ab760 MM::StackSpace / MM::HandleZone 2013-06-26 22:50:53 -04:00
Kelvin Sherlock f4d4100c5d MM::Native::GetHandleSize 2013-06-26 22:50:30 -04:00
Kelvin Sherlock acb5733e6c MM::SetHandleSize - purge and retry. 2013-06-26 22:50:04 -04:00
Kelvin Sherlock ef80d410ca better memory stats 2013-06-26 22:48:40 -04:00
Kelvin Sherlock 922783b288 DisposeHandle fix (null handles) 2013-06-26 22:48:20 -04:00
Kelvin Sherlock 095a38596d more resource support 2013-06-24 22:53:17 -04:00
Kelvin Sherlock f6132773db OpenRFPerm 2013-06-23 22:05:57 -04:00
Kelvin Sherlock 1aebf46653 RM::CreateResFile 2013-06-23 20:42:16 -04:00
Kelvin Sherlock 1828c9e5f2 probably some useless code 2013-05-23 21:44:36 -04:00
Kelvin Sherlock 1e27acd16a merge H/ non-H calls (Link) 2013-05-23 21:44:14 -04:00
Kelvin Sherlock 66ac4363cf PBGetWDInfo -- stub (Link) 2013-05-23 21:43:17 -04:00
Kelvin Sherlock d0715138f9 SetVol (Link) 2013-05-23 21:42:06 -04:00
Kelvin Sherlock 2eb632892c Split out get/set file info 2013-05-22 20:37:57 -04:00
Kelvin Sherlock f50c1dca32 BitTst 2013-05-22 20:37:03 -04:00
Kelvin Sherlock 71a81ffacb Open - use FDEntry::open 2013-05-18 22:11:42 -04:00
Kelvin Sherlock 159198adcb use macos/errors for errors 2013-05-18 21:44:02 -04:00
Kelvin Sherlock 3ad993ab3f HOpen (Link) 2013-05-18 21:24:49 -04:00
Kelvin Sherlock 044efc7169 FSMakeFSSpec improvements (SC) 2013-05-18 19:36:41 -04:00
Kelvin Sherlock 722aa2e18a GetFPos (SC) 2013-05-18 00:00:47 -04:00
Kelvin Sherlock be3c728185 HFSDispatch / PBGetCatInfo 2013-05-17 23:49:59 -04:00
Kelvin Sherlock bc8885c2ab HGetVol, ResolveFileAlias (SC Support) 2013-05-17 20:15:10 -04:00
Kelvin Sherlock caa0b8b74f MaxBlock (SC) 2013-05-17 19:05:03 -04:00
Kelvin Sherlock 2fb4e67323 GetOS/ToolTrapAddress (MPW 3.2 InitEnv) 2013-05-16 22:39:52 -04:00
Kelvin Sherlock 40d3f9a69b create finder info from prodos file type/aux type, if available. 2013-05-16 00:11:05 -04:00
Kelvin Sherlock 0d6874ae08 use global names 2013-05-12 22:36:22 -04:00
Kelvin Sherlock 6d76fae173 unified and fixed SetFinderInfo 2013-04-10 22:27:49 -04:00
Kelvin Sherlock 80e55b8c82 InitGraf/FScaleDisable (DuplicateIIgs) 2013-04-10 21:21:01 -04:00
Kelvin Sherlock 288aa35cc1 add unit res type (pascal) 2013-04-10 21:20:35 -04:00
Kelvin Sherlock af3af77433 SANE comparisons and status register updates 2013-03-31 23:50:37 -04:00
Kelvin Sherlock cbbab65d2c MM::ReserveMem and minor cleanups 2013-03-31 23:49:59 -04:00
Kelvin Sherlock 05baff21ad sane cleanup 2013-03-31 00:23:37 -04:00
Kelvin Sherlock 231e34627d MM::MaxMem / MM::FreeMem (68k Pascal) 2013-03-30 18:45:20 -04:00
Kelvin Sherlock 3f5efae581 Log with no formatting. 2013-03-27 23:54:47 -04:00
Kelvin Sherlock 84598e0ac7 _FSDispatch OpenDF (for Apple's Mac C compiler) 2013-03-27 23:54:08 -04:00
Kelvin Sherlock 828dc94c90 fix _Open logging 2013-03-27 23:49:31 -04:00
Kelvin Sherlock 2b66aeae0e FlushVol (stub) 2013-03-27 00:00:47 -04:00
Kelvin Sherlock 18fa1a760a GetString (mpw C) 2013-03-26 23:54:28 -04:00
Kelvin Sherlock a95efd9e3f GetXResource -> Native::GetResource 2013-03-26 23:54:08 -04:00
Kelvin Sherlock 240ac7b898 Utility::NewString (for DumpObj) 2013-03-26 23:29:08 -04:00
Kelvin Sherlock af98ca4bfd get/set finder info functions 2013-03-26 22:18:44 -04:00
Kelvin Sherlock 57f46bc374 better pathname conversion 2013-03-06 19:17:55 -05:00
Kelvin Sherlock 44f1c5a048 templated fadd, fconvert 2013-03-05 22:41:13 -05:00
Kelvin Sherlock cab4ae2b65 real sane extended support 2013-03-05 21:41:30 -05:00
Kelvin Sherlock 31b41bf174 write logging 2013-03-04 00:32:10 -05:00
Kelvin Sherlock 77feba11f5 Write, SetEOF, SetFPos, mac_seek 2013-03-03 22:07:25 -05:00
Kelvin Sherlock fea833311a UseResFile 2013-03-03 21:55:33 -05:00
Kelvin Sherlock 184ecf2922 rTyp resource 2013-03-03 21:55:15 -05:00
Kelvin Sherlock 0fa19adbc5 EmptyHandle / ReallocHandle (DumpObj) 2013-03-03 21:54:53 -05:00
Kelvin Sherlock 07e4e3686e fix log bug 2013-03-03 21:53:26 -05:00
Kelvin Sherlock ee44e1ce42 STR# resource (rez) 2013-03-02 20:56:05 -05:00
Kelvin Sherlock 372fab3dc5 remove os.h errors 2013-03-02 20:55:47 -05:00
Kelvin Sherlock 9b1afa3d00 open rf stuff 2013-03-02 20:55:17 -05:00
Kelvin Sherlock a8bd0248da .r + .rez are text 2013-03-02 20:55:00 -05:00
Kelvin Sherlock db9fa7aa23 OpenRF 2013-03-02 20:54:43 -05:00
Kelvin Sherlock 68852c9d16 RM::CurResFile 2013-03-02 20:53:54 -05:00
Kelvin Sherlock ceeabfb1b0 unimplemented prototypes 2013-03-02 17:41:46 -05:00
Kelvin Sherlock 1871f85e7b HFS Dispatch (in design) 2013-03-02 17:39:54 -05:00
Kelvin Sherlock adba68c724 use finder info to check binary files (linkiigs errors) 2013-03-02 17:38:51 -05:00
Kelvin Sherlock 7578fbce73 getfinfo / setfinfo 2013-02-28 18:58:37 -05:00
Kelvin Sherlock 233c625cb0 move errno_to_oserr 2013-02-28 18:58:17 -05:00
Kelvin Sherlock 9c951a221c High-Level HFS Dispatch 2013-02-28 18:05:39 -05:00
Kelvin Sherlock ddf73f04ee .inc is text (mpw asm) 2013-02-27 23:43:02 -05:00
Kelvin Sherlock dbe264d591 more resource traps 2013-02-26 18:33:21 -05:00
Kelvin Sherlock 8cdede6104 .p/.pas are text files 2013-02-26 18:32:55 -05:00
Kelvin Sherlock df66ea44b3 PtrToHand 2013-02-26 18:32:39 -05:00
Kelvin Sherlock 6bc34f2085 SetHandleSize, purgeable/locked flags 2013-02-26 18:32:20 -05:00
Kelvin Sherlock 55a255f44f use toolbox errors 2013-02-26 18:30:25 -05:00
Kelvin Sherlock 528e19b1d9 mac toolbox errors 2013-02-26 18:28:01 -05:00
Kelvin Sherlock b5be3a4924 FDEntry for open/close/read 2013-02-25 20:41:35 -05:00
Kelvin Sherlock 95f41785eb FDEntry::close 2013-02-25 20:40:28 -05:00
Kelvin Sherlock e4dff8bc81 use OS::Internal for MPW File tables. 2013-02-25 20:16:55 -05:00
Kelvin Sherlock d59222d02f os_internal 2013-02-25 17:47:58 -05:00
Kelvin Sherlock c206573a17 Pack7/DecStr68k 2013-02-25 17:36:07 -05:00
Kelvin Sherlock 82d760ebf1 fix bug with read return value 2013-02-25 17:34:40 -05:00
Kelvin Sherlock 9e6176001a OS::Close 2013-02-25 17:34:25 -05:00
Kelvin Sherlock 1aa5c048ad load STR , YACC resources (Pascal IIgs) 2013-02-25 17:33:56 -05:00
Kelvin Sherlock feed83ebf0 StripAddress 2013-02-25 17:33:26 -05:00
Kelvin Sherlock c5f07d4706 initial work for HighLevelHFSDispatch 2013-02-24 23:23:05 -05:00
Kelvin Sherlock 6ae8b870a0 open/read 2013-02-24 23:22:31 -05:00
Kelvin Sherlock 8235193554 Pack6 support (very limited) 2013-02-24 23:21:48 -05:00
Kelvin Sherlock 5c00dc1ca5 GetHandleSize, HPurge 2013-02-24 23:20:38 -05:00
Kelvin Sherlock d8bbaf2265 actual GetResource support 2013-02-20 23:28:55 -05:00
Kelvin Sherlock 4136209d84 Native::NewHandle, Native::DisposeHandle 2013-02-20 23:28:35 -05:00
Kelvin Sherlock e3a3c4a933 (very) limited SANE support 2013-02-20 23:28:13 -05:00
Kelvin Sherlock e56a311c2e simplify CmpString case insensitive check 2013-02-20 20:17:14 -05:00
Kelvin Sherlock 9ed82d7639 Get1Resource, ReleaseResource 2013-02-19 18:28:58 -05:00
Kelvin Sherlock bf47a41ecc MoveHHi 2013-02-19 18:28:29 -05:00
Kelvin Sherlock 3300006953 more text files 2013-02-18 18:20:38 -05:00
Kelvin Sherlock 24611657a8 Move Time:: to OS::
add tick support (std::chrono::steady_clock)
2013-02-17 23:00:28 -05:00
Kelvin Sherlock 3fc0839807 --memory-stats flag 2013-02-17 21:54:45 -05:00
Kelvin Sherlock c2f23c8f5e text-match m16.xxx and e16.xxx 2013-02-17 20:44:01 -05:00
Kelvin Sherlock 9564f13d85 CmpString (asmiigs - environment compare) 2013-02-17 18:08:39 -05:00
Kelvin Sherlock 1bb0369223 Native::NewPtr clear flag 2013-02-17 15:07:32 -05:00
Kelvin Sherlock 4f4fde9cfb add MM::Native functions for memory allocation 2013-02-17 13:03:03 -05:00
Kelvin Sherlock 7d10b0da5d convert : -> / for pathnames
(needs to be more complicated but ok for now)
2013-02-17 01:18:00 -05:00
Kelvin Sherlock 2e1245d9fe .lst files (linkiigs) are text 2013-02-17 01:17:14 -05:00
Kelvin Sherlock 3ba3691622 .macros are text files. 2013-02-16 19:50:40 -05:00
Kelvin Sherlock 97b5dd6400 toolbox logging flag. 2013-02-16 18:51:28 -05:00
Kelvin Sherlock c7ccb62e6c OS::GetEOF 2013-02-16 16:11:10 -05:00
Kelvin Sherlock 85f19644f3 HLock, HUnlock, GetPtrSize 2013-02-16 15:37:55 -05:00
Kelvin Sherlock 61ea17ff4a OS text/binary based on name 2013-02-16 13:32:47 -05:00
Kelvin Sherlock 475cbc47eb fix GetFileInfo (finder info overwritten) 2013-02-15 23:47:00 -05:00
Kelvin Sherlock 1f9b10a59e UnloadSeg, use StackFrame templates 2013-02-15 20:42:20 -05:00
Kelvin Sherlock 97a89c1904 TickCount 2013-02-15 20:41:57 -05:00
Kelvin Sherlock a14cd5eb5d MM::SetPtrSize 2013-02-15 20:33:00 -05:00
Kelvin Sherlock 461989baee fix template instantiation dependencies 2013-02-15 20:32:35 -05:00
Kelvin Sherlock 05d7518d98 CompactMem (stub) 2013-02-15 00:08:22 -05:00
Kelvin Sherlock f226bdd60c GetFNum, StackFrame template 2013-02-15 00:00:15 -05:00
Kelvin Sherlock 326e2eacc8 quickdraw 2013-02-14 23:09:05 -05:00
Kelvin Sherlock 0bb73b10bd NewHandle/DisposeHandle 2013-02-14 23:08:56 -05:00
Kelvin Sherlock 04d878c300 move quickdraw stuff to its own file 2013-02-14 23:08:38 -05:00
Kelvin Sherlock 0f7568a2ca RM::GetResource stub 2013-02-13 23:07:33 -05:00
Kelvin Sherlock 5708edd11d OS::Delete 2013-02-13 22:38:34 -05:00
Kelvin Sherlock a16cd348e9 update tools 2013-02-13 22:16:40 -05:00
Kelvin Sherlock 44dbdd89a4 GetVol, Create 2013-02-13 22:16:26 -05:00
Kelvin Sherlock 8bde718b83 WritePString 2013-02-13 22:16:05 -05:00
Kelvin Sherlock db68aea8b1 time commands 2013-02-13 22:15:42 -05:00
Kelvin Sherlock 29fb14ffd2 SetFileInfo 2013-02-12 22:35:15 -05:00
Kelvin Sherlock ff80faa537 os traps 2013-02-12 17:32:43 -05:00
Kelvin Sherlock 4b31bf22bb dispose ptr 2013-02-10 20:19:35 -05:00
Kelvin Sherlock b2a96d636c bug 2013-02-10 20:19:25 -05:00
Kelvin Sherlock c5626a0fc4 DisposePtr 2013-02-10 20:19:11 -05:00
Kelvin Sherlock 5f0e1c7ff3 set memory error (0x0220 global page) 2013-02-07 23:45:29 -05:00
Kelvin Sherlock 9687f1c387 Add BlockMove 2013-02-07 23:44:58 -05:00
Kelvin Sherlock c8da211026 mm init, newptr 2013-02-07 22:49:20 -05:00
Kelvin Sherlock 47b97b04fe fix typo 2013-02-07 22:49:04 -05:00
Kelvin Sherlock b6aa07a012 toolbox updates 2013-02-07 22:12:30 -05:00
Kelvin Sherlock 883816f7cd clean up the toolbox... 2013-02-07 19:21:47 -05:00
Kelvin Sherlock 64618097a1 toolbox code... 2013-02-06 23:44:12 -05:00