lots of learning the last 24h

trying to now figure out how to modeset properly for video buffer
This commit is contained in:
David Stancu 2018-01-16 19:52:31 -05:00
parent 38e1cc10d4
commit 71df806253
65 changed files with 10519 additions and 25 deletions

View File

@ -29,8 +29,18 @@ There are a lot of good materials out there: here is what I used to make this ga
- [IIgs Hardware Architecture](http://www.goldstarsoftware.com/applesite/Documentation/AppleIIgsHardwareReferenceManual.PDF)
- p. 74 has a memory map
- [Scanlon's IIgs Assembly Programming](ftp://ftp.apple.asimov.net/pub/apple_II/documentation/programming/65816_gs/Apple%20IIGS%20Assembly%20Language%20Programming.pdf)
- Tremendously useful reference for QuickDraw and some tools
- [Programming the 65816 and 65xx family](https://apple2.gs/downloads/Programmanual.pdf)
- Official WDC manual.
- ["PEI Slam" fast SHR rendering](https://retrocomputing.stackexchange.com/questions/52/how-do-i-use-shadowed-memory-to-render-super-hi-res-quickly)
- [Changing ProDOS file types with Cadius](https://groups.google.com/forum/#!topic/comp.sys.apple2/dqcTdS9epdQ)
- [6502 opcode list](http://www.defence-force.org/computing/oric/coding/annexe_2/)
- [BrutalDeluxe GS/OS internals (VERY USEFUL)](http://brutaldeluxe.fr/documentation/gsos/Apple_IIgs_GSOS_internals_v1.pdf)
- [65816 opcode list](http://www.intel-assembler.it/portale/5/65816_guide/opcode_reference.asp)
- [BrutalDeluxe GS/OS internals (VERY USEFUL)](http://brutaldeluxe.fr/documentation/gsos/Apple_IIgs_GSOS_internals_v1.pdf)
- [Apple II 6502 for beginners](http://www.appleoldies.ca/anix/Using-6502-Assembly-Language-by-Randy-Hyde.pdf)
- Has practical examples for reading user input, etc.
- [System monitor reference](http://apple2.info/wiki/index.php?title=System_Monitor)
- This is the humbling moment I take back every bad thing I ever said about GDB in my life ever.
- [SNES CPU overview, same CPU, nice insights](https://github.com/michielvoo/SNES/wiki/CPU)
- [SNES opcode list](http://wiki.metroidconstruction.com/doku.php?id=super:technical_information:asm_mnemonics)
- [65816 primer](http://softpixel.com/~cwright/sianse/docs/65816NFO.HTM)

BIN
blankdisk.po Normal file

Binary file not shown.

55
src/macro/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
src/macro/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
<<<

283
src/macro/CTL.MACS.S Normal file
View File

@ -0,0 +1,283 @@
* 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
<<<
~FindTargetCtl MAC
PHS 2
_FindTargetCtl MAC
Tool $2610
<<<
~MakeNextCtlTarget MAC
PHS 2
_MakeNextCtlTarget MAC
Tool $2710
<<<
~MakeThisCtlTarget MAC
PHL ]1
_MakeThisCtlTarget MAC
Tool $2810
<<<
~SendEventToCtl MAC
P1SW ]1
PxL ]2;]3
_SendEventToCtl MAC
Tool $2910
<<<
~GetCtlID MAC
P2SL ]1
_GetCtlID MAC
Tool $2A10
<<<
~SetCtlID MAC
PxL ]1;]2
_SetCtlID MAC
Tool $2B10
<<<
~CallCtlDefProc MAC
PHLW ]1;]2
PHL ]3
_CallCtlDefProc MAC
Tool $2C10
<<<
~NotifyCtls MAC
PxW ]1;]2
PxL ]3;]4
_NotifyCtls MAC
Tool $2D10
<<<
~GetCtlMoreFlags MAC
P1SL ]1
_GetCtlMoreFlags MAC
Tool $2E10
<<<
~SetCtlMoreFlags MAC
PHWL ]1;]2
_SetCtlMoreFlags MAC
Tool $2F10
<<<
~GetCtlHandleFromID MAC
PHS 2
PxL ]1;]2
_GetCtlHandleFromID MAC
Tool $3010
<<<
~NewControl2 MAC
P2SL ]1
PHWL ]2;]3
_NewControl2 MAC
Tool $3110
<<<
~CMLoadResource MAC
P2SW ]1
PHL ]2
_CMLoadResource MAC
Tool $3210
<<<
~CMReleaseResource MAC
PHWL ]1;]2
_CMReleaseResource MAC
Tool $3310
<<<
~SetCtlParamPtr MAC
PHL ]1
_SetCtlParamPtr MAC
Tool $3410
<<<
~GetCtlParamPtr MAC
PHS 2
_GetCtlParamPtr MAC
Tool $3510
<<<
~InvalCtls MAC
PHL ]1
_InvalCtls MAC
Tool $3710
<<<
~qCtlStartUp MAC
PHW ]1
NextDP ]2;$100
Tool $210
<<<

