Macros as supplied with Merlin 16+

This commit is contained in:
Andrew Roughan 2015-04-18 22:14:16 +10:00
parent 291f4a8b09
commit 8881d378bc
28 changed files with 5305 additions and 0 deletions

55
Ace.Macs.S Normal file
View File

@ -0,0 +1,55 @@
* ACE tool macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_ACEBootInit MAC
Tool $11D
<<<
~ACEStartUp MAC
PHW ]1
_ACEStartUp MAC
Tool $21D
<<<
_ACEShutDown MAC
Tool $31D
<<<
~ACEVersion MAC
PHA
_ACEVersion MAC
Tool $41D
<<<
_ACEReset MAC
Tool $51D
<<<
~ACEStatus MAC
PHA
_ACEStatus MAC
Tool $61D
<<<
~ACEInfo MAC
P2SW ]1
_ACEInfo MAC
Tool $71D
<<<
~ACECompress MAC
PxL ]1;]2;]3;]4
PxW ]5;]6
_ACECompress MAC
Tool $91D
<<<
~ACEExpand MAC
PxL ]1;]2;]3;]4
PxW ]5;]6
_ACEExpand MAC
Tool $A1D
<<<
_ACECompBegin MAC
Tool $B1D
<<<
_ACEExpBegin MAC
Tool $C1D
<<<

90
Adb.Macs.S Normal file
View File

@ -0,0 +1,90 @@
* Desktop Bus tool macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_ADBBootInit MAC
Tool $109
<<<
_ADBStartUp MAC
Tool $209
<<<
_ADBShutDown MAC
Tool $309
<<<
_ADBVersion MAC
Tool $409
<<<
_ADBReset MAC
Tool $509
<<<
~ADBStatus MAC
PHA
_ADBStatus MAC
Tool $609
<<<
~SendInfo MAC
PHW ]1
PHLW ]2;]3
_SendInfo MAC
Tool $909
<<<
~ReadKeyMicroData MAC
PHW ]1
PHLW ]2;]3
_ReadKeyMicroData MAC
Tool $A09
<<<
~ReadKeyMicroMem MAC
PxL ]1;]2
PHW ]3
_ReadKeyMicroMem MAC
Tool $B09
<<<
~AsyncADBReceive MAC
PHLW ]1;]2
_AsyncADBReceive MAC
Tool $D09
<<<
~SyncADBReceive MAC
PHW ]1
PHLW ]2;]3
_SyncADBReceive MAC
Tool $E09
<<<
_AbsOn MAC
Tool $F09
<<<
_AbsOff MAC
Tool $1009
<<<
~ReadAbs MAC
PHA
_ReadAbs MAC
Tool $1109
<<<
~GetAbsScale MAC
PHL ]1
_GetAbsScale MAC
Tool $1209
<<<
~SetAbsScale MAC
PHL ]1
_SetAbsScale MAC
Tool $1309
<<<
~SRQPoll MAC
PHLW ]1;]2
_SRQPoll MAC
Tool $1409
<<<
~SRQRemove MAC
PHW ]1
_SRQRemove MAC
Tool $1509
<<<
_ClearSRQTable MAC
Tool $1609
<<<

187
Ctl.Macs.S Normal file
View File

@ -0,0 +1,187 @@
* Control Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_CtlBootInit MAC
Tool $110
<<<
~CtlStartUp MAC
PxW ]1;]2
_CtlStartUp MAC
_InitCtrlMgr MAC
Tool $210
<<<
_CtlShutDown MAC
_CtrlShutDown MAC
Tool $310
<<<
~CtlVersion MAC
PHA
_CtlVersion MAC
Tool $410
<<<
_CtlReset MAC
Tool $510
<<<
~CtlStatus MAC
PHA
_CtlStatus MAC
Tool $610
<<<
_NewControl MAC
Tool $910
<<<
~DisposeControl MAC
PHL ]1
_DisposeControl MAC
Tool $A10
<<<
~KillControls MAC
PHL ]1
_KillControls MAC
Tool $B10
<<<
~SetCtlTitle MAC
PxL ]1;]2
_SetCtlTitle MAC
Tool $C10
<<<
~GetCtlTitle MAC
P2SL ]1
_GetCtlTitle MAC
Tool $D10
<<<
~HideControl MAC
PHL ]1
_HideControl MAC
Tool $E10
<<<
~ShowControl MAC
PHL ]1
_ShowControl MAC
Tool $F10
<<<
~DrawControls MAC
PHL ]1
_DrawControls MAC
Tool $1010
<<<
~HiliteControl MAC
PHWL ]1;]2
_HiliteControl MAC
Tool $1110
<<<
_CtlNewRes MAC
Tool $1210
<<<
~FindControl MAC
PHA
PHLW ]1;]2
PHWL ]3;]4
_FindControl MAC
Tool $1310
<<<
~TestControl MAC
P1SW ]1
PHWL ]2;]3
_TestControl MAC
Tool $1410
<<<
~TrackControl MAC
PHA
PxW ]1;]2
PxL ]3;]4
_TrackControl MAC
Tool $1510
<<<
~MoveControl MAC
PxW ]1;]2
PHL ]3
_MoveControl MAC
Tool $1610
<<<
~DragControl MAC
PxW ]1;]2
PxL ]3;]4
PHWL ]5;]6
_DragControl MAC
Tool $1710
<<<
~SetCtlIcons MAC
P2SL ]1
_SetCtlIcons MAC
Tool $1810
<<<
~SetCtlValue MAC
PHWL ]1;]2
_SetCtlValue MAC
Tool $1910
<<<
~GetCtlValue MAC
P1SL ]1
_GetCtlValue MAC
Tool $1A10
<<<
~SetCtlParams MAC
PxW ]1;]2
PHL ]3
_SetCtlParams MAC
Tool $1B10
<<<
~GetCtlParams MAC
P2SL ]1
_GetCtlParams MAC
Tool $1C10
<<<
~DragRect MAC
P2SL ]1
PHLW ]2;]3
PHWL ]4;]5
PxL ]6;]7
PHW ]8
_DragRect MAC
Tool $1D10
<<<
~GrowSize MAC
PHS 2
_GrowSize MAC
Tool $1E10
<<<
~GetCtlDpage MAC
PHA
_GetCtlDpage MAC
Tool $1F10
<<<
~SetCtlAction MAC
PxL ]1;]2
_SetCtlAction MAC
Tool $2010
<<<
~GetCtlAction MAC
P2SL ]1
_GetCtlAction MAC
Tool $2110
<<<
~SetCtlRefCon MAC
PxL ]1;]2
_SetCtlRefCon MAC
Tool $2210
<<<
~GetCtlRefCon MAC
P2SL ]1
_GetCtlRefCon MAC
Tool $2310
<<<
~EraseControl MAC
PHL ]1
_EraseControl MAC
Tool $2410
<<<
~DrawOneCtl MAC
PHL ]1
_DrawOneCtl MAC
Tool $2510
<<<

110
Desk.Macs.S Normal file
View File

@ -0,0 +1,110 @@
* Desk Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_DeskBootInit MAC
Tool $105
<<<
_DeskStartUp MAC
Tool $205
<<<
_DeskShutDown MAC
Tool $305
<<<
~DeskVersion MAC
PHA
_DeskVersion MAC
Tool $405
<<<
~DeskStatus MAC
PHA
_DeskStatus MAC
Tool $605
<<<
_SaveScrn MAC
Tool $905
<<<
_RestScrn MAC
Tool $A05
<<<
_SaveAll MAC
Tool $B05
<<<
_RestAll MAC
Tool $C05
<<<
~InstallNDA MAC
PHL ]1
_InstallNDA MAC
Tool $E05
<<<
~InstallCDA MAC
PHL ]1
_InstallCDA MAC
Tool $F05
<<<
_ChooseCDA MAC
Tool $1105
<<<
~SetDAStrPtr MAC
PxL ]1;]2
_SetDAStrPtr MAC
Tool $1305
<<<
~GetDAStrPtr MAC
PHS 2
_GetDAStrPtr MAC
Tool $1405
<<<
~OpenNDA MAC
P1SW ]1
_OpenNDA MAC
Tool $1505
<<<
~CloseNDA MAC
PHW ]1
_CloseNDA MAC
Tool $1605
<<<
~SystemClick MAC
PxL ]1;]2
PHW ]3
_SystemClick MAC
Tool $1705
<<<
~SystemEdit MAC
P1SW ]1
_SystemEdit MAC
Tool $1805
<<<
_SystemTask MAC
Tool $1905
<<<
~SystemEvent MAC
P1SW ]1
PxL ]2;]3;]4
PHW ]5
_SystemEvent MAC
Tool $1A05
<<<
~GetNumNDAs MAC
PHA
_GetNumNDAs MAC
Tool $1B05
<<<
~CloseNDAByWinPtr MAC
PHL ]1
_CloseNDAByWinPtr MAC
Tool $1C05
<<<
_CloseAllNDAs MAC
Tool $1D05
<<<
~FixAppleMenu MAC
PHW ]1
_FixAppleMenu MAC
Tool $1E05
<<<

284
Dialog.Macs.S Normal file
View File

