http://mcosre.sourceforge.net/docs/tech_notes.html
10/25/2007
![]() |
M c O S R eTechnical Notes |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
SysVersion The value of low-memory global variable SysVersion ($15A), and therefore the vaule returned by "sysv" Gestalt selector, is $0987 when running McOS Re (all versions). Handles A handle is a relocatable block of memory, referenced by an indirect pointer (an address of an address). 24-bit Memory Manager: flag bits of a master pointer
Example: BCLR #7,(A3) * unlock a handle in A3 [68k] $xx(A6) -> param LINK A6,#x * SP = A6+#x (note: #x is usually negative or 0) MOVEA.L $0(A6),A2 * old A6 MOVEA.L $4(A6),A1 * return address MOVEA.L $8(A6),A0 * param #last MOVE.L $C(A6),D0 * param #last-1 MOVE.L $10(A6),D1 * param #last-2 ... Partition type strings
Names that begin with
HFS+ Wrapper Volume Wrapper Volume is a Mac OS Standard volume that wraps around the Mac OS Extended volume. It is required for backward compatibility and to startup from the Mac OS Extended volume. Usual HFS+ Wrapper: software locked, 5 files, 1 directory, blessed dir id = 2 (root directory). Boot Stages
System Extensions
When the System boots, it opens your INIT file with OpenResFile, then it
executes all of the INIT resources in that file. When it's done, it does
a CloseResFile.
System 6: "INIT" #31 | additional INITs, cdevs, System 7: "boot" #3 | RDEVs load code INIT resources must be marked locked because INIT #31 does not lock them. |