130
src/macro/DESK.MACS.S Normal file
View File

@ -0,0 +1,130 @@
* 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
<<<
~AddToRunQ MAC
PHL ]1
_AddToRunQ MAC
Tool $1F05
<<<
~RemoveFromRunQ MAC
PHL ]1
_RemoveFromRunQ MAC
Tool $2005
<<<
~RemoveCDA MAC
PHL ]1
_RemoveCDA MAC
Tool $2105
<<<
~RemoveNDA MAC
PHL ]1
_RemoveNDA MAC
Tool $2205
<<<

284
src/macro/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
<<<

176
src/macro/DOS.16.MACS.S Normal file
View File

@ -0,0 +1,176 @@
*===============================
* ProDOS-16 macro and equates
*
* Use with syntax:
*
* _CMDNAME PARMADR
*
* where "CMDNAME" is one of the
* following labels and "PARMADR"
* is the label of the parameters
* table to use.
*
*-------------------------------
;
; Copyright Apple Computer, Inc. 1986, 1987
; All Rights Reserved
;
open = $10
read = $12
write = $13
close = $14
_CREATE MAC
DOS16 $01;]1
<<<
_DESTROY MAC
DOS16 $02;]1
<<<
_CHANGE_PATH MAC
DOS16 $04;]1
<<<
_SET_FILE_INFO MAC
DOS16 $05;]1
<<<
_GET_FILE_INFO MAC
DOS16 $06;]1
<<<
_VOLUME MAC
DOS16 $08;]1
<<<
_SET_PREFIX MAC
DOS16 $09;]1
<<<
_SETPREFIX MAC ; alternate name
DOS16 $09;]1
<<<
_GET_PREFIX MAC
DOS16 $0A;]1
<<<
_GETPREFIX MAC ; alternate name
DOS16 $0A;]1
<<<
_CLEAR_BACKUP_BIT MAC
DOS16 $0B;]1
<<<
_OPEN MAC
DOS16 $10;]1
<<<
_NEWLINE MAC
DOS16 $11;]1
<<<
_READ MAC
DOS16 $12;]1
<<<
_WRITE MAC
DOS16 $13;]1
<<<
_CLOSE MAC
DOS16 $14;]1
<<<
_FLUSH MAC
DOS16 $15;]1
<<<
_SET_MARK MAC
DOS16 $16;]1
<<<
_GET_MARK MAC
DOS16 $17;]1
<<<
_SET_EOF MAC
DOS16 $18;]1
<<<
_GET_EOF MAC
DOS16 $19;]1
<<<
_SET_LEVEL MAC
DOS16 $1A;]1
<<<
_GET_LEVEL MAC
DOS16 $1B;]1
<<<
_GET_DIR_ENTRY MAC
DOS16 $1C;]1
<<<
_GET_DEV_NUM MAC
DOS16 $20;]1
<<<
_GET_LAST_DEV MAC
DOS16 $21;]1
<<<
_READ_BLOCK MAC
DOS16 $22;]1
<<<
_WRITE_BLOCK MAC
DOS16 $23;]1
<<<
_FORMAT MAC
DOS16 $24;]1
<<<
_ERASE_DISK MAC
DOS16 $25;]1
<<<
_GET_PATH_NAME MAC
DOS16 $27;]1
<<<
_GET_BOOT_VOL MAC
DOS16 $28;]1
<<<
_QUIT MAC
DOS16 $29;]1
<<<
_GET_VERSION MAC
DOS16 $2A;]1
<<<
_D_INFO MAC
DOS16 $2C;]1
<<<
_ALLOC_INTERRUPT MAC
DOS16 $31;]1
<<<
_DEALLOC_INTERRUPT MAC
DOS16 $32;]1
<<<
DOS16 MAC
JSL $E100A8
DA ]1 ; Change to ]1.$2000 for Class 1 P16 calls.
ADRL ]2
<<<