@ -0,0 +1,284 @@
* Dialog Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_DialogBootInit MAC
Tool $115
<<<
~DialogStartUp MAC
PHW ]1
_DialogStartUp MAC
Tool $215
<<<
_DialogShutDown MAC
Tool $315
<<<
~DialogVersion MAC
PHA
_DialogVersion MAC
Tool $415
<<<
_DialogReset MAC
Tool $515
<<<
~DialogStatus MAC
PHA
_DialogStatus MAC
Tool $615
<<<
~ErrorSound MAC
PHL ]1
_ErrorSound MAC
Tool $915
<<<
~NewModalDialog MAC
P2SL ]1
PHWL ]2;]3
_NewModalDialog MAC
Tool $A15
<<<
~NewModelessDialog MAC
P2SL ]1
PxL ]2;]3
PHWL ]4;]5
PHL ]6
_NewModelessDialog MAC
Tool $B15
<<<
~CloseDialog MAC
PHL ]1
_CloseDialog MAC
Tool $C15
<<<
~NewDItem MAC
PHLW ]1;]2
PHLW ]3;]4
PHLW ]5;]6
PHWL ]7;]8
_NewDItem MAC
Tool $D15
<<<
~RemoveDItem MAC
PHLW ]1;]2
_RemoveDItem MAC
Tool $E15
<<<
~ModalDialog MAC
P1SL ]1
_ModalDialog MAC
Tool $F15
<<<
~IsDialogEvent MAC
P1SL ]1
_IsDialogEvent MAC
Tool $1015
<<<
~DialogSelect MAC
P1SL ]1
PxL ]2;]3
_DialogSelect MAC
Tool $1115
<<<
~DlgCut MAC
PHL ]1
_DlgCut MAC
Tool $1215
<<<
~DlgCopy MAC
PHL ]1
_DlgCopy MAC
Tool $1315
<<<
~DlgPaste MAC
PHL ]1
_DlgPaste MAC
Tool $1415
<<<
~DlgDelete MAC
PHL ]1
_DlgDelete MAC
Tool $1515
<<<
~DrawDialog MAC
PHL ]1
_DrawDialog MAC
Tool $1615
<<<
~Alert MAC
PHA
PxL ]1;]2
_Alert MAC
Tool $1715
<<<
~StopAlert MAC
PHA
PxL ]1;]2
_StopAlert MAC
Tool $1815
<<<
~NoteAlert MAC
PHA
PxL ]1;]2
_NoteAlert MAC
Tool $1915
<<<
~CautionAlert MAC
PHA
PxL ]1;]2
_CautionAlert MAC
Tool $1A15
<<<
~ParamText MAC
PxL ]1;]2;]3;]4
_ParamText MAC
Tool $1B15
<<<
~SetDAFont MAC
PHL ]1
_SetDAFont MAC
Tool $1C15
<<<
~GetControlDItem MAC
PHS 2
PHLW ]1;]2
_GetControlDItem MAC
Tool $1E15
<<<
~GetIText MAC
PHL ]1
PHWL ]2;]3
_GetIText MAC
Tool $1F15
<<<
~SetIText MAC
PHL ]1
PHWL ]2;]3
_SetIText MAC
Tool $2015
<<<
~SelectIText MAC
PHL ]1
PxW ]2;]3;]4
_SelectIText MAC
Tool $2115
<<<
~HideDItem MAC
PHLW ]1;]2
_HideDItem MAC
Tool $2215
<<<
~ShowDItem MAC
PHLW ]1;]2
_ShowDItem MAC
Tool $2315
<<<
~FindDItem MAC
PHA
PxL ]1;]2
_FindDItem MAC
Tool $2415
<<<
~UpdateDialog MAC
PxL ]1;]2
_UpdateDialog MAC
Tool $2515
<<<
~GetDItemType MAC
PHA
PHLW ]1;]2
_GetDItemType MAC
Tool $2615
<<<
~SetDItemType MAC
PHW ]1
PHLW ]2;]3
_SetDItemType MAC
Tool $2715
<<<
~GetDItemBox MAC
PHL ]1
PHWL ]2;]3
_GetDItemBox MAC
Tool $2815
<<<
~SetDItemBox MAC
PHL ]1
PHWL ]2;]3
_SetDItemBox MAC
Tool $2915
<<<
~GetFirstDItem MAC
P1SL ]1
_GetFirstDItem MAC
Tool $2A15
<<<
~GetNextDItem MAC
PHA
PHLW ]1;]2
_GetNextDItem MAC
Tool $2B15
<<<
~ModalDialog2 MAC
P2SL ]1
_ModalDialog2 MAC
Tool $2C15
<<<
~GetDItemValue MAC
PHA
PHLW ]1;]2
_GetDItemValue MAC
Tool $2E15
<<<
~SetDItemValue MAC
PHW ]1
PHLW ]2;]3
_SetDItemValue MAC
Tool $2F15
<<<
~GetNewModalDialog MAC
P2SL ]1
_GetNewModalDialog MAC
Tool $3215
<<<
~GetNewDItem MAC
PxL ]1;]2
_GetNewDItem MAC
Tool $3315
<<<
~GetAlertStage MAC
PHA
_GetAlertStage MAC
Tool $3415
<<<
_ResetAlertStage MAC
Tool $3515
<<<
~DefaultFilter MAC
PHA
PxL ]1;]2;]3
_DefaultFilter MAC
Tool $3615
<<<
~GetDefButton MAC
P1SL ]1
_GetDefButton MAC
Tool $3715
<<<
~SetDefButton MAC
PHWL ]1;]2
_SetDefButton MAC
Tool $3815
<<<
~DisableDItem MAC
PHLW ]1;]2
_DisableDItem MAC
Tool $3915
<<<
~EnableDItem MAC
PHLW ]1;]2
_EnableDItem MAC
Tool $3A15
<<<

122
Event.Macs.S Normal file
View File

@ -0,0 +1,122 @@
* Event Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_EMBootInit MAC
Tool $106
<<<
~EMStartUp MAC
PxW ]1;]2;]3;]4
PxW ]5;]6;]7
_EMStartUp MAC
Tool $206
<<<
_EMShutDown MAC
Tool $306
<<<
~EMVersion MAC
PHA
_EMVersion MAC
Tool $406
<<<
_EMReset MAC
Tool $506
<<<
~EMStatus MAC
PHA
_EMStatus MAC
Tool $606
<<<
~DoWindows MAC
PHA
_DoWindows MAC
Tool $906
<<<
~GetNextEvent MAC
PHA
PHWL ]1;]2
_GetNextEvent MAC
Tool $A06
<<<
~EventAvail MAC
PHA
PHWL ]1;]2
_EventAvail MAC
Tool $B06
<<<
~GetMouse MAC
PHL ]1
_GetMouse MAC
Tool $C06
<<<
~Button MAC
P1SW ]1
_Button MAC
Tool $D06
<<<
~StillDown MAC
P1SW ]1
_StillDown MAC
Tool $E06
<<<
~WaitMouseUp MAC
P1SW ]1
_WaitMouseUp MAC
Tool $F06
<<<
~TickCount MAC
PHS 2
_TickCount MAC
Tool $1006
<<<
~GetDblTime MAC
PHS 2
_GetDblTime MAC
Tool $1106
<<<
~GetCaretTime MAC
PHS 2
_GetCaretTime MAC
Tool $1206
<<<
_SetSwitch MAC
Tool $1306
<<<
~PostEvent MAC
PHA
PHWL ]1;]2
_PostEvent MAC
Tool $1406
<<<
~FlushEvents MAC
PHA
PxW ]1;]2
_FlushEvents MAC
Tool $1506
<<<
~GetOSEvent MAC
PHA
PHWL ]1;]2
_GetOSEvent MAC
Tool $1606
<<<
~OSEventAvail MAC
PHA
PHWL ]1;]2
_OSEventAvail MAC
Tool $1706
<<<
~SetEventMask MAC
PHW ]1
_SetEventMask MAC
Tool $1806
<<<
~FakeMouse MAC
PxW ]1;]2;]3;]4
PHW ]5
_FakeMouse MAC
Tool $1906
<<<

136
Font.Macs.S Normal file
View File

@ -0,0 +1,136 @@
* Font Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_FMBootInit MAC
Tool $11B
<<<
~FMStartUp MAC
PxW ]1;]2
_FMStartUp MAC
Tool $21B
<<<
_FMShutDown MAC
Tool $31B
<<<
~FMVersion MAC
PHA
_FMVersion MAC
Tool $41B
<<<
_FMReset MAC
Tool $51B
<<<
~FMStatus MAC
PHA
_FMStatus MAC
Tool $61B
<<<
~CountFamilies MAC
P1SW ]1
_CountFamilies MAC
Tool $91B
<<<
~FindFamily MAC
P1SW ]1
PHWL ]2;]3
_FindFamily MAC
Tool $A1B
<<<
~GetFamInfo MAC
PHA
PHWL ]1;]2
_GetFamInfo MAC
Tool $B1B
<<<
~GetFamNum MAC
P1SL ]1
_GetFamNum MAC
Tool $C1B
<<<
~AddFamily MAC
PHWL ]1;]2
_AddFamily MAC
Tool $D1B
<<<
~InstallFont MAC
PHLW ]1;]2
_InstallFont MAC
Tool $E1B
<<<
~SetPurgeStat MAC
PHLW ]1;]2
_SetPurgeStat MAC
Tool $F1B
<<<
~CountFonts MAC
P1SL ]1
PHW ]2
_CountFonts MAC
Tool $101B
<<<
~FindFontStats MAC
PHLW ]1;]2
PHWL ]3;]4
_FindFontStats MAC
Tool $111B
<<<
~LoadFont MAC
PHLW ]1;]2
PHWL ]3;]4
_LoadFont MAC
Tool $121B
<<<
_LoadSysFont MAC
Tool $131B
<<<
~AddFontVar MAC
PHLW ]1;]2
_AddFontVar MAC
Tool $141B
<<<
~FixFontMenu MAC
PxW ]1;]2;]3
_FixFontMenu MAC
Tool $151B
<<<
~ChooseFont MAC
P2SL ]1
PHW ]2
_ChooseFont MAC
Tool $161B
<<<
~ItemID2FamNum MAC
P1SW ]1
_ItemID2FamNum MAC
Tool $171B
<<<
~FMSetSysFont MAC
PHL ]1
_FMSetSysFont MAC
Tool $181B
<<<
~FMGetSysFID MAC
PHS 2
_FMGetSysFID MAC
Tool $191B
<<<
~FMGetCurFID MAC
PHS 2
_FMGetCurFID MAC
Tool $1A1B
<<<
~FamNum2ItemID MAC
P1SW ]1
_FamNum2ItemID MAC
Tool $1B1B
<<<
~InstallWithStats MAC
PHLW ]1;]2
PHL ]3
_InstallWithStats MAC
Tool $1C1B
<<<

220
Int.Macs.S Normal file
View File

