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