129
src/macro/DOS.8.MACS.S Normal file
View File

@ -0,0 +1,129 @@
*===============================
* ProDOS-8 macro and equates
*
* Use with syntax:
*
* command PARMADR
*
* where "command" is one of the
* following labels and "PARMADR"
* is the label of the parameters
* table to use.
*
*-------------------------------
;
; Copyright Apple Computer, Inc. 1986, 1987
; All Rights Reserved
;
* MLI call codes:
ALLOC_INTERRUPT MAC
DOS8 $40;]1
<<<
DEALLOC_INTERRUPT MAC
DOS8 $41;]1
<<<
QUIT MAC
DOS8 $65;]1
<<<
READ_BLOCK MAC
DOS8 $80;]1
<<<
WRITE_BLOCK MAC
DOS8 $81;]1
<<<
GET_TIME MAC
DOS8 $82;]1
<<<
CREATE MAC
DOS8 $C0;]1
<<<
DESTROY MAC
DOS8 $C1;]1
<<<
RENAME MAC
DOS8 $C2;]1
<<<
SET_FILE_INFO MAC
DOS8 $C3;]1
<<<
GET_FILE_INFO MAC
DOS8 $C4;]1
<<<
ON_LINE MAC
DOS8 $C5;]1
<<<
SET_PREFIX MAC
DOS8 $C6;]1
<<<
GET_PREFIX MAC
DOS8 $C7;]1
<<<
OPEN MAC
DOS8 $C8;]1
<<<
NEWLINE MAC
DOS8 $C9;]1
<<<
READ MAC
DOS8 $CA;]1
<<<
WRITE MAC
DOS8 $CB;]1
<<<
CLOSE MAC
DOS8 $CC;]1
<<<
FLUSH MAC
DOS8 $CD;]1
<<<
SET_MARK MAC
DOS8 $CE;]1
<<<
GET_MARK MAC
DOS8 $CF;]1
<<<
SET_EOF MAC
DOS8 $D0;]1
<<<
GET_EOF MAC
DOS8 $D1;]1
<<<
SET_BUF MAC
DOS8 $D2;]1
<<<
GET_BUF MAC
DOS8 $D3;]1
<<<
DOS8 MAC
JSR $BF00
DFB ]1
DA ]2
<<<

19
src/macro/E16.ACE.S Normal file
View File

@ -0,0 +1,19 @@
; File: E16.ACE
;
;
; Copyright Apple computer, Inc. 1988
; All Rights Reserved
;
;
aceNoError equ $0 ; Error -
aceIsActive equ $1D01 ; Error -
aceBadDP equ $1D02 ; Error -
aceNotActive equ $1D03 ; Error -
aceNoSuchParam equ $1D04 ; Error -
aceBadMethod equ $1D05 ; Error -
aceBadSrc equ $1D06 ; Error -
aceBadDest equ $1D07 ; Error -
aceDatatOverlap equ $1D08 ; Error -
aceNotImplemented equ $1DFF ; Error -