@ -0,0 +1,220 @@
* Integer Math macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_IMBootInit MAC
Tool $10B
<<<
_IMStartUp MAC
_IntStartUp MAC
Tool $20B
<<<
_IMShutDown MAC
_IntShutDown MAC
Tool $30B
<<<
~IMVersion MAC
PHA
_IMVersion MAC
Tool $40B
<<<
_IMReset MAC
Tool $50B
<<<
~IMStatus MAC
PHA
_IMStatus MAC
Tool $60B
<<<
~Multiply MAC
PHS 2
PxW ]1;]2
_Multiply MAC
Tool $90B
<<<
~SDivide MAC
PHS 2
PxW ]1;]2
_SDivide MAC
Tool $A0B
<<<
~UDivide MAC
PHS 2
PxW ]1;]2
_UDivide MAC
Tool $B0B
<<<
~LongMul MAC
PHS 4
PxL ]1;]2
_LongMul MAC
Tool $C0B
<<<
~LongDivide MAC
PHS 4
PxL ]1;]2
_LongDivide MAC
Tool $D0B
<<<
~FixRatio MAC
PHS 2
PxW ]1;]2
_FixRatio MAC
Tool $E0B
<<<
~FixMul MAC
PHS 2
PxL ]1;]2
_FixMul MAC
Tool $F0B
<<<
~FracMul MAC
PHS 2
PxL ]1;]2
_FracMul MAC
Tool $100B
<<<
~FixDiv MAC
PHS 2
PxL ]1;]2
_FixDiv MAC
Tool $110B
<<<
~FracDiv MAC
PHS 2
PxL ]1;]2
_FracDiv MAC
Tool $120B
<<<
~FixRound MAC
P1SL ]1
_FixRound MAC
Tool $130B
<<<
~FracSqrt MAC
P2SL ]1
_FracSqrt MAC
Tool $140B
<<<
~FracCos MAC
P2SL ]1
_FracCos MAC
Tool $150B
<<<
~FracSin MAC
P2SL ]1
_FracSin MAC
Tool $160B
<<<
~FixATan2 MAC
PHS 2
PxL ]1;]2
_FixATan2 MAC
Tool $170B
<<<
~HiWord MAC
P1SL ]1
_HiWord MAC
Tool $180B
<<<
~LoWord MAC
P1SL ]1
_LoWord MAC
Tool $190B
<<<
~Long2Fix MAC
P2SL ]1
_Long2Fix MAC
Tool $1A0B
<<<
~Fix2Long MAC
P2SL ]1
_Fix2Long MAC
Tool $1B0B
<<<
~Fix2Frac MAC
P2SL ]1
_Fix2Frac MAC
Tool $1C0B
<<<
~Frac2Fix MAC
P2SL ]1
_Frac2Fix MAC
Tool $1D0B
<<<
~Fix2X MAC
PxL ]1;]2
_Fix2X MAC
Tool $1E0B
<<<
~Frac2X MAC
PxL ]1;]2
_Frac2X MAC
Tool $1F0B
<<<
~X2Fix MAC
P2SL ]1
_X2Fix MAC
Tool $200B
<<<
~X2Frac MAC
P2SL ]1
_X2Frac MAC
Tool $210B
<<<
~Int2Hex MAC
PHW ]1
PHLW ]2;]3
_Int2Hex MAC
Tool $220B
<<<
~Long2Hex MAC
PxL ]1;]2
PHW ]3
_Long2Hex MAC
Tool $230B
<<<
~Hex2Int MAC
PHA
PHLW ]2;]3
_Hex2Int MAC
Tool $240B
<<<
~Hex2Long MAC
PHS 2
PHLW ]2;]3
_Hex2Long MAC
Tool $250B
<<<
~Int2Dec MAC
PHWL ]1;]2
PxW ]3;]4
_Int2Dec MAC
Tool $260B
<<<
~Long2Dec MAC
PxL ]1;]2
PxW ]3;]4
_Long2Dec MAC
Tool $270B
<<<
~Dec2Int MAC
P1SL ]1
PxW ]2;]3
_Dec2Int MAC
Tool $280B
<<<
~Dec2Long MAC
P2SL ]1
PxW ]2;]3
_Dec2Long MAC
Tool $290B
<<<
~HexIt MAC
P2SW ]1
_HexIt MAC
Tool $2A0B
<<<

169
Line.Macs.S Normal file
View File

@ -0,0 +1,169 @@
* LineEdit macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_LEBootInit MAC
Tool $114
<<<
~LEStartUp MAC
PxW ]1;]2
_LEStartUp MAC
Tool $214
<<<
_LEShutDown MAC
Tool $314
<<<
~LEVersion MAC
PHA
_LEVersion MAC
Tool $414
<<<
_LEReset MAC
Tool $514
<<<
~LEStatus MAC
PHA
_LEStatus MAC
Tool $614
<<<
~LENew MAC
P2SL ]1
PHLW ]2;]3
_LENew MAC
Tool $914
<<<
~LEDispose MAC
PHL ]1
_LEDispose MAC
Tool $A14
<<<
~LESetText MAC
PHL ]1
PHWL ]2;]3
_LESetText MAC
Tool $B14
<<<
~LEIdle MAC
PHL ]1
_LEIdle MAC
Tool $C14
<<<
~LEClick MAC
PxL ]1;]2
_LEClick MAC
Tool $D14
<<<
~LESetSelect MAC
PxW ]1;]2
PHL ]3
_LESetSelect MAC
Tool $E14
<<<
~LEActivate MAC
PHL ]1
_LEActivate MAC
Tool $F14
<<<
~LEDeactivate MAC
PHL ]1
_LEDeactivate MAC
Tool $1014
<<<
~LEKey MAC
PxW ]1;]2
PHL ]3
_LEKey MAC
Tool $1114
<<<
~LECut MAC
PHL ]1
_LECut MAC
Tool $1214
<<<
~LECopy MAC
PHL ]1
_LECopy MAC
Tool $1314
<<<
~LEPaste MAC
PHL ]1
_LEPaste MAC
Tool $1414
<<<
~LEDelete MAC
PHL ]1
_LEDelete MAC
Tool $1514
<<<
~LEInsert MAC
PHL ]1
PHWL ]2;]3
_LEInsert MAC
Tool $1614
<<<
~LEUpdate MAC
PHL ]1
_LEUpdate MAC
Tool $1714
<<<
~LETextBox MAC
PHLW ]1;]2
PHLW ]3;]4
_LETextBox MAC
Tool $1814
<<<
_LEFromScrap MAC
Tool $1914
<<<
_LEToScrap MAC
Tool $1A14
<<<
~LEScrapHandle MAC
PHS 2
_LEScrapHandle MAC
Tool $1B14
<<<
~LEGetScrapLen MAC
PHA
_LEGetScrapLen MAC
Tool $1C14
<<<
~LESetScrapLen MAC
PHW ]1
_LESetScrapLen MAC
Tool $1D14
<<<
~LESetHilite MAC
PxL ]1;]2
_LESetHilite MAC
Tool $1E14
<<<
~LESetCaret MAC
PxL ]1;]2
_LESetCaret MAC
Tool $1F14
<<<
~LETextBox2 MAC
PHLW ]1;]2
PHLW ]3;]4
_LETextBox2 MAC
Tool $2014
<<<
~LESetJust MAC
PHWL ]1;]2
_LESetJust MAC
Tool $2114
<<<
~LEGetTextHand MAC
P2SL ]1
_LEGetTextHand MAC
Tool $2214
<<<
~LEGetTextLen MAC
P1SL ]1
_LEGetTextLen MAC
Tool $2314
<<<

71
List.Macs.S Normal file
View File

@ -0,0 +1,71 @@
* List Mgr. macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_ListBootInit MAC
Tool $011C
<<<
_ListStartup MAC
Tool $021C
<<<
_ListShutDown MAC
Tool $031C
<<<
~ListVersion MAC
PHA
_ListVersion MAC
Tool $041C
<<<
_ListReset MAC
Tool $051C
<<<
~ListStatus MAC
PHA
_ListStatus MAC
Tool $061C
<<<
~CreateList MAC
PHS 2
PxL ]1;]2
_CreateList MAC
Tool $091C
<<<
~SortList MAC
PxL ]1;]2
_SortList MAC
Tool $0A1C
<<<
~NextMember MAC
PHS 2
PxL ]1;]2
_NextMember MAC
Tool $0B1C
<<<
~DrawMember MAC
PxL ]1;]2
_DrawMember MAC
Tool $0C1C
<<<
~SelectMember MAC
PxL ]1;]2
_SelectMember MAC
Tool $0D1C
<<<
~GetListDefProc MAC
PHS 2
_GetListDefProc MAC
Tool $0E1C
<<<
~ResetMember MAC
P2SL ]1
_ResetMember MAC
Tool $0F1C
<<<
~NewList MAC
PxL ]1;]2
_NewList MAC
Tool $101C
<<<

89
Load.Macs.S Normal file
View File

@ -0,0 +1,89 @@
* Load Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_LoaderInitialization MAC
Tool $111
<<<
_LoaderStartUp MAC
Tool $211
<<<
_LoaderShutDown MAC
Tool $311
<<<
~LoaderVersion MAC
PHA
_LoaderVersion MAC
Tool $411
<<<
_LoaderReset MAC
Tool $511
<<<
~LoaderStatus MAC
PHA
_LoaderStatus MAC
Tool $611
<<<
~InitialLoad MAC
PHS 5
PHW ]1
PHLW ]2;]3
_InitialLoad MAC
Tool $911
<<<
~Restart MAC
PHS 5
PHW ]1
_Restart MAC
Tool $A11
<<<
~LoadSegNum MAC
PHS 2
PxW ]1;]2;]3
_LoadSegNum MAC
Tool $B11
<<<
~UnloadSegNum MAC
PxW ]1;]2;]3
_UnloadSegNum MAC
Tool $C11
<<<
~LoadSegName MAC
PHS 4
PHW ]1
PxL ]2;]3
_LoadSegName MAC
Tool $D11
<<<
~UnloadSeg MAC
PHS 3
PHL ]1
_UnloadSeg MAC
Tool $E11
<<<
~GetLoadSegInfo MAC
PxW ]1;]2;]3
PHL ]4
_GetLoadSegInfo MAC
Tool $F11
<<<
~GetUserID MAC
P1SL ]1
_GetUserID MAC
Tool $1011
<<<
~LGetPathname MAC
PHS 2
PxW ]1;]2
_LGetPathname MAC
Tool $1111
<<<
~UserShutdown MAC
PHA
PxW ]1;]2
_UserShutdown MAC
Tool $1211
<<<

106
Locator.Macs.S Normal file
View File

