]> git.sur5r.net Git - cc65/commitdiff
Added Apple GEOS include files based on the "Hitchhiker's Guide To GEOS".
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 9 Feb 2012 09:18:37 +0000 (09:18 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 9 Feb 2012 09:18:37 +0000 (09:18 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5510 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos-apple/diskdrv.inc [new file with mode: 0644]
libsrc/geos-apple/geossym.inc [new file with mode: 0644]
libsrc/geos-apple/jumptab.inc [new file with mode: 0644]

diff --git a/libsrc/geos-apple/diskdrv.inc b/libsrc/geos-apple/diskdrv.inc
new file mode 100644 (file)
index 0000000..d38e595
--- /dev/null
@@ -0,0 +1,62 @@
+;
+;GEOS Disk Driver JumpTab
+;Source: The Hitchhiker's Guide To GEOS
+;http://lyonlabs.org/commodore/onrequest/geos-manuals/The_Hitchhikers_Guide_to_GEOS.pdf
+
+GetBlock               =       $0300\r
+PutBlock               =       $0303\r
+GetFile                        =       $030f\r
+LdFile                 =       $0312\r
+ReadFile               =       $0315\r
+SaveFile               =       $0318\r
+WriteFile              =       $031b\r
+GetVBM                 =       $031e\r
+PutVBM                 =       $0321\r
+CalcBlksFree           =       $0324\r
+FreeBlock              =       $032a\r
+SetNextFree            =       $032d\r
+AppendRecord           =       $0330\r
+CloseRecordFile                =       $0333\r
+DeleteRecord           =       $0336\r
+NextRecord             =       $0336\r
+InsertRecord           =       $0339\r
+OpenRecordFile         =       $033f\r
+PointRecord            =       $0342\r
+PreviousRecord         =       $0345\r
+ReadRecord             =       $0348\r
+UpdateRecordFile       =       $034b\r
+WriteRecord            =       $034e\r
+BlkAlloc               =       $0351\r
+NxtBlkAlloc            =       $0354\r
+DeleteFile             =       $0357\r
+FreeFile               =       $035a\r
+LdDeskAcc              =       $035d\r
+RstrAppl               =       $0360\r
+FdFTypesInDir          =       $0363\r
+FindFTypes             =       $0366\r
+FindFile               =       $0369\r
+FndFilinDir            =       $036c\r
+BldGDirEntry           =       $036f\r
+GetDirHead             =       $0372\r
+GetFreeDirBlk          =       $0375\r
+PutDirHead             =       $037b\r
+SetGDirEntry           =       $037b\r
+DeleteDir              =       $037e\r
+DownDirectory          =       $0381\r
+GetPathname            =       $0384\r
+MakeSubDir             =       $0387\r
+UpDirectory            =       $038a\r
+LdApplic               =       $038d\r
+GetFHdrInfo            =       $0390\r
+RenameFile             =       $0393\r
+OpenDisk               =       $0399\r
+Get1stDirEntry         =       $039c\r
+GetNxtDirEntry         =       $039c\r
+GoDirectory            =       $039f\r
+ReOpenDisk             =       $03a2\r
+SortAlpha              =       $03a5\r
+SaveFG                 =       $03ab\r
+RecoverFG              =       $03ae\r
+JsrToAux               =       $03b4\r
+UpdateParent           =       $03b7\r
+FreeDir                        =       $03ba\r
diff --git a/libsrc/geos-apple/geossym.inc b/libsrc/geos-apple/geossym.inc
new file mode 100644 (file)
index 0000000..6770067
--- /dev/null
@@ -0,0 +1,182 @@
+;
+;GEOS variable memory locations sorted by address
+;Source: The Hitchhiker's Guide To GEOS
+;http://lyonlabs.org/commodore/onrequest/geos-manuals/The_Hitchhikers_Guide_to_GEOS.pdf
+
+r0                     =       $00
+r0L                    =       $00
+r0H                    =       $01
+r1                     =       $02
+r1L                    =       $02
+r1H                    =       $03
+r2                     =       $04
+r2L                    =       $04
+r2H                    =       $05
+r3                     =       $06
+r3L                    =       $06
+r3H                    =       $07
+r4                     =       $08
+r4L                    =       $08
+r4H                    =       $09
+r5                     =       $0a
+r5L                    =       $0a
+r5H                    =       $0b
+r6                     =       $0c
+r6L                    =       $0c
+r6H                    =       $0d
+r7                     =       $0e
+r7L                    =       $0e
+r7H                    =       $0f
+r8                     =       $10
+r8L                    =       $10
+r8H                    =       $11
+r9                     =       $12
+r9L                    =       $12
+r9H                    =       $13
+r10                    =       $14
+r10L                   =       $14
+r10H                   =       $15
+r11                    =       $16
+r11L                   =       $16
+r11H                   =       $17
+r12                    =       $18
+r12L                   =       $18
+r12H                   =       $19
+r13                    =       $1a
+r13L                   =       $1a
+r13H                   =       $1b
+r14                    =       $1c
+r14L                   =       $1c
+r14H                   =       $1d
+r15                    =       $1e
+r15L                   =       $1e
+r15H                   =       $1f
+
+string                 =       $53\r
+mouseTop               =       $57\r
+mouseBottom            =       $58\r
+mouseLeft              =       $59\r
+mouseRight             =       $5b\r
+mouseOn                        =       $5d\r
+curIndexTable          =       $5e\r
+cardDataPntr           =       $60\r
+returnAddress          =       $64\r
+shiftBuf               =       $70\r
+shiftOutBuf            =       $78\r
+appMain                        =       $0200\r
+intTopVector           =       $0202\r
+intBotVector           =       $0204\r
+mouseVector            =       $0206\r
+keyVector              =       $0208\r
+inputVector            =       $020a\r
+mouseFaultVec          =       $020c\r
+otherPressVec          =       $020e\r
+StringFaultVec         =       $0210\r
+alarmTmtVector         =       $0212\r
+BRKVector              =       $0214\r
+RecoverVector          =       $0216\r
+baselineOffset         =       $0218\r
+curSetWidth            =       $0219\r
+curHeight              =       $021b\r
+currentMode            =       $021c\r
+dispBufferOn           =       $021d\r
+windowTop              =       $021e\r
+leftMargin             =       $0220\r
+rightMargin            =       $0222\r
+selectionFlash         =       $0224\r
+alphaFlag              =       $0225\r
+iconSelFlag            =       $0226\r
+faultData              =       $0227\r
+MenuNumber             =       $0228\r
+mouseXOffset           =       $0229\r
+mouseYOffset           =       $022b\r
+curPattern             =       $022c\r
+stringX                        =       $022e\r
+stringY                        =       $0230\r
+noEraseSprites         =       $0240\r
+mouseXPos              =       $0241\r
+mouseYPos              =       $0243\r
+keyData                        =       $0245\r
+inputData              =       $0247\r
+random                 =       $024c\r
+saveFontTab            =       $024e\r
+dblClickCount          =       $0258\r
+sysDBData              =       $0259\r
+offFlag                        =       $027c\r
+maxMouseSpeed          =       $027d\r
+minMouseSpeed          =       $027e\r
+mouseAccel             =       $027f\r
+firstBoot              =       $0281\r
+dataFileName           =       $02a4\r
+dataDiskName           =       $02b4\r
+MachineType            =       $02c4\r
+intSource              =       $02c6\r
+reqXpos0               =       $0800\r
+reqXpos1               =       $0802\r
+reqXpos2               =       $0804\r
+reqXpos3               =       $0806\r
+reqXpos4               =       $0808\r
+reqXpos5               =       $080a\r
+reqXpos6               =       $080c\r
+reqXpos7               =       $080e\r
+mobenble               =       $0818\r
+mobx2                  =       $0819\r
+moby2                  =       $081a\r
+PrntFileName           =       $08ac\r
+inputDevName           =       $08cc\r
+pressFlag              =       $08fe\r
+curEnable              =       $0951\r
+sspr1back              =       $56d0\r
+sspr2back              =       $5820\r
+sspr3back              =       $5970\r
+sspr4back              =       $5ac0\r
+sspr5back              =       $5c10\r
+sspr6back              =       $5d60\r
+sspr7back              =       $5eb0\r
+backBufPtr             =       $9d7c\r
+softOnes               =       $d000\r
+softZeros              =       $d0e0\r
+curnoby2               =       $d952\r
+curmobx2               =       $d953\r
+curXpos0               =       $d954\r
+curYpos0               =       $d964\r
+backXBufNum            =       $d98c\r
+backYBufNum            =       $d994\r
+sizeFlags              =       $db1c\r
+doRestFlag             =       $db1d\r
+bootName               =       $e003\r
+version                        =       $e00c\r
+nationality            =       $e00d\r
+mouseSave              =       $ee53\r
+year                   =       $f200\r
+month                  =       $f201\r
+day                    =       $f202\r
+hour                   =       $f203\r
+minutes                        =       $f204\r
+seconds                        =       $f205\r
+dlgBoxRamBuf           =       $f381\r
+totNumBlks             =       $f60b\r
+curDrive               =       $f60d\r
+numDrives              =       $f60e\r
+diskOpenFlg            =       $f617\r
+curRecord              =       $f618\r
+usedRecords            =       $f619\r
+fileWritten            =       $f61a\r
+fileSize               =       $f61b\r
+dirBlkno               =       $f620\r
+dirPtr                 =       $f622\r
+indexBlkno             =       $f624\r
+diskBlkBuf             =       $f659\r
+fileHeader             =       $f859\r
+dirEntryBuf            =       $fa59\r
+curDirHead             =       $fa80\r
+DrACurDkNm             =       $faa7\r
+DrBCurDkNm             =       $fab7\r
+DrCCurDkNm             =       $fac7\r
+DrDCurDkNm             =       $fad7\r
+devTabHi               =       $fae7\r
+devTabLo               =       $faeb\r
+devUnitTab             =       $faef\r
+driveType              =       $faf3\r
+drSizeLo               =       $faf7\r
+drSizeHi               =       $fafb\r
diff --git a/libsrc/geos-apple/jumptab.inc b/libsrc/geos-apple/jumptab.inc
new file mode 100644 (file)
index 0000000..baa9f18
--- /dev/null
@@ -0,0 +1,165 @@
+;
+;Apple GEOS System Jump Table
+;Source: The Hitchhiker's Guide To GEOS
+;http://lyonlabs.org/commodore/onrequest/geos-manuals/The_Hitchhikers_Guide_to_GEOS.pdf
+\r
+ReadClock              =       $0800\r
+ClockInt               =       $0803\r
+SetTimeDate            =       $0806\r
+SetAlarm               =       $0809\r
+ResetAlarm             =       $080c\r
+InitForPrint           =       $6000\r
+StartPrint             =       $6003\r
+StartASCII             =       $6006\r
+PrintBuffer            =       $6009\r
+PrintASCII             =       $600c\r
+StopPrint              =       $600f\r
+GetMode                        =       $6012\r
+SetMode                        =       $6015\r
+CancelPrint            =       $6018\r
+InitCard               =       $6700\r
+OpenCard               =       $6703\r
+OutputByte             =       $6706\r
+InputByte              =       $6709\r
+CloseCard              =       $670c\r
+InfoCard               =       $670f\r
+StatusCard             =       $6712\r
+ClearCard              =       $6715\r
+AuxDMain               =       $efa0\r
+AuxDInt                        =       $efa3\r
+AuxDKeyFilter          =       $efa6\r
+AuxDExit               =       $efa9\r
+InitMouse              =       $f000\r
+SlowMouse              =       $f003\r
+UpdateMouse            =       $f006\r
+KeyFilter              =       $f009\r
+MainLoop               =       $fe00\r
+InterruptMain          =       $fe03\r
+StartAppl              =       $fe06\r
+DoInlineReturn         =       $fe09\r
+DoIcons                        =       $fe0c\r
+DoMenu                 =       $fe0f\r
+ReDoMenu               =       $fe12\r
+DoPreviousMenu         =       $fe15\r
+GotoFirstMenu          =       $fe18\r
+RecoverMenu            =       $fe1b\r
+RecoverAllMenus                =       $fe1e\r
+DrawPoint              =       $fe21\r
+TestPoint              =       $fe24\r
+HorizontalLine         =       $fe27\r
+VerticalLine           =       $fe2a\r
+InvertLine             =       $fe2d\r
+RecoverLine            =       $fe30\r
+DrawLine               =       $fe33\r
+SetPattern             =       $fe36\r
+Rectangle              =       $fe39\r
+i_Rectangle            =       $fe3c\r
+FrameRectangle         =       $fe3f\r
+i_FrameRectangle       =       $fe42\r
+InvertRectangle                =       $fe45\r
+RecoverRectangle       =       $fe48\r
+i_RecoverRectangle     =       $fe4b\r
+ImprintRectangle       =       $fe4e\r
+i_ImprintRectangle     =       $fe51\r
+BitmapUp               =       $fe54\r
+i_BitmapUp             =       $fe57\r
+BitmapClip             =       $fe5a\r
+BitOtherClip           =       $fe5d\r
+GraphicsString         =       $fe60\r
+i_GraphicsString       =       $fe63\r
+GetScanLine            =       $fe66\r
+PutString              =       $fe69\r
+i_PutString            =       $fe6c\r
+PutDecimal             =       $fe6f\r
+GetString              =       $fe72\r
+GetNextChar            =       $fe75\r
+InitTextPrompt         =       $fe78\r
+PromptOn               =       $fe7b\r
+PromptOff              =       $fe7e\r
+PutChar                        =       $fe81\r
+GetRealSize            =       $fe84\r
+GetCharWidth           =       $fe87\r
+LoadCharSet            =       $fe8a\r
+UseSystemFont          =       $fe8d\r
+SmallPutChar           =       $fe90\r
+StartMouseMode         =       $fe93\r
+MouseOff               =       $fe96\r
+MouseUp                        =       $fe99\r
+IsMseInRegion          =       $fe9c\r
+ClearMouseMode         =       $fe9f\r
+DrawSprite             =       $fea2\r
+PosSprite              =       $fea5\r
+EnablSprite            =       $fea8\r
+DisablSprite           =       $feab\r
+InitProcesses          =       $feae\r
+RestartProcess         =       $feb1\r
+BlockProcess           =       $feb4\r
+UnblockProcess         =       $feb7\r
+FreezeProcess          =       $feba\r
+UnfreezeProcess                =       $febd\r
+Sleep                  =       $fec0\r
+EnableProcess          =       $fec3\r
+DShiftLeft             =       $fec6\r
+DShiftRight            =       $fec9\r
+BBMult                 =       $fecc\r
+BMult                  =       $fecf\r
+DMult                  =       $fed2\r
+Ddiv                   =       $fed5\r
+DSdiv                  =       $fed8\r
+Dabs                   =       $fedb\r
+Dnegate                        =       $fede\r
+Ddec                   =       $fee1\r
+GetRandom              =       $fee4\r
+CopyString             =       $fee7\r
+CopyFString            =       $feea\r
+CmpString              =       $feed\r
+CmpFString             =       $fef0\r
+Panic                  =       $fef3\r
+MoveData               =       $fef6\r
+i_MoveData             =       $fef9\r
+ClearRam               =       $fefc\r
+FillRam                        =       $feff\r
+i_FillRam              =       $ff02\r
+InitRam                        =       $ff05\r
+CallRoutine            =       $ff08\r
+NewBitOtherClip                =       $ff0e\r
+FirstInit              =       $ff11\r
+CRC                    =       $ff14\r
+DoDlgBox               =       $ff17\r
+RstrFrmDialogue                =       $ff1a\r
+NewBitUp               =       $ff1d\r
+IrqMiddle              =       $ff20\r
+TempHideMouse          =       $ff29\r
+SoftSprHandler         =       $ff2c\r
+SetMsePic              =       $ff2f\r
+InitSprite             =       $ff32\r
+SaveFontData           =       $ff35\r
+RestoreFontData                =       $ff38\r
+EraseCharacter         =       $ff3e\r
+ReadByte               =       $ff41\r
+GetLdVars              =       $ff44\r
+SetLdVars              =       $ff47\r
+InitForDialog          =       $ff4a\r
+WarmStart              =       $ff4d\r
+RecoverSysRam          =       $ff53\r
+GetPtrCurDkNm          =       $ff56\r
+EnterDeskTop           =       $ff59\r
+CopyScreenBlock                =       $ff5c\r
+CopyLine               =       $ff5f\r
+GetScreenLine          =       $ff62\r
+PutScreenLine          =       $ff65\r
+DivideBySeven          =       $ff68\r
+MoveAuxData            =       $ff6b\r
+GetSpriteData          =       $ff6e\r
+SwapMainAndAux         =       $ff71\r
+ReadBackLine           =       $ff74\r
+LoadAuxSet             =       $ff77\r
+HideOnlyMouse          =       $ff7a\r
+GetPattern             =       $ff7d\r
+SetUserPattern         =       $ff80\r
+Bell                   =       $ff86\r
+ImprintLine            =       $ff8f\r
+CopyFullScreen         =       $ff92\r
+NewBitClip             =       $ff95\r
+ReadScanLine           =       $ff98\r
+i_NewBitUp             =       $ff9e\r