65
src/macro/E16.ADB.S Normal file
View File

@ -0,0 +1,65 @@
; File: E16.ADB
;
;
; Copyright Apple Computer, Inc. 1986, 1987
; All Rights Reserved
;
cmndIncomplete equ $0910 ; ADB error - Command not completed.
cantSync equ $0911 ; ADB error - Can't synchronize
adbBusy equ $0982 ; ADB error - Busy (command pending)
devNotAtAddr equ $0983 ; ADB error - Device not present at address
srqListFull equ $0984 ; ADB error - List full
orcRepeatDelay equ $0000 ; Byte - ReadConfigRec - Output byte:
;Repeat Delay/Rate
orcLayoutOrLang equ $0001 ; Byte - ReadConfigRec - Output byte:
;Layout/Lang
orcADBAddr equ $0002 ; Byte - ReadConfigRec - Output byte: ADB
;address - keyboard and mouse.
oxDivide equ $0000 ; Word - ScaleRec -
oyDivide equ $0002 ; Word - ScaleRec -
oxOffset equ $0004 ; Word - ScaleRec -
oyOffset equ $0006 ; Word - ScaleRec -
oxMultiply equ $0008 ; Word - ScaleRec -
oyMultiply equ $000A ; Word - ScaleRec -
oscADBAddr equ $0000 ; Byte - SetConfigRec - keyboard and mouse
oscLayoutOrLang equ $0001 ; Byte - SetConfigRec -
oscRepeatDelay equ $0002 ; Byte - SetConfigRec -
osynchMode equ $0000 ; Byte - SynchRec -
osynchKybdMouseAddr equ $0001 ; Byte - SynchRec -
osynchLayoutOrLang equ $0002 ; Byte - SynchRec -
osynchRepeatDelay equ $0003 ; Byte - SynchRec -
readModes equ $000A ; ReadKeyMicroData -
readConfig equ $000B ; ReadKeyMicroData -
readADBError equ $000C ; ReadKeyMicroData -
readVersionNum equ $000D ; ReadKeyMicroData -
readMicroMem equ $0009 ; ReadKeyMicroMem -
abort equ $0001 ; SendInfo - command
resetKbd equ $0002 ; SendInfo - command
flushKbd equ $0003 ; SendInfo - command
setModes equ $0004 ; SendInfo - 2nd param is pointer to mode byte
clearModes equ $0005 ; SendInfo - 2nd param is pointer to mode Byte
setConfig equ $0006 ; SendInfo - 2nd param is pointer to SetConfigRec
synch equ $0007 ; SendInfo - 2nd param is pointer to SynchRec
writeMicroMem equ $0008 ; SendInfo - 2nd param is pointer to MicroControlMemRec
resetSys equ $0010 ; SendInfo - command
keyCode equ $0011 ; SendInfo - 2nd param is pointer to key code byte.
resetADB equ $0040 ; SendInfo - command
transmitADBBytes equ $0047 ; SendInfo - add number of bytes to this
enableSRQ equ $0050 ; SendInfo - command - ADB address in low nibble
flushADBDevBuf equ $0060 ; SendInfo - command - ADB address in low nibble
disableSRQ equ $0070 ; SendInfo - command - ADB address in low nibble
transmit2ADBBytes equ $0080 ; SendInfo - add ADB address to this
listen equ $0080 ; SendInfo - adbCommand = listen + ( 16 * reg) +
; (adb address)
talk equ $00C0 ; SendInfo - adbCommand = talk + ( 16 * reg) +
; (adb address)

128
src/macro/E16.CONTROL.S Normal file
View File