@ -0,0 +1,106 @@
* Tool Locator macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_TLBootInit MAC
Tool $101
<<<
_TLStartUp MAC
Tool $201
<<<
_TLShutDown MAC
Tool $301
<<<
~TLVersion MAC
PHA
_TLVersion MAC
Tool $401
<<<
_TLReset MAC
Tool $501
<<<
~TLStatus MAC
PHA
_TLStatus MAC
Tool $601
<<<
~GetTSPtr MAC
PHS 2
PxW ]1;]2
_GetTSPtr MAC
Tool $901
<<<
~SetTSPtr MAC
PxW ]1;]2
PHL ]3
_SetTSPtr MAC
Tool $A01
<<<
~GetFuncPtr MAC
PHS 2
PxW ]1;]2
_GetFuncPtr MAC
Tool $B01
<<<
~GetWAP MAC
PHS 2
PxW ]1;]2
_GetWAP MAC
Tool $C01
<<<
~SetWAP MAC
PxW ]1;]2
PHL ]3
_SetWAP MAC
Tool $D01
<<<
~LoadTools MAC
PHL ]1
_LoadTools MAC
Tool $E01
<<<
~LoadOneTool MAC
PxW ]1;]2
_LoadOneTool MAC
Tool $F01
<<<
~UnloadOneTool MAC
PHW ]1
_UnloadOneTool MAC
Tool $1001
<<<
~TLMountVolume MAC
PHA
PxW ]1;]2
PxL ]3;]4;]5;]6
_TLMountVolume MAC
Tool $1101
<<<
~TLTextMountVol MAC
PHA
PxL ]1;]2;]3;]4
_TLTextMountVol MAC
Tool $1201
<<<
~SaveTextState MAC
PHS 2
_SaveTextState MAC
Tool $1301
<<<
~RestoreTextState MAC
PHL ]1
_RestoreTextState MAC
Tool $1401
<<<
~MessageCenter MAC
PxW ]1;]2
PHL ]3
_MessageCenter MAC
Tool $1501
<<<
_SetDefaultTPT MAC
Tool $1601
<<<

165
Mem.Macs.S Normal file
View File

@ -0,0 +1,165 @@
* Memory Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_MMBootInit MAC
Tool $102
<<<
~MMStartUp MAC
PHA
_MMStartUp MAC
Tool $202
<<<
~MMShutDown MAC
PHW ]1
_MMShutDown MAC
Tool $302
<<<
~MMVersion MAC
PHA
_MMVersion MAC
Tool $402
<<<
_MMReset MAC
Tool $502
<<<
~MMStatus MAC
PHA
_MMStatus MAC
Tool $602
<<<
~NewHandle MAC
P2SL ]1
PxW ]2;]3
PHL ]4
_NewHandle MAC
Tool $902
<<<
~ReallocHandle MAC
PHLW ]1;]2
PHWL ]3;]4
PHL ]5
_ReallocHandle MAC
Tool $A02
<<<
~RestoreHandle MAC
PHL ]1
_RestoreHandle MAC
Tool $B02
<<<
~DisposeHandle MAC
PHL ]1
_DisposeHandle MAC
Tool $1002
<<<
~DisposeAll MAC
PHW ]1
_DisposeAll MAC
Tool $1102
<<<
~PurgeHandle MAC
PHL ]1
_PurgeHandle MAC
Tool $1202
<<<
~PurgeAll MAC
PHW ]1
_PurgeAll MAC
Tool $1302
<<<
~GetHandleSize MAC
P2SL ]1
_GetHandleSize MAC
Tool $1802
<<<
~SetHandleSize MAC
PxL ]1;]2
_SetHandleSize MAC
Tool $1902
<<<
~FindHandle MAC
P2SL ]1
_FindHandle MAC
Tool $1A02
<<<
~FreeMem MAC
PHS 2
_FreeMem MAC
Tool $1B02
<<<
~MaxBlock MAC
PHS 2
_MaxBlock MAC
Tool $1C02
<<<
~TotalMem MAC
PHS 2
_TotalMem MAC
Tool $1D02
<<<
~CheckHandle MAC
PHL ]1
_CheckHandle MAC
Tool $1E02
<<<
_CompactMem MAC
Tool $1F02
<<<
~HLock MAC
PHL ]1
_HLock MAC
Tool $2002
<<<
~HLockAll MAC
PHW ]1
_HLockAll MAC
Tool $2102
<<<
~HUnlock MAC
PHL ]1
_HUnlock MAC
Tool $2202
<<<
~HUnlockAll MAC
PHW ]1
_HUnlockAll MAC
Tool $2302
<<<
~SetPurge MAC
PHWL ]1;]2
_SetPurge MAC
Tool $2402
<<<
~SetPurgeAll MAC
PxW ]1;]2
_SetPurgeAll MAC
Tool $2502
<<<
~PtrToHand MAC
PxL ]1;]2;]3
_PtrToHand MAC
Tool $2802
<<<
~HandToPtr MAC
PxL ]1;]2;]3
_HandToPtr MAC
Tool $2902
<<<
~HandToHand MAC
PxL ]1;]2;3
_HandToHand MAC
Tool $2A02
<<<
~BlockMove MAC
PxL ]1;]2;]3
_BlockMove MAC
Tool $2B02
<<<
~RealFreeMem MAC
PHS 2
_RealFreeMem MAC
Tool $2F02
<<<

274
Menu.Macs.S Normal file
View File

@ -0,0 +1,274 @@
* Menu Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_MenuBootInit MAC
Tool $10F
<<<
~MenuStartUp MAC
PxW ]1;]2
_MenuStartUp MAC
Tool $20F
<<<
_MenuShutDown MAC
Tool $30F
<<<
~MenuVersion MAC
PHA
_MenuVersion MAC
Tool $40F
<<<
_MenuReset MAC
Tool $50F
<<<
~MenuStatus MAC
PHA
_MenuStatus MAC
Tool $60F
<<<
~MenuKey MAC
PxL ]1;]2
_MenuKey MAC
Tool $90F
<<<
~GetMenuBar MAC
PHS 2
_GetMenuBar MAC
Tool $A0F
<<<
~MenuRefresh MAC
PHL ]1
_MenuRefresh MAC
Tool $B0F
<<<
_FlashMenuBar MAC
Tool $C0F
<<<
~InsertMenu MAC
PHLW ]1;]2
_InsertMenu MAC
Tool $D0F
<<<
~DeleteMenu MAC
PHW ]1
_DeleteMenu MAC
Tool $E0F
<<<
~InsertMItem MAC
PHL ]1
PxW ]2;]3
_InsertMItem MAC
Tool $F0F
<<<
~DeleteMItem MAC
PHW ]1
_DeleteMItem MAC
Tool $100F
<<<
~GetSysBar MAC
PHS 2
_GetSysBar MAC
Tool $110F
<<<
~SetSysBar MAC
PHL ]1
_SetSysBar MAC
Tool $120F
<<<
~FixMenuBar MAC
PHA
_FixMenuBar MAC
Tool $130F
<<<
~CountMItems MAC
P1SW ]1
_CountMItems MAC
Tool $140F
<<<
~NewMenuBar MAC
P2SL ]1
_NewMenuBar MAC
Tool $150F
<<<
~GetMHandle MAC
P2SW ]1
_GetMHandle MAC
Tool $160F
<<<
~SetBarColors MAC
PxW ]1;]2;]3
_SetBarColors MAC
Tool $170F
<<<
~GetBarColors MAC
PHS 2
_GetBarColors MAC
Tool $180F
<<<
~SetMTitleStart MAC
PHW ]1
_SetMTitleStart MAC
Tool $190F
<<<
~GetMTitleStart MAC
PHA
_GetMTitleStart MAC
Tool $1A0F
<<<
~GetMenuMgrPort MAC
PHS 2
_GetMenuMgrPort MAC
Tool $1B0F
<<<
~CalcMenuSize MAC
PxW ]1;]2;]3
_CalcMenuSize MAC
Tool $1C0F
<<<
~SetMTitleWidth MAC
PxW ]1;]2
_SetMTitleWidth MAC
Tool $1D0F
<<<
~GetMTitleWidth MAC
P1SW ]1
_GetMTitleWidth MAC
Tool $1E0F
<<<
~SetMenuFlag MAC
PxW ]1;]2
_SetMenuFlag MAC
Tool $1F0F
<<<
~GetMenuFlag MAC
P1SW ]1
_GetMenuFlag MAC
Tool $200F
<<<
~SetMenuTitle MAC
PHLW ]1;]2
_SetMenuTitle MAC
Tool $210F
<<<
~GetMenuTitle MAC
P2SW ]1
_GetMenuTitle MAC
Tool $220F
<<<
~MenuGlobal MAC
P1SW ]1
_MenuGlobal MAC
Tool $230F
<<<
~SetMItem MAC
PHLW ]1;]2
_SetMItem MAC
Tool $240F
<<<
~GetMItem MAC
PHLW ]1;]2
_GetMItem MAC
Tool $250F
<<<
~SetMItemFlag MAC
PxW ]1;]2
_SetMItemFlag MAC
Tool $260F
<<<
~GetMItemFlag MAC
P1SW ]1
_GetMItemFlag MAC
Tool $270F
<<<
~SetMItemBlink MAC
PHW ]1
_SetMItemBlink MAC
Tool $280F
<<<
_MenuNewRes MAC
Tool $290F
<<<
_DrawMenuBar MAC
Tool $2A0F
<<<
~MenuSelect MAC
PxL ]1;]2
_MenuSelect MAC
Tool $2B0F
<<<
~HiliteMenu MAC
PxW ]1;]2
_HiliteMenu MAC
Tool $2C0F
<<<
~NewMenu MAC
P2SL ]1
_NewMenu MAC
Tool $2D0F
<<<
~DisposeMenu MAC
PHL ]1
_DisposeMenu MAC
Tool $2E0F
<<<
_InitPalette MAC
Tool $2F0F
<<<
~EnableMItem MAC
PHW ]1
_EnableMItem MAC
Tool $300F
<<<
~DisableMItem MAC
PHW ]1
_DisableMItem MAC
Tool $310F
<<<
~CheckMItem MAC
PxW ]1;]2
_CheckMItem MAC
Tool $320F
<<<
~SetMItemMark MAC
PxW ]1;]2
_SetMItemMark MAC
Tool $330F
<<<
~GetMItemMark MAC
P1SW ]1
_GetMItemMark MAC
Tool $340F
<<<
~SetMItemStyle MAC
PxW ]1;]2
_SetMItemStyle MAC
Tool $350F
<<<
~GetMItemStyle MAC
P1SW ]1
_GetMItemStyle MAC
Tool $360F
<<<
~SetMenuID MAC
PxW ]1;]2
_SetMenuID MAC
Tool $370F
<<<
~SetMItemID MAC
PxW ]1;]2
_SetMItemID MAC
Tool $380F
<<<
~SetMenuBar MAC
PHL ]1
_SetMenuBar MAC
Tool $390F
<<<
~SetMItemName MAC
PHLW ]1;]2
_SetMItemName MAC
Tool $3A0F
<<<

78
Midi.Macs.S Normal file
View File

