Fix wrong LVO offsets in the exec and dos tables

exec.library: Forbid, Permit, Disable and Enable were in the wrong
slots. Forbid/Permit move to -132/-138 and Disable/Enable to -120/-126.

dos.library: the table left out six private vectors but kept counting
as though they were not there, so every row after a missing one was
shifted, ending 36 bytes out. Restores ClearVec (-162), NoReqLoadSeg
(-168), Cli (-492), DosNameFromAnchor (-852), PathPart (-876) and
CliInit (-924) and realigns the rest.

Also fixes copies of the same wrong exec values, plus several wrong dos
offsets, in api_call_identification.md and setfunction_patching.md.

Checked against ADCD 2.1 References/Function.offs. V39 names in the
exec table (CreatePool, CachePreDMA, AddMemHandler and so on) are left
as they were, since they are more current than ADCD 2.0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Duncan Bowring 2026-09-20 10:29:12 -04:00
parent c6f6253ea0
commit ebb2dbeef7
No known key found for this signature in database
GPG key ID: 6D5A1BFAD252A5B4
4 changed files with 190 additions and 182 deletions

View file

@ -28,139 +28,142 @@
| −144 | 144 | Exit |
| −150 | 150 | LoadSeg |
| −156 | 156 | UnLoadSeg |
| −162 | 162 | DeviceProc (private) |
| −168 | 168 | SetComment |
| −174 | 174 | SetProtection |
| −180 | 180 | DateStamp |
| −186 | 186 | Delay |
| −192 | 192 | WaitForChar |
| −198 | 198 | ParentDir |
| −204 | 204 | IsInteractive |
| −210 | 210 | Execute |
| −216 | 216 | AllocDosObject |
| −222 | 222 | FreeDosObject |
| −228 | 228 | DoPkt |
| −234 | 234 | SendPkt |
| −240 | 240 | WaitPkt |
| −246 | 246 | ReplyPkt |
| −252 | 252 | AbortPkt |
| −258 | 258 | LockRecord |
| −264 | 264 | LockRecords |
| −270 | 270 | UnLockRecord |
| −276 | 276 | UnLockRecords |
| −282 | 282 | SelectInput |
| −288 | 288 | SelectOutput |
| −294 | 294 | FGetC |
| −300 | 300 | FPutC |
| −306 | 306 | UnGetC |
| −312 | 312 | FRead |
| −318 | 318 | FWrite |
| −324 | 324 | FGets |
| −330 | 330 | FPuts |
| −336 | 336 | VFWritef |
| −342 | 342 | VFPrintf |
| −348 | 348 | Flush |
| −354 | 354 | SetVBuf |
| −360 | 360 | DupLockFromFH |
| −366 | 366 | OpenFromLock |
| −372 | 372 | ParentOfFH |
| −378 | 378 | ExamineFH |
| −384 | 384 | SetFileDate |
| −390 | 390 | NameFromLock |
| −396 | 396 | NameFromFH |
| −402 | 402 | SplitName |
| −408 | 408 | SameLock |
| −414 | 414 | SetMode |
| −420 | 420 | ExAll |
| −426 | 426 | ReadLink |
| −432 | 432 | MakeLink |
| −438 | 438 | ChangeMode |
| −444 | 444 | SetFileSize |
| −450 | 450 | SetIoErr |
| −456 | 456 | Fault |
| −462 | 462 | PrintFault |
| −468 | 468 | ErrorReport |
| −474 | 474 | Cli (private) |
| −480 | 480 | CreateNewProc |
| −486 | 486 | RunCommand |
| −492 | 492 | GetConsoleTask |
| −498 | 498 | SetConsoleTask |
| −504 | 504 | GetFileSysTask |
| −510 | 510 | SetFileSysTask |
| −516 | 516 | GetArgStr |
| −522 | 522 | SetArgStr |
| −528 | 528 | FindCliProc |
| −534 | 534 | MaxCli |
| −540 | 540 | SetCurrentDirName |
| −546 | 546 | GetCurrentDirName |
| −552 | 552 | SetProgramName |
| −558 | 558 | GetProgramName |
| −564 | 564 | SetPrompt |
| −570 | 570 | GetPrompt |
| −576 | 576 | SetProgramDir |
| −582 | 582 | GetProgramDir |
| −588 | 588 | SystemTagList |
| −594 | 594 | AssignLock |
| −600 | 600 | AssignLate |
| −606 | 606 | AssignPath |
| −612 | 612 | AssignAdd |
| −618 | 618 | RemAssignList |
| −624 | 624 | GetDeviceProc |
| −630 | 630 | FreeDeviceProc |
| −636 | 636 | LockDosList |
| −642 | 642 | UnLockDosList |
| −648 | 648 | AttemptLockDosList |
| −654 | 654 | RenameDosEntry |
| −660 | 660 | AddDosEntry |
| −666 | 666 | RemDosEntry |
| −672 | 672 | FindDosEntry |
| −678 | 678 | NextDosEntry |
| −684 | 684 | MakeDosEntry |
| −690 | 690 | FreeDosEntry |
| −696 | 696 | IsFileSystem |
| −702 | 702 | Format |
| −708 | 708 | Relabel |
| −714 | 714 | Inhibit |
| −720 | 720 | AddBuffers |
| −726 | 726 | CompareDates |
| −732 | 732 | DateToStr |
| −738 | 738 | StrToDate |
| −744 | 744 | InternalLoadSeg |
| −750 | 750 | InternalUnLoadSeg |
| −756 | 756 | NewLoadSeg |
| −762 | 762 | AddSegment |
| −768 | 768 | FindSegment |
| −774 | 774 | RemSegment |
| −780 | 780 | CheckSignal |
| −786 | 786 | ReadArgs |
| −792 | 792 | FindArg |
| −798 | 798 | ReadItem |
| −804 | 804 | StrToLong |
| −810 | 810 | MatchFirst |
| −816 | 816 | MatchNext |
| −822 | 822 | MatchEnd |
| −828 | 828 | ParsePattern |
| −834 | 834 | MatchPattern |
| −840 | 840 | FreeArgs |
| −846 | 846 | FilePart |
| −852 | 852 | PathPart |
| −858 | 858 | AddPart |
| −864 | 864 | StartNotify |
| −870 | 870 | EndNotify |
| −876 | 876 | SetVar |
| −882 | 882 | GetVar |
| −888 | 888 | DeleteVar |
| −894 | 894 | FindVar |
| −900 | 900 | CliInitNewcli (private) |
| −906 | 906 | CliInitRun (private) |
| −912 | 912 | WriteChars |
| −918 | 918 | PutStr |
| −924 | 924 | VPrintf |
| −930 | 930 | ParsePatternNoCase |
| −936 | 936 | MatchPatternNoCase |
| −942 | 942 | SameDevice (private) |
| −948 | 948 | ExAllEnd |
| −954 | 954 | SetOwner |
| −162 | 162 | ClearVec (private) |
| −168 | 168 | NoReqLoadSeg (private) |
| −174 | 174 | DeviceProc |
| −180 | 180 | SetComment |
| −186 | 186 | SetProtection |
| −192 | 192 | DateStamp |
| −198 | 198 | Delay |
| −204 | 204 | WaitForChar |
| −210 | 210 | ParentDir |
| −216 | 216 | IsInteractive |
| −222 | 222 | Execute |
| −228 | 228 | AllocDosObject |
| −234 | 234 | FreeDosObject |
| −240 | 240 | DoPkt |
| −246 | 246 | SendPkt |
| −252 | 252 | WaitPkt |
| −258 | 258 | ReplyPkt |
| −264 | 264 | AbortPkt |
| −270 | 270 | LockRecord |
| −276 | 276 | LockRecords |
| −282 | 282 | UnLockRecord |
| −288 | 288 | UnLockRecords |
| −294 | 294 | SelectInput |
| −300 | 300 | SelectOutput |
| −306 | 306 | FGetC |
| −312 | 312 | FPutC |
| −318 | 318 | UnGetC |
| −324 | 324 | FRead |
| −330 | 330 | FWrite |
| −336 | 336 | FGets |
| −342 | 342 | FPuts |
| −348 | 348 | VFWritef |
| −354 | 354 | VFPrintf |
| −360 | 360 | Flush |
| −366 | 366 | SetVBuf |
| −372 | 372 | DupLockFromFH |
| −378 | 378 | OpenFromLock |
| −384 | 384 | ParentOfFH |
| −390 | 390 | ExamineFH |
| −396 | 396 | SetFileDate |
| −402 | 402 | NameFromLock |
| −408 | 408 | NameFromFH |
| −414 | 414 | SplitName |
| −420 | 420 | SameLock |
| −426 | 426 | SetMode |
| −432 | 432 | ExAll |
| −438 | 438 | ReadLink |
| −444 | 444 | MakeLink |
| −450 | 450 | ChangeMode |
| −456 | 456 | SetFileSize |
| −462 | 462 | SetIoErr |
| −468 | 468 | Fault |
| −474 | 474 | PrintFault |
| −480 | 480 | ErrorReport |
| −492 | 492 | Cli |
| −498 | 498 | CreateNewProc |
| −504 | 504 | RunCommand |
| −510 | 510 | GetConsoleTask |
| −516 | 516 | SetConsoleTask |
| −522 | 522 | GetFileSysTask |
| −528 | 528 | SetFileSysTask |
| −534 | 534 | GetArgStr |
| −540 | 540 | SetArgStr |
| −546 | 546 | FindCliProc |
| −552 | 552 | MaxCli |
| −558 | 558 | SetCurrentDirName |
| −564 | 564 | GetCurrentDirName |
| −570 | 570 | SetProgramName |
| −576 | 576 | GetProgramName |
| −582 | 582 | SetPrompt |
| −588 | 588 | GetPrompt |
| −594 | 594 | SetProgramDir |
| −600 | 600 | GetProgramDir |
| −606 | 606 | SystemTagList |
| −612 | 612 | AssignLock |
| −618 | 618 | AssignLate |
| −624 | 624 | AssignPath |
| −630 | 630 | AssignAdd |
| −636 | 636 | RemAssignList |
| −642 | 642 | GetDeviceProc |
| −648 | 648 | FreeDeviceProc |
| −654 | 654 | LockDosList |
| −660 | 660 | UnLockDosList |
| −666 | 666 | AttemptLockDosList |
| −672 | 672 | RemDosEntry |
| −678 | 678 | AddDosEntry |
| −684 | 684 | FindDosEntry |
| −690 | 690 | NextDosEntry |
| −696 | 696 | MakeDosEntry |
| −702 | 702 | FreeDosEntry |
| −708 | 708 | IsFileSystem |
| −714 | 714 | Format |
| −720 | 720 | Relabel |
| −726 | 726 | Inhibit |
| −732 | 732 | AddBuffers |
| −738 | 738 | CompareDates |
| −744 | 744 | DateToStr |
| −750 | 750 | StrToDate |
| −756 | 756 | InternalLoadSeg |
| −762 | 762 | InternalUnLoadSeg |
| −768 | 768 | NewLoadSeg |
| −774 | 774 | AddSegment |
| −780 | 780 | FindSegment |
| −786 | 786 | RemSegment |
| −792 | 792 | CheckSignal |
| −798 | 798 | ReadArgs |
| −804 | 804 | FindArg |
| −810 | 810 | ReadItem |
| −816 | 816 | StrToLong |
| −822 | 822 | MatchFirst |
| −828 | 828 | MatchNext |
| −834 | 834 | MatchEnd |
| −840 | 840 | ParsePattern |
| −846 | 846 | MatchPattern |
| −852 | 852 | DosNameFromAnchor (private) |
| −858 | 858 | FreeArgs |
| −870 | 870 | FilePart |
| −876 | 876 | PathPart |
| −882 | 882 | AddPart |
| −888 | 888 | StartNotify |
| −894 | 894 | EndNotify |
| −900 | 900 | SetVar |
| −906 | 906 | GetVar |
| −912 | 912 | DeleteVar |
| −918 | 918 | FindVar |
| −924 | 924 | CliInit |
| −930 | 930 | CliInitNewcli |
| −936 | 936 | CliInitRun |
| −942 | 942 | WriteChars |
| −948 | 948 | PutStr |
| −954 | 954 | VPrintf |
| −966 | 966 | ParsePatternNoCase |
| −972 | 972 | MatchPatternNoCase |
| −978 | 978 | DosGetString (private) |
| −984 | 984 | SameDevice |
| −990 | 990 | SetOwner |
---

View file

@ -21,10 +21,10 @@
| −102 | 102 | InitResident |
| −108 | 108 | Alert |
| −114 | 114 | Debug |
| −120 | 120 | Forbid |
| −126 | 126 | Permit |
| −132 | 132 | Disable |
| −138 | 138 | Enable |
| −120 | 120 | Disable |
| −126 | 126 | Enable |
| −132 | 132 | Forbid |
| −138 | 138 | Permit |
| −144 | 144 | SetSR |
| −150 | 150 | SuperState |
| −156 | 156 | UserState |