@ -0,0 +1,128 @@
; File: E16.Control
;
;
; Copyright Apple Computer, Inc. 1986, 1987
; All Rights Reserved
;
obarOutline equ $00 ; Word - BarColors - color for outlining bar
;, arrows, and thumb
obarNorArrow equ $02 ; Word - BarColors - color of arrows when n
;ot highlighted
obarSelArrow equ $04 ; Word - BarColors - color of arrows when h
;ighlighted
obarArrowBack equ $06 ; Word - BarColors - color of arrow box's
;background
obarNorThumb equ $08 ; Word - BarColors - color of thumb's backg
;round when not highlighted
obarSelThumb equ $0A ; Word - BarColors - color of thumb's backg
;round when highlighted
obarPageRgn equ $0C ; Word - BarColors - color and pattern page
;region: high byte - 1= dither, 0 = solid
obarInactive equ $0E ; Word - BarColors - color of scroll bar's
;interior when inactive
oboxReserved equ $00 ; Word - BoxColors - reserved
oboxNor equ $02 ; Word - BoxColors - color of box when not check
;ed
oboxSel equ $04 ; Word - BoxColors - color of box when checked
oboxTitle equ $06 ; Word - BoxColors - color of check box's titl
;e
obttnOutline equ $00 ; Word - BttnColors - color of outline
obttnNorBack equ $02 ; Word - BttnColors - color of background w
;hen not selected
obttnSelBack equ $04 ; Word - BttnColors - color of background w
;hen selected
obttnNorText equ $06 ; Word - BttnColors - color of title's text
; when not selected
obttnSelText equ $08 ; Word - BttnColors - color of title's text
; when selected
oradReserved equ $00 ; Word - RadioColors - reserved
oradNor equ $02 ; Word - RadioColors - color of radio button whe
;n off
oradSel equ $04 ; Word - RadioColors - color of radio button whe
;n on
oradTitle equ $06 ; Word - RadioColors - color of radio button's
; title text
octlNext equ $00 ; CtlRecHndl - CtlRec - Handle of next control.
octlOwner equ $04 ; GrafPortPtr - CtlRec - Pointer to control's
;window.
octlRect equ $08 ; Rect - CtlRec - Enclosing rectangle.
octlFlag equ $10 ; Byte - CtlRec - Bit flags.
octlHilite equ $11 ; Byte - CtlRec - Highlighted part.
octlValue equ $12 ; Integer - CtlRec - Control's value.
octlProc equ $14 ; Pointer - CtlRec - Control's definition proce
;dure.
octlAction equ $18 ; Pointer - CtlRec - Control's action procedu
;re.
octlData equ $1C ; Longint - CtlRec - Reserved for CtrlProc's us
;e.
octlRefCon equ $20 ; Longint - CtlRec - Reserved for application
;'s use.
octlColor equ $24 ; Pointer - CtlRec - Pointer to appropriate co
;lor table.
oboundRect equ $00 ; Rect - LimitBlk - Drag bounds.
oslopRect equ $08 ; Rect - LimitBlk - Cursor bounds.
oaxisParam equ $10 ; Word - LimitBlk - Movement constrains.
odragPatt equ $12 ; Pointer - LimitBlk - Pointer to 32 byte Patt
;ern for drag outline.
noConstraint equ $0000 ; Axis Parameter - No constraint on movem
;ent.
hAxisOnly equ $0001 ; Axis Parameter - Horizontal axis only.
vAxisOnly equ $0002 ; Axis Parameter - Vertical axis only.
simpRound equ $0000 ; CtlFlag - Simple button flag
upFlag equ $0001 ; CtlFlag - Scroll bar flag.
boldButton equ $0001 ; CtlFlag - Bold round cornered outlined bu
;tton.
simpBRound equ $0001 ; CtlFlag - Simple button flag
downFlag equ $0002 ; CtlFlag - Scroll bar flag.
simpSquare equ $0002 ; CtlFlag - Simple button flag
simpDropSquare equ $0003 ; CtlFlag - Simple button flag
leftFlag equ $0004 ; CtlFlag - Scroll bar flag.
rightFlag equ $0008 ; CtlFlag - Scroll bar flag.
dirScroll equ $0010 ; CtlFlag - Scroll bar flag.
horScroll equ $0010 ; CtlFlag - Scroll bar flag.
family equ $007F ; CtlFlag - Mask for radio button family number
ctlInVis equ $0080 ; CtlFlag - invisible mask for any type of co
;ntrol
simpleProc equ $00000000 ; CtlProc -
checkProc equ $02000000 ; CtlProc -
radioProc equ $04000000 ; CtlProc -
scrollProc equ $06000000 ; CtlProc -
growProc equ $08000000 ; CtlProc -
drawCtl equ $0000 ; DefProc - Draw control command.
calcCRect equ $0001 ; DefProc - Compute drag RECT command.
testCtl equ $0002 ; DefProc - Hit test command.
initCtl equ $0003 ; DefProc - Initialize command.
dispCtl equ $0004 ; DefProc - Dispose command.
posCtl equ $0005 ; DefProc - Move indicator command.
thumbCtl equ $0006 ; DefProc - Compute drag parameters command.
dragCtl equ $0007 ; DefProc - Drag command.
autoTrack equ $0008 ; DefProc - Action command.
newValue equ $0009 ; DefProc - Set new value command.
setParams equ $000A ; DefProc - Set new parameters command.
moveCtl equ $000B ; DefProc - Move command.
recSize equ $000C ; DefProc - Return record size command.
noHilite equ $0000 ; hiliteState - Param to HiliteControl
inactiveHilite equ $00FF ; hiliteState - Param to HiliteControl
noPart equ $0000 ; PartCode -
simpleButton equ $0002 ; PartCode -
checkBox equ $0003 ; PartCode -
radioButton equ $0004 ; PartCode -
upArrow equ $0005 ; PartCode -
downArrow equ $0006 ; PartCode -
pageUp equ $0007 ; PartCode -
pageDown equ $0008 ; PartCode -
growBox equ $000A ; PartCode -
thumb equ $0081 ; PartCode -