@ -0,0 +1,78 @@
* MIDI tool macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_MidiBootInit MAC
Tool $120
<<<
~MidiStartUp MAC
PxW ]1;]2
_MidiStartUp MAC
Tool $220
<<<
_MidiShutDown MAC
Tool $320
<<<
~MidiVersion MAC
PHA
_MidiVersion MAC
Tool $420
<<<
_MidiReset MAC
Tool $520
<<<
~MidiStatus MAC
PHA
_MidiStatus MAC
Tool $620
<<<
~MidiControl MAC
PHWL ]1;]2
_MidiControl MAC
Tool $920
<<<
~MidiDevice MAC
PHWL ]1;]2
_MidiDevice MAC
Tool $A20
<<<
~MidiClock MAC
PHWL ]1;]2
_MidiClock MAC
Tool $B20
<<<
~MidiInfo MAC
P2SW ]1
_MidiInfo MAC
Tool $C20
<<<
~MidiReadPacket MAC
P1SL ]1
PHW ]2
_MidiReadPacket MAC
Tool $D20
<<<
~MidiWritePacket MAC
P1SL ]1
_MidiWritePacket MAC
Tool $E20
<<<
_MidiRecordSeq MAC
Tool $F20
<<<
_MidiStopRecord MAC
Tool $1020
<<<
_MidiPlaySeq MAC
Tool $1120
<<<
_MidiStopPlay MAC
Tool $1220
<<<
_MidiConvert MAC
Tool $1320
<<<

209
Misc.Macs.S Normal file
View File

@ -0,0 +1,209 @@
* Misc Tool macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_MTBootInit MAC
Tool $103
<<<
_MTStartUp MAC
Tool $203
<<<
_MTShutDown MAC
Tool $303
<<<
~MTVersion MAC
PHA
_MTVersion MAC
Tool $403
<<<
_MTReset MAC
Tool $503
<<<
~MTStatus MAC
PHA
_MTStatus MAC
Tool $603
<<<
~WriteBRam MAC
PHL ]1
_WriteBRam MAC
Tool $903
<<<
~ReadBRam MAC
PHL ]1
_ReadBRam MAC
Tool $A03
<<<
~WriteBParam MAC
PxW ]1;]2
_WriteBParam MAC
Tool $B03
<<<
~ReadBParam MAC
P1SW ]1
_ReadBParam MAC
Tool $C03
<<<
~ReadTimeHex MAC
PHS 4
_ReadTimeHex MAC
Tool $D03
<<<
~WriteTimeHex MAC
PxW ]1;]2;]3
_WriteTimeHex MAC
Tool $E03
<<<
~ReadAsciiTime MAC
PHL ]1
_ReadAsciiTime MAC
Tool $F03
<<<
~SetVector MAC
PHWL ]1;]2
_SetVector MAC
Tool $1003
<<<
~GetVector MAC
P2SW ]1
_GetVector MAC
Tool $1103
<<<
~SetHeartBeat MAC
PHL ]1
_SetHeartBeat MAC
Tool $1203
<<<
~DelHeartBeat MAC
PHL ]1
_DelHeartBeat MAC
Tool $1303
<<<
_ClrHeartBeat MAC
Tool $1403
<<<
~SysFailMgr MAC
PHWL ]1;]2
_SysFailMgr MAC
Tool $1503
<<<
~GetAddr MAC
P2SW ]1
_GetAddr MAC
Tool $1603
<<<
~ReadMouse MAC
PHS 3
_ReadMouse MAC
Tool $1703
<<<
~InitMouse MAC
PHW ]1
_InitMouse MAC
Tool $1803
<<<
~SetMouse MAC
PHW ]1
_SetMouse MAC
Tool $1903
<<<
_HomeMouse MAC
Tool $1A03
<<<
_ClearMouse MAC
Tool $1B03
<<<
~ClampMouse MAC
PxW ]1;]2;]3;]4
_ClampMouse MAC
Tool $1C03
<<<
~GetMouseClamp MAC
PHS 4
_GetMouseClamp MAC
Tool $1D03
<<<
~PosMouse MAC
PxW ]1;]2
_PosMouse MAC
Tool $1E03
<<<
~ServeMouse MAC
PHA
_ServeMouse MAC
Tool $1F03
<<<
~GetNewID MAC
P1SW ]1
_GetNewID MAC
Tool $2003
<<<
~DeleteID MAC
PHW ]1
_DeleteID MAC
Tool $2103
<<<
~StatusID MAC
PHW ]1
_StatusID MAC
Tool $2203
<<<
~IntSource MAC
PHW ]1
_IntSource MAC
Tool $2303
<<<
~FWEntry MAC
PHS 4
PxW ]1;]2;]3;]4
_FWEntry MAC
Tool $2403
<<<
~GetTick MAC
PHS 2
_GetTick MAC
Tool $2503
<<<
~PackBytes MAC
P1SL ]1
PxL ]2;]3
PHW ]4
_PackBytes MAC
Tool $2603
<<<
~UnPackBytes MAC
P1SL ]1
PHW ]2
PxL ]3;]4
_UnPackBytes MAC
Tool $2703
<<<
~Munger MAC
P1SL ]1
PxL ]2;]3
PHWL ]4;]5
PHWL ]6;]7
_Munger MAC
Tool $2803
<<<
~GetIRQEnable MAC
PHA
_GetIRQEnable MAC
Tool $2903
<<<
~SetAbsClamp MAC
PxW ]1;]2;]3;]4
_SetAbsClamp MAC
Tool $2A03
<<<
~GetAbsClamp MAC
PHS 4
_GetAbsClamp MAC
Tool $2B03
<<<
_SysBeep MAC
Tool $2C03
<<<

83
NoteSeq.Macs.S Normal file
View File

@ -0,0 +1,83 @@
* Note sequencer macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_SeqBootInit MAC
Tool $011A
<<<
~SeqStartUp MAC
PxW ]1;]2;]3;]4
_SeqStartUp MAC
Tool $021A
<<<
_SeqShutDown MAC
Tool $031A
<<<
~SeqVersion MAC
PHA
_SeqVersion MAC
Tool $041A
<<<
_SeqReset MAC
Tool $051A
<<<
~SeqStatus MAC
PHA
_SeqStatus MAC
Tool $061A
<<<
~SetIncr MAC
PHW ]1
_SetIncr MAC
Tool $091A
<<<
~ClearIncr MAC
PHA
_ClearIncr MAC
Tool $0A1A
<<<
~GetTimer MAC
PHA
_GetTimer MAC
Tool $0B1A
<<<
~GetLoc MAC
PHS 3
_GetLoc MAC
Tool $0C1A
<<<
_SeqAllNotesOff MAC
Tool $0D1A
<<<
~SetTrkInfo MAC
PxW ]1;]2;]3
_SetTrkInfo MAC
Tool $0E1A
<<<
~StartSeq MAC
PxL ]1;]2;]3
_StartSeq MAC
Tool $0F1A
<<<
_StepSeq MAC
Tool $101A
<<<
~StopSeq MAC
PHW ]1
_StopSeq MAC
Tool $111A
<<<
~SetInstTable MAC
PHL ]1
_SetInstTable MAC
Tool $121A
<<<
_StartInts MAC
Tool $131A
<<<
_StopInts MAC
Tool $141A
<<<

55
NoteSyn.Macs.S Normal file
View File

@ -0,0 +1,55 @@
* Note synthesizer macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_NSBootInit MAC
Tool $0119
<<<
~NSStartUp MAC
PHWL ]1;]2
_NSStartUp MAC
Tool $0219
<<<
_NSShutDown MAC
Tool $0319
<<<
~NSVersion MAC
PHA
_NSVersion MAC
Tool $0419
<<<
_NSReset MAC
Tool $0519
<<<
~NSStatus MAC
PHA
_NSStatus MAC
Tool $0619
<<<
~AllocGen MAC
P1SW ]1
_AllocGen MAC
Tool $0919
<<<
~DeallocGen MAC
PHW ]1
_DeallocGen MAC
Tool $0A19
<<<
~NoteOn MAC
PxW ]1;]2;]3
PHL ]4
_NoteOn MAC
Tool $0B19
<<<
~NoteOff MAC
PxW ]1;]2
_NoteOff MAC
Tool $0C19
<<<
_AllNotesOff MAC
Tool $0D19
<<<

138
Print.Macs.S Normal file
View File

@ -0,0 +1,138 @@
* Print Mgr. macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_PMBootInit MAC
Tool $0113
<<<
~PMStartUp MAC
PxW ]1;]2
_PMStartUp MAC
Tool $0213
<<<
_PMShutDown MAC
Tool $0313
<<<
~PMVersion MAC
PHA
_PMVersion MAC
Tool $0413
<<<
_PMReset MAC
Tool $0513
<<<
~PMStatus MAC
PHA
_PMStatus MAC
Tool $0613
<<<
~PrDefault MAC
PHL ]1
_PrDefault MAC
Tool $0913
<<<
~PrValidate MAC
P1SL ]1
_PrValidate MAC
Tool $0A13
<<<
~PrStlDialog MAC
P1SL ]1
_PrStlDialog MAC
Tool $0B13
<<<
~PrJobDialog MAC
P1SL ]1
_PrJobDialog MAC
Tool $0C13
<<<
~PrPixelMap MAC
PxL ]1;]2
PHW ]3
_PrPixelMap MAC
Tool $0D13
<<<
~PrOpenDoc MAC
P2SL ]1
PHL ]2
_PrOpenDoc MAC
Tool $0E13
<<<
~PrCloseDoc MAC
PHL ]1
_PrCloseDoc MAC
Tool $0F13
<<<
~PrOpenPage MAC
PxL ]1;]2
_PrOpenPage MAC
Tool $1013
<<<
~PrClosePage MAC
PHL ]1
_PrClosePage MAC
Tool $1113
<<<
~PrPicFile MAC
PxL ]1;]2;]3
_PrPicFile MAC
Tool $1213
<<<
_PrControl MAC
Tool $1313
<<<
~PrError MAC
PHA
_PrError MAC
Tool $1413
<<<
~PrSetError MAC
PHW ]1
_PrSetError MAC
Tool $1513
<<<
~PrChooser MAC ; alias
~PrChoosePrinter MAC
PHA
_PrChooser MAC ; alias
_PrChoosePrinter MAC
Tool $1613
<<<
_LLDStartUp MAC
Tool $1913
<<<
_LLDShutDown MAC
Tool $1A13
<<<
_LLDControl MAC
Tool $1B13
<<<
_LLDBitMap MAC
Tool $1C13
<<<
_LLDText MAC
Tool $1D13
<<<
~PrDriverVer MAC
PHA
_PrDriverVer MAC
Tool $2313
<<<
~PrPortVer MAC
PHA
_PrPortVer MAC
Tool $2413
<<<
~PMUnloadDriver MAC
PHW ]1
_PMUnloadDriver MAC
Tool $3413
<<<
~PMLoadDriver MAC
PHW ]1
_PMLoadDriver MAC
Tool $3513
<<<