25
src/macro/E16.DESK.S Normal file
View File

@ -0,0 +1,25 @@
; File: E16.Desk
;
;
; Copyright Apple Computer, Inc. 1986, 1987
; All Rights Reserved
;
daNotFound equ $0510 ; Desk error - desk accessory not found
notSysWindow equ $0511 ; Desk error - not the system window
eventAction equ $0001 ; NDA action code -
runAction equ $0002 ; NDA action code -
undoAction equ $0005 ; NDA action code -
cutAction equ $0006 ; NDA action code -
copyAction equ $0007 ; NDA action code -
pasteAction equ $0008 ; NDA action code -
clearAction equ $0009 ; NDA action code -
cursorAction equ $0003 ; NDAaction code -
undo equ $0001 ; System Edit - edit type
cut equ $0002 ; System Edit - edit type
copy equ $0003 ; System Edit - edit type
paste equ $0004 ; System Edit - edit type
clear equ $0005 ; System Edit - edit type

93
src/macro/E16.DIALOG.S Normal file
View File

@ -0,0 +1,93 @@
; File: E16.Dialog
;
;
; Copyright Apple Computer, Inc. 1986, 1987
; All Rights Reserved
;
badItemType equ $150A ; Dialog error -
newItemFailed equ $150B ; Dialog error -
itemNotFound equ $150C ; Dialog error -
notModalDialog equ $150D ; Dialog error -
oatBoundsRect equ $00 ; Rect - AlertTemplate -
oatAlertID equ $08 ; Word - AlertTemplate -
oatStage1 equ $0A ; Byte - AlertTemplate -
oatStage2 equ $0B ; Byte - AlertTemplate -
oatStage3 equ $0C ; Byte - AlertTemplate -
oatStage4 equ $0D ; Byte - AlertTemplate -
oatItemList equ $0E ; ItemTempPtr - AlertTemplate - Null termina
;ted array
odtBoundsRect equ $00 ; Rect - DialogTemplate -
odtVisible equ $08 ; Boolean - DialogTemplate -
odtRefCon equ $0A ; Long - DialogTemplate -
odtItemList equ $0E ; ItemTempPtr - DialogTemplate - Null termin
;ated array
oiconRect equ $00 ; Rect - IconRecord -
oiconImage equ $08 ; Byte - IconRecord -
oitemID equ $00 ; Word - ItemTemplate -
oitemRect equ $02 ; Rect - ItemTemplate -
oitemType equ $0A ; Word - ItemTemplate -
oitemDescr equ $0C ; Pointer - ItemTemplate -
oitemValue equ $10 ; Word - ItemTemplate -
oitemFlag equ $12 ; Word - ItemTemplate -
oitemColor equ $14 ; CtlColorTablePtr - ItemTemplate -
odefProcParm equ $00 ; Longint - UserCtlItemPB -
otitleParm equ $04 ; Pointer - UserCtlItemPB -
oparam2 equ $08 ; Word - UserCtlItemPB -
oparam1 equ $0A ; Word - UserCtlItemPB -
getInitView equ $0001 ; Command -
getInitTotal equ $0002 ; Command -
getInitValue equ $0003 ; Command -
scrollLineUp equ $0004 ; Command -
scrollLineDown equ $0005 ; Command -
scrollPageUp equ $0006 ; Command -
scrollPageDown equ $0007 ; Command -
scrollThumb equ $0008 ; Command -
buttonItem equ $000A ; Item Type -
checkItem equ $000B ; Item Type -
radioItem equ $000C ; Item Type -
scrollBarItem equ $000D ; Item Type -
userCtlItem equ $000E ; Item Type -
statText equ $000F ; Item Type -
longStatText equ $0010 ; Item Type -
editLine equ $0011 ; Item Type -
iconItem equ $0012 ; Item Type -
picItem equ $0013 ; Item Type -
userItem equ $0014 ; Item Type -
userCtlItem2 equ $0015 ; Item Type -
longStatText2 equ $0016 ; Item Type -
itemDisable equ $8000 ; Item Type -
minItemType equ $000A ; Item Type Range -
maxItemType equ $0016 ; Item Type Range -
ok equ $0001 ; ItemID -
cancel equ $0002 ; ItemID -
inButton equ $0002 ; ModalDialog2 - Part code
inCheckBox equ $0003 ; ModalDialog2 - Part code
inRadioButton equ $0004 ; ModalDialog2 - Part code
inUpArrow equ $0005 ; ModalDialog2 - Part code
inDownArrow equ $0006 ; ModalDialog2 - Part code
inPageUp equ $0007 ; ModalDialog2 - Part code
inPageDown equ $0008 ; ModalDialog2 - Part code
inStatText equ $0009 ; ModalDialog2 - Part code
inGrow equ $000A ; ModalDialog2 - Part code
inEditLine equ $000B ; ModalDialog2 - Part code
inUserItem equ $000C ; ModalDialog2 - Part code
inLongStatText equ $000D ; ModalDialog2 - Part code
inIconItem equ $000E ; ModalDialog2 - Part code
inLongStatText2 equ $000F ; ModalDialog2 -
inThumb equ $0081 ; ModalDialog2 - Part code
okDefault equ $0000 ; Stage Bit Vector -
cancelDefault equ $0040 ; Stage Bit Vector -
alertDrawn equ $0080 ; Stage Bit Vector -

75
src/macro/E16.EVENT.S Normal file
View File

@ -0,0 +1,75 @@
; File: E16.Event
;
;
; Copyright Apple Computer, Inc. 1986, 1987
; All Rights Reserved
;
emDupStrtUpErr equ $0601 ; error - duplicate EMStartup Call
emResetErr equ $0602 ; error - can't reset error the Event Manag
;er
emNotActErr