1087
QD.Macs.S Normal file

File diff suppressed because it is too large Load Diff

50
QDAux.Macs.S Normal file
View File

@ -0,0 +1,50 @@
* QuickDraw Aux macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_QDAuxBootInit MAC
Tool $112
<<<
_QDAuxStartUp MAC
Tool $212
<<<
_QDAuxShutDown MAC
Tool $312
<<<
~QDAuxVersion MAC
PHA
_QDAuxVersion MAC
Tool $412
<<<
_QDAuxReset MAC
Tool $512
<<<
~QDAuxStatus MAC
PHA
_QDAuxStatus MAC
Tool $612
<<<
~CopyPixels MAC
PxL ]1;]2;]3;]4
PHWL ]5;]6
_CopyPixels MAC
Tool $912
<<<
_WaitCursor MAC
Tool $A12
<<<
~DrawIcon MAC
PHLW ]1;]2
PxW ]3;]4
_DrawIcon MAC
Tool $B12
<<<
~SpecialRect MAC
PHL ]1
PxW ]2;]3
_SpecialRect MAC
Tool $C12
<<<

599
Sane.Macs.S Normal file
View File

@ -0,0 +1,599 @@
* Sane Toolset macros.
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_SANEBootInit MAC
Tool $10A
<<<
~SANEStartUp MAC
PHW ]1
_SANEStartUp MAC
Tool $20A
<<<
_SANEShutDown MAC
Tool $30A
<<<
~SANEVersion MAC
PHA
_SANEVersion MAC
Tool $40A
<<<
_SANEReset MAC
Tool $50A
<<<
~SANEStatus MAC
PHA
_SANEStatus MAC
Tool $60A
<<<
_SANEFP816 MAC
Tool $90A
<<<
_SANEDecStr816 MAC
Tool $A0A
<<<
_SANEElems816 MAC
Tool $B0A
<<<
* Auxiliary macros
FOPRF MAC ;call FP
PEA ]1
_SANEFP816
<<<
FOPRD MAC ;call DecStr
PEA ]1
_SANEDecStr816
<<<
FOPRE MAC ;call Elems
PEA ]1
_SANEElems816
<<<
* Addition
FADDX MAC
FOPRF 0
<<<
FADDD MAC
FOPRF $100
<<<
FADDS MAC
FOPRF $200
<<<
FADDC MAC
FOPRF $500
<<<
FADDI MAC
FOPRF $400
<<<
FADDL MAC
FOPRF $300
<<<
* Subtraction
FSUBX MAC
FOPRF $002
<<<
FSUBD MAC
FOPRF $102
<<<
FSUBS MAC
FOPRF $202
<<<
FSUBC MAC
FOPRF $502
<<<
FSUBI MAC
FOPRF $402
<<<
FSUBL MAC
FOPRF $302
<<<
* Multiplication
FMULX MAC
FOPRF $004
<<<
FMULD MAC
FOPRF $104
<<<
FMULS MAC
FOPRF $204
<<<
FMULC MAC
FOPRF $504
<<<
FMULI MAC
FOPRF $404
<<<
FMULL MAC
FOPRF $304
<<<
* Division
FDIVX MAC
FOPRF $006
<<<
FDIVD MAC
FOPRF $106
<<<
FDIVS MAC
FOPRF $206
<<<
FDIVC MAC
FOPRF $506
<<<
FDIVI MAC
FOPRF $406
<<<
FDIVL MAC
FOPRF $306
<<<
* Square root
FSQRTX MAC
FOPRF $12
<<<
* Round to integer, according to the current rounding mode
FRINTX MAC
FOPRF $14
<<<
* Truncate to integer, using round toward zero.
FTINTX MAC
FOPRF $16
<<<
* Remainder
FREMX MAC
FOPRF $00C
<<<
FREMD MAC
FOPRF $10C
<<<
FREMS MAC
FOPRF $20C
<<<
FREMC MAC
FOPRF $50C
<<<
FREMI MAC
FOPRF $40C
<<<
FREML MAC
FOPRF $30C
<<<
* Logb
FLOGBX MAC
FOPRF $1A
<<<
* Scalb
FSCALBX MAC
FOPRF $18
<<<
* Copy-sign
FCPYSGNX MAC
FOPRF $011
<<<
FCPYSGND MAC
FOPRF $111
<<<
FCPYSGNS MAC
FOPRF $211
<<<
FCPYSGNC MAC
FOPRF $511
<<<
FCPYSGNI MAC
FOPRF $411
<<<
FCPYSGNL MAC
FOPRF $311
<<<
* Negate
FNEGX MAC
FOPRF $0D
<<<
* Absolute value
FABSX MAC
FOPRF $0F
<<<
* Next-after. NOTE: both operands are of the
* the same format, as specified by the usual suffix.
FNEXTS MAC
FOPRF $21E
<<<
FNEXTD MAC
FOPRF $11E
<<<
FNEXTX MAC
FOPRF $01E
<<<
* Conversion to extended
FX2X MAC
FOPRF $00E
<<<
FD2X MAC
FOPRF $10E
<<<
FS2X MAC
FOPRF $20E
<<<
* 16-bit integer, by address
FI2X MAC
FOPRF $40E
<<<
* 32-bit integer, by address
FL2X MAC
FOPRF $30E
<<<
FC2X MAC
FOPRF $50E
<<<
* Conversion from extended
FX2D MAC
FOPRF $110
<<<
FX2S MAC
FOPRF $210
<<<
FX2I MAC
FOPRF $410
<<<
FX2L MAC
FOPRF $310
<<<
FX2C MAC
FOPRF $510
<<<
* Binary to decimal conversion
FX2DEC MAC
FOPRF $00B
<<<
FD2DEC MAC
FOPRF $10B
<<<
FS2DEC MAC
FOPRF $20B
<<<
FC2DEC MAC
FOPRF $50B
<<<
FI2DEC MAC
FOPRF $40B
<<<
FL2DEC MAC
FOPRF $30B
<<<
* Decimal to binary conversion
FDEC2X MAC
FOPRF $009
<<<
FDEC2D MAC
FOPRF $109
<<<
FDEC2S MAC
FOPRF $209
<<<
FDEC2C MAC
FOPRF $509
<<<
FDEC2I MAC
FOPRF $409
<<<
FDEC2L MAC
FOPRF $309
<<<
* Compare, not signaling invalid on unordered
FCMPX MAC
FOPRF $008
<<<
FCMPD MAC
FOPRF $108
<<<
FCMPS MAC
FOPRF $208
<<<
FCMPC MAC
FOPRF $508
<<<
FCMPI MAC
FOPRF $408
<<<
FCMPL MAC
FOPRF $308
<<<
* Compare, signaling invalid on unordered
FCPXX MAC
FOPRF $00A
<<<
FCPXD MAC
FOPRF $10A
<<<
FCPXS MAC
FOPRF $20A
<<<
FCPXC MAC
FOPRF $50A
<<<
FCPXI MAC
FOPRF $40A
<<<
FCPXL MAC
FOPRF $30A
<<<
* The following macros define a set of so-called floating
* branches. They presume that the appropriate compare
* operation, macro FCMPz or FCPXz, precedes.
FBEQ MAC
BEQ ]1
<<<
FBLT MAC ;less
BMI ]1
<<<
FBLE MAC ;less or equal
BMI ]1
BEQ ]1
<<<
FBGT MAC ;greater
BVS ]1
<<<
FBGE MAC ;greater or equal
BVS ]1
BEQ ]1
<<<
FBULT MAC ;less or unordered
BMI ]1
BVS *+4
BNE ]1
<<<
FBULE MAC ;unordered, less, or equal
BMI ]1
BEQ ]1
BVC ]1
<<<
FBUGT MAC ;unordered or greater
BVS ]1
BMI *+4
BNE ]1
<<<
FBUGE MAC ;unordered, greater, or equal
BVS ]1
BEQ ]1
BPL ]1
<<<
FBU MAC ;unordered
BVS *+6
BMI *+4
BNE ]1
<<<
FBO MAC ;ordered
BMI ]1
BVS ]1
BEQ ]1
<<<
FBNE MAC ;not equal
BMI ]1
BVS ]1
BNE ]1
<<<
FBUE MAC ;unordered, equal
BEQ ]1
BMI *+4
BVC ]1
<<<
FBLG MAC ;less or greater
BMI ]1
BVS ]1
<<<
FCLASSS MAC
FOPRF $21C
<<<
FCLASSD MAC
FOPRF $11C
<<<
FCLASSX MAC
FOPRF $01C
<<<
FCLASSC MAC
FOPRF $51C
<<<
FCLASSI MAC
FOPRF $41C
<<<
FCLASSL MAC
FOPRF $31C
<<<
* The following macros provide branches based on the
* the result of a FCLASSz macro.
FBSNAN MAC ;signaling NaN
TXA
ASL
CMP #2*$FC
BEQ ]1
<<<
FBQNAN MAC ;quiet NaN
TXA
ASL
CMP #2*$FD
BEQ ]1
<<<
FBINF MAC ;infinite
TXA
ASL
CMP #2*$FE
BEQ ]1
<<<
FBZERO MAC ;zero
TXA
ASL
CMP #2*$FF
BEQ ]1
<<<
FBNORM MAC ;normal
TXA
ASL
BEQ ]1
<<<
FBDENORM MAC ;denormal
TXA
ASL
CMP #2*1
BEQ ]1
<<<
FBNZENUM MAC ;non-zero num (norm or denorm)
TXA
XBA
ASL
BCC ]1
<<<
FBNUM MAC ;number (zero, norm or denorm)
TXA
INC A
XBA
ASL
BCC ]1
<<<
FBMINUS MAC ;minus sign
BMI ]1
<<<
FBPLUS MAC ;plus sign
BPL ]1
<<<
* Get and set environment
FGETENV MAC
FOPRF $03
<<<
FSETENV MAC
FOPRF $01
<<<
* Test and set exception
FTESTXCP MAC
FOPRF $1B
<<<
FSETXCP MAC
FOPRF $15
<<<
* Procedure entry and exit
FPROCENTRY MAC
FOPRF $17
<<<
FPROCEXIT MAC
FOPRF $19
<<<
* Get and set halt vector
FGETHV MAC
FOPRF $07
<<<
FSETHV MAC
FOPRF $05
<<<
* Elementary function macros
FLNX MAC ;natural (base-e) log
FOPRE $00
<<<
FLOG2X MAC ;base-2 log
FOPRE $02
<<<
FLN1X MAC ;ln (1 + x)
FOPRE $04
<<<
FLOG21X MAC ;log2 (1 +x)
FOPRE $06
<<<
FEXPX MAC ;base-e exponential
FOPRE $08
<<<
FEXP2X MAC ;base-2 exponential
FOPRE $0A
<<<
FEXP1X MAC ;exp (x) - 1
FOPRE $0C
<<<
FEXP21X MAC ;exp2 (x) - 1
FOPRE $0E
<<<
FXPWRI MAC ;integer exponential
FOPRE $10
<<<
FXPWRY MAC ;general exponential
FOPRE $12
<<<
FCOMPOUND MAC ;compound
FOPRE $14
<<<
FANNUITY MAC ;annuity
FOPRE $16
<<<
FATANX MAC ;arctangent
FOPRE $18
<<<
FSINX MAC ;sine
FOPRE $1A
<<<
FCOSX MAC ;cosine
FOPRE $1C
<<<
FTANX MAC ;tangent
FOPRE $1E
<<<
FRANDX MAC ;random number generator
FOPRE $20
<<<
* Scanner and formatter function macros
FPSTR2DEC MAC ;pascal string to decimal record
FOPRD 0
<<<
FDEC2STR MAC ;decimal record to pascal string
FOPRD 1
<<<
FCSTR2DEC MAC ;C string to decimal record
FOPRD 2
<<<

37
Sch.Macs.S Normal file
View File

@ -0,0 +1,37 @@
* Scheduler macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_SchBootInit MAC
Tool $107
<<<
_SchStartUp MAC
Tool $207
<<<
_SchShutDown MAC
Tool $307
<<<
~SchVersion MAC
PHA
_SchVersion MAC
Tool $407
<<<
_SchReset MAC
Tool $507
<<<
~SchStatus MAC
PHA
_SchStatus MAC
Tool $607
<<<
~SchAddTask MAC
P1SL ]1
_SchAddTask MAC
Tool $907
<<<
_SchFlush MAC
Tool $A07
<<<

79
Scrap.Macs.S Normal file
View File

@ -0,0 +1,79 @@
* Scrap manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_ScrapBootInit MAC
Tool $116
<<<
_ScrapStartUp MAC
Tool $216
<<<
_ScrapShutDown MAC
Tool $316
<<<
~ScrapVersion MAC
PHA
_ScrapVersion MAC
Tool $416
<<<
_ScrapReset MAC
Tool $516
<<<
~ScrapStatus MAC
PHA
_ScrapStatus MAC
Tool $616
<<<
_UnloadScrap MAC
Tool $916
<<<
_LoadScrap MAC
Tool $A16
<<<
_ZeroScrap MAC
Tool $B16
<<<
~PutScrap MAC
PHL ]1
PHWL ]2;]3
_PutScrap MAC
Tool $C16
<<<
~GetScrap MAC
PHLW ]1;]2
_GetScrap MAC
Tool $D16
<<<
~GetScrapHandle MAC
P2SW ]1
_GetScrapHandle MAC
Tool $E16
<<<
~GetScrapSize MAC
P2SW ]1
_GetScrapSize MAC
Tool $F16
<<<
~GetScrapPath MAC
PHS 2
_GetScrapPath MAC
Tool $1016
<<<
~SetScrapPath MAC
PHL ]1
_SetScrapPath MAC
Tool $1116
<<<
~GetScrapCount MAC
PHA
_GetScrapCount MAC
Tool $1216
<<<
~GetScrapState MAC
PHA
_GetScrapState MAC
Tool $1316
<<<

93
Sound.Macs.S Normal file
View File

@ -0,0 +1,93 @@
* Sound manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_SoundBootInit MAC
Tool $108
<<<
~SoundStartUp MAC
PHW ]1
_SoundStartUp MAC
Tool $208
<<<
_SoundShutDown MAC
Tool $308
<<<
~SoundVersion MAC
PHA
_SoundVersion MAC
Tool $408
<<<
_SoundReset MAC
Tool $508
<<<
~SoundToolStatus MAC
PHA
_SoundToolStatus MAC
Tool $608
<<<
~WriteRamBlock MAC
PHL ]1
PxW ]2;]3
_WriteRamBlock MAC
Tool $908
<<<
~ReadRamBlock MAC
PHL ]1
PxW ]2;]3
_ReadRamBlock MAC
Tool $A08
<<<
~GetTableAddress MAC
PHS 2
_GetTableAddress MAC
Tool $B08
<<<
~GetSoundVolume MAC
P1SW ]1
_GetSoundVolume MAC
Tool $C08
<<<
~SetSoundVolume MAC
PxW ]1;]2
_SetSoundVolume MAC
Tool $D08
<<<
~FFStartSound MAC
PHWL ]1;]2
_FFStartSound MAC
Tool $E08
<<<
~FFStopSound MAC
PHW ]1
_FFStopSound MAC
Tool $F08
<<<
~FFSoundStatus MAC
PHA
_FFSoundStatus MAC
Tool $1008
<<<
~FFGeneratorStatus MAC
P1SW ]1
_FFGeneratorStatus MAC
Tool $1108
<<<
~SetSoundMIRQV MAC
PHL ]1
_SetSoundMIRQV MAC
Tool $1208
<<<
~SetUserSoundIRQV MAC
P2SL ]1
_SetUserSoundIRQV MAC
Tool $1308
<<<
~FFSoundDoneStatus MAC
P1SW ]1
_FFSoundDoneStatus MAC
Tool $1408
<<<

64
Std.Macs.S Normal file
View File

@ -0,0 +1,64 @@
* Standard File Operations macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_SFBootInit MAC
Tool $117
<<<
~SFStartUp MAC
PxW ]1;]2
_SFStartUp MAC
Tool $217
<<<
_SFShutDown MAC
Tool $317
<<<
~SFVersion MAC
PHA
_SFVersion MAC
Tool $417
<<<
_SFReset MAC
Tool $517
<<<
~SFStatus MAC
PHA
_SFStatus MAC
Tool $617
<<<
~SFGetFile MAC
PxW ]1;]2
PxL ]3;]4;]5;]6
_SFGetFile MAC
Tool $917
<<<
~SFPutFile MAC
PxW ]1;]2
PxL ]3;]4
PHWL ]5;]6
_SFPutFile MAC
Tool $A17
<<<
~SFPGetFile MAC
PxW ]1;]2
PxL ]3;]4;]5;]6
PxL ]7;]8
_SFPGetFile MAC
Tool $B17
<<<
~SFPPutFile MAC
PxW ]1;]2
PxL ]3;]4
PHWL ]5;]6
PxL ]7;]8
_SFPPutFile MAC
Tool $C17
<<<
~SFAllCaps MAC
PHW ]1
_SFAllCaps MAC
Tool $D17
<<<

183
Text.Macs.S Normal file
View File

@ -0,0 +1,183 @@
* Text tool macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_TextBootInit MAC
Tool $10C
<<<
_TextStartUp MAC
Tool $20C
<<<
_TextShutDown MAC
Tool $30C
<<<
~TextVersion MAC
PHA
_TextVersion MAC
Tool $40C
<<<
_TextReset MAC
Tool $50C
<<<
~TextStatus MAC
PHA
_TextStatus MAC
Tool $60C
<<<
~SetInGlobals MAC
PxW ]1;]2
_SetInGlobals MAC
Tool $90C
<<<
~SetOutGlobals MAC
PxW ]1;]2
_SetOutGlobals MAC
Tool $A0C
<<<
~SetErrGlobals MAC
PxW ]1;]2
_SetErrGlobals MAC
Tool $B0C
<<<
~GetInGlobals MAC
PHS 2
_GetInGlobals MAC
Tool $C0C
<<<
~GetOutGlobals MAC
PHS 2
_GetOutGlobals MAC
Tool $D0C
<<<
~GetErrGlobals MAC
PHS 2
_GetErrGlobals MAC
Tool $E0C
<<<
~SetInputDevice MAC
PHWL ]1;]2
_SetInputDevice MAC
Tool $F0C
<<<
~SetOutputDevice MAC
PHWL ]1;]2
_SetOutputDevice MAC
Tool $100C
<<<
~SetErrorDevice MAC
PHWL ]1;]2
_SetErrorDevice MAC
Tool $110C
<<<
~GetInputDevice MAC
PHS 3
_GetInputDevice MAC
Tool $120C
<<<
~GetOutputDevice MAC
PHS 3
_GetOutputDevice MAC
Tool $130C
<<<
~GetErrorDevice MAC
PHS 3
_GetErrorDevice MAC
Tool $140C
<<<
~InitTextDev MAC
PHW ]1
_InitTextDev MAC
Tool $150C
<<<
~CtlTextDev MAC
PxW ]1;]2
_CtlTextDev MAC
Tool $160C
<<<
~StatusTextDev MAC
PxW ]1;]2
_StatusTextDev MAC
Tool $170C
<<<
~WriteChar MAC
PHW ]1
_WriteChar MAC
Tool $180C
<<<
~ErrWriteChar MAC
PHW ]1
_ErrWriteChar MAC
Tool $190C
<<<
~WriteLine MAC
PHL ]1
_WriteLine MAC
Tool $1A0C
<<<
~ErrWriteLine MAC
PHL ]1
_ErrWriteLine MAC
Tool $1B0C
<<<
~WriteString MAC
PHL ]1
_WriteString MAC
Tool $1C0C
<<<
~ErrWriteString MAC
PHL ]1
_ErrWriteString MAC
Tool $1D0C
<<<
~TextWriteBlock MAC
PHL ]1
PxW ]2;]3
_TextWriteBlock MAC
Tool $1E0C
<<<
~ErrWriteBlock MAC
PHL ]1
PxW ]2;]3
_ErrWriteBlock MAC
Tool $1F0C
<<<
~WriteCString MAC
PHL ]1
_WriteCString MAC
Tool $200C
<<<
~ErrWriteCString MAC
PHL ]1
_ErrWriteCString MAC
Tool $210C
<<<
~ReadChar MAC
P1SW ]1
_ReadChar MAC
Tool $220C
<<<
~TextReadBlock MAC
PHL ]1
PxW ]2;]3;]4
_TextReadBlock MAC
Tool $230C
<<<
~ReadLine MAC
P1SL ]1
PxW ]2;]3;]4
_ReadLine MAC
Tool $240C
<<<
PrintLn MAC ; print a line of text
pea ^text
pea text
ldx #$1A0C
jsl $E10000
bra cont
text str ]1
cont
<<<

472
Window.Macs.S Normal file
View File

@ -0,0 +1,472 @@
* Window Manager macros
* by Dave Klimas
;
; Copyright Apple Computer, Inc. 1986, 1987
; and Roger Wagner Publishing, Inc. 1988
; All Rights Reserved
;
_WindBootInit MAC
Tool $10E
<<<
~WindStartUp MAC
PHW ]1
_WindStartUp MAC
Tool $20E
<<<
_WindShutDown MAC
Tool $30E
<<<
~WindVersion MAC
PHA
_WindVersion MAC
Tool $40E
<<<
_WindReset MAC
Tool $50E
<<<
~WindStatus MAC
PHA
_WindStatus MAC
Tool $60E
<<<
~NewWindow MAC
P2SL ]1
_NewWindow MAC
Tool $90E
<<<
~CheckUpdate MAC
P1SL ]1
_CheckUpdate MAC
Tool $A0E
<<<
~CloseWindow MAC
PHL ]1
_CloseWindow MAC
Tool $B0E
<<<
~DeskTop MAC
IF 2=]1
IF 3=]1
IF 4=]1
PHS 2
FIN
FIN
FIN
PHWL ]1;]2
_DeskTop MAC
Tool $C0E
<<<
~SetWTitle MAC
PxL ]1;]2
_SetWTitle MAC
Tool $D0E
<<<
~GetWTitle MAC
P2SL ]1
_GetWTitle MAC
Tool $E0E
<<<
~SetFrameColor MAC
PxL ]1;]2
_SetFrameColor MAC
Tool $F0E
<<<
~GetFrameColor MAC
PxL ]1;]2
_GetFrameColor MAC
Tool $100E
<<<
~SelectWindow MAC
PHL ]1
_SelectWindow MAC
Tool $110E
<<<
~HideWindow MAC
PHL ]1
_HideWindow MAC
Tool $120E
<<<
~ShowWindow MAC
PHL ]1
_ShowWindow MAC
Tool $130E
<<<
~SendBehind MAC
PxL ]1;]2
_SendBehind MAC
Tool $140E
<<<
~FrontWindow MAC
PHS 2
_FrontWindow MAC
Tool $150E
<<<
~SetInfoDraw MAC
PxL ]1;]2
_SetInfoDraw MAC
Tool $160E
<<<
~FindWindow MAC
P1SL ]1
PxW ]2;]3
_FindWindow MAC
Tool $170E
<<<
~TrackGoAway MAC
P1SW ]1
PHWL ]2;]3
_TrackGoAway MAC
Tool $180E
<<<
~MoveWindow MAC
PxW ]1;]2
PHL ]3
_MoveWindow MAC
Tool $190E
<<<
~DragWindow MAC
PxW ]1;]2;]3;]4
PxL ]5;]6
_DragWindow MAC
Tool $1A0E
<<<
~GrowWindow MAC
PHS 2
PxW ]1;]2;]3;]4
PHL ]5
_GrowWindow MAC
Tool $1B0E
<<<
~SizeWindow MAC
PxW ]1;]2
PHL ]3
_SizeWindow MAC
Tool $1C0E
<<<
~TaskMaster MAC
PHA
PHWL ]1;]2
_TaskMaster MAC
Tool $1D0E
<<<
~BeginUpdate MAC
PHL ]1
_BeginUpdate MAC
Tool $1E0E
<<<
~EndUpdate MAC
PHL ]1
_EndUpdate MAC
Tool $1F0E
<<<
~GetWMgrPort MAC
PHS 2
_GetWMgrPort MAC
Tool $200E
<<<
~PinRect MAC
PHS 2
PxW ]1;]2
PHL ]3
_PinRect MAC
Tool $210E
<<<
~HiliteWindow MAC
PHWL ]1;]2
_HiliteWindow MAC
Tool $220E
<<<
~ShowHide MAC
PHWL ]1;]2
_ShowHide MAC
Tool $230E
<<<
~BringToFront MAC
PHL ]1
_BringToFront MAC
Tool $240E
<<<
_WindNewRes MAC
Tool $250E
<<<
~TrackZoom MAC
P1SW ]1
PHWL ]2;]3
_TrackZoom MAC
Tool $260E
<<<
~ZoomWindow MAC
PHL ]1
_ZoomWindow MAC
Tool $270E
<<<
~SetWRefCon MAC
PxL ]1;]2
_SetWRefCon MAC
Tool $280E
<<<
~GetWRefCon MAC
P2SL ]1
_GetWRefCon MAC
Tool $290E
<<<
~GetNextWindow MAC
P2SL ]1
_GetNextWindow MAC
Tool $2A0E
<<<
~GetWKind MAC
P1SL ]1
_GetWKind MAC
Tool $2B0E
<<<
~SetWFrame MAC
PHWL ]1;]2
_SetWFrame MAC
Tool $2D0E
<<<
~GetWFrame MAC
P1SL ]1
_GetWFrame MAC
Tool $2C0E
<<<
~GetStructRgn MAC
P2SL ]1
_GetStructRgn MAC
Tool $2E0E
<<<
~GetContentRgn MAC
P2SL ]1
_GetContentRgn MAC
Tool $2F0E
<<<
~GetUpdateRgn MAC
P2SL ]1
_GetUpdateRgn MAC
Tool $300E
<<<
~GetDefProc MAC
P2SL ]1
_GetDefProc MAC
Tool $310E
<<<
~SetDefProc MAC
PxL ]1;]2
_SetDefProc MAC
Tool $320E
<<<
~GetWControls MAC
P2SL ]1
_GetWControls MAC
Tool $330E
<<<
~SetOriginMask MAC
PHWL ]1;]2
_SetOriginMask MAC
Tool $340E
<<<
~GetInfoRefCon MAC
P2SL ]1
_GetInfoRefCon MAC
Tool $350E
<<<
~SetInfoRefCon MAC
PxL ]1;]2
_SetInfoRefCon MAC
Tool $360E
<<<
~GetZoomRect MAC
P2SL ]1
_GetZoomRect MAC
Tool $370E
<<<
~SetZoomRect MAC
PxL ]1;]2
_SetZoomRect MAC
Tool $380E
<<<
~RefreshDesktop MAC
PHL ]1
_RefreshDesktop MAC
_Refresh MAC
Tool $390E
<<<
~InvalRect MAC
PHL ]1
_InvalRect MAC
Tool $3A0E
<<<
~InvalRgn MAC
PHL ]1
_InvalRgn MAC
Tool $3B0E
<<<
~ValidRect MAC
PHL ]1
_ValidRect MAC
Tool $3C0E
<<<
~ValidRgn MAC
PHL ]1
_ValidRgn MAC
Tool $3D0E
<<<
~GetContentOrigin MAC
P2SL ]1
_GetContentOrigin MAC
Tool $3E0E
<<<
~SetContentOrigin MAC
PxW ]1;]2
PHL ]3
_SetContentOrigin MAC
Tool $3F0E
<<<
~GetDataSize MAC
P2SL ]1
_GetDataSize MAC
Tool $400E
<<<
~SetDataSize MAC
PxW ]1;]2
PHL ]3
_SetDataSize MAC
Tool $410E
<<<
~GetMaxGrow MAC
P2SL ]1
_GetMaxGrow MAC
Tool $420E
<<<
~SetMaxGrow MAC
PxW ]1;]2
PHL ]3
_SetMaxGrow MAC
Tool $430E
<<<
~GetScroll MAC
P2SL ]1
_GetScroll MAC
Tool $440E
<<<
~SetScroll MAC
PxW ]1;]2
PHL ]3
_SetScroll MAC
Tool $450E
<<<
~GetPage MAC
P2SL ]1
_GetPage MAC
Tool $460E
<<<
~SetPage MAC
PxW ]1;]2
PHL ]3
_SetPage MAC
Tool $470E
<<<
~GetContentDraw MAC
P2SL ]1
_GetContentDraw MAC
Tool $480E
<<<
~SetContentDraw MAC
PxL ]1;]2
_SetContentDraw MAC
Tool $490E
<<<
~GetInfoDraw MAC
P2SL ]1
_GetInfoDraw MAC
Tool $4A0E
<<<
~SetSysWindow MAC
PHL ]1
_SetSysWindow MAC
Tool $4B0E
<<<
~GetSysWFlag MAC
P1SL ]1
_GetSysWFlag MAC
Tool $4C0E
<<<
~StartDrawing MAC
PHL ]1
_StartDrawing MAC
Tool $4D0E
<<<
~SetWindowIcons MAC
P2SL ]1
_SetWindowIcons MAC
Tool $4E0E
<<<
~GetRectInfo MAC
PxL ]1;]2
_GetRectInfo MAC
Tool $4F0E
<<<
~StartInfoDrawing MAC
PxL ]1;]2
_StartInfoDrawing MAC
Tool $500E
<<<
_EndInfoDrawing MAC
Tool $510E
<<<
~GetFirstWindow MAC
PHS 2
_GetFirstWindow MAC
Tool $520E
<<<
~WindDragRect MAC
P2SL ]1
PHLW ]2;]3
PHWL ]4;]5
PxL ]6;]7
PHW ]8
_WindDragRect MAC
Tool $530E
<<<
~DrawInfoBar MAC
PHL ]1
_DrawInfoBar MAC
Tool $550E
<<<
~WindowGlobal MAC
P1SW ]1
_WindowGlobal MAC
Tool $560E
<<<
~SetContentOrigin2 MAC
PxW ]1;]2;]3
PHL ]4
_SetContentOrigin2 MAC
Tool $570E
<<<
~GetWindowMgrGlobals MAC
PHS 2
_GetWindowMgrGlobals MAC
Tool $580E
<<<
~AlertWindow MAC
PHA
PHW ]1
PxL ]2;]3
_AlertWindow MAC
Tool $590E
<<<
~StartFrameDrawing MAC
PHL ]1
_StartFrameDrawing MAC
Tool $5A0E
<<<
_EndFrameDrawing MAC
Tool $5B0E
<<<
~ResizeWindow MAC
PHW ]1
PxL ]2;]3
_ResizeWindow MAC
Tool $5C0E
<<<