PowerRomDasm/mactraps.py

83 lines
2.2 KiB
Python
Raw Normal View History

2021-03-21 23:21:57 +00:00
'''
Provides a mapping from 68k traps to Macintosh traps names.
Author: Max Poliakovski 2020-2021
'''
TRAP_TABLE = {
# trapN trap name
2021-03-22 14:19:20 +00:00
0xA000 : "_Open",
2021-04-19 14:15:13 +00:00
0xA002 : "_Read",
0xA004 : "_Control",
0xA005 : "_Status",
2021-03-22 14:19:20 +00:00
0xA019 : "_InitZone",
2021-03-21 23:21:57 +00:00
0xA01B : "_SetZone",
0xA01F : "_DisposePtr",
0xA029 : "_HLock",
0xA02D : "_SetApplLimit",
0xA02E : "_BlockMove",
2021-03-22 14:19:20 +00:00
0xA036 : "_MoreMasters",
0xA038 : "_WriteParam",
2021-04-19 14:15:13 +00:00
0xA03B : "_Delay",
2021-03-22 14:19:20 +00:00
0xA03F : "_InitUtil",
2021-03-21 23:21:57 +00:00
0xA047 : "_SetTrapAddress",
0xA04A : "_HNoPurge",
2021-03-22 14:19:20 +00:00
0xA051 : "_ReadXPRam",
0xA052 : "_WriteXPRam",
2021-03-21 23:21:57 +00:00
0xA055 : "_StripAddress",
0xA057 : "_SetAppBase",
0xA064 : "_MoveHHi",
0xA069 : "_HGetState",
0xA06A : "_HSetState",
0xA06C : "_InitFS",
2021-04-19 14:15:13 +00:00
0xA06E : "_SlotManager",
0xA077 : "_CountADBs",
0xA078 : "_GetIndADB",
0xA07A : "_SetADBInfo",
0xA07D : "_GetDefaultStartup",
0xA07F : "_InternalWait",
0xA084 : "_GetOSDefault",
0xA085 : "_PMgrOp",
2021-03-21 23:21:57 +00:00
0xA0AD : "_GestaltDispatch",
0xA0BD : "_CacheFlush",
0xA11A : "_GetZone",
0xA11E : "_NewPtr",
0xA122 : "_NewHandle",
0xA128 : "_RecoverHandle",
0xA146 : "_GetTrapAddress",
0xA162 : "_PurgeSpace",
0xA1AD : "_Gestalt",
0xA025 : "_GetHandleSize",
0xA31E : "_NewPtrClear",
0xA322 : "_NewHandleClear",
0xA346 : "_GetOSTrapAddress",
0xA51E : "_NewPtrSys",
0xA522 : "_NewHandleSys",
0xA71E : "_NewPtrSysClear",
0xA722 : "_NewHandleSysClear",
0xA746 : "_GetToolTrapAddress",
2021-04-19 14:15:13 +00:00
0xA817 : "_CopyMask",
2021-03-21 23:21:57 +00:00
0xA81F : "_Get1Resource",
0xA820 : "_Get1NamedResource",
2021-03-22 14:19:20 +00:00
0xA851 : "_SetCursor",
2021-04-19 14:15:13 +00:00
0xA852 : "_HideCursor",
2021-03-22 14:19:20 +00:00
0xA86E : "_InitGraf",
2021-03-21 23:21:57 +00:00
0xA895 : "_ShutDown",
2021-03-22 14:19:20 +00:00
0xA89B : "_PenSize",
0xA89E : "_PenNormal",
0xA8A5 : "_FillRect",
0xA8A9 : "_InsetRect",
0xA8B0 : "_FrameRoundRect",
0xA8B4 : "_FillRoundRect",
2021-03-21 23:21:57 +00:00
0xA96E : "_Dequeue",
2021-04-19 14:15:13 +00:00
0xA992 : "_DetachResource",
2021-03-21 23:21:57 +00:00
0xA994 : "_CurResFile",
0xA99B : "_SetResLoad",
0xA9A0 : "_GetResource",
2021-03-22 14:19:20 +00:00
0xA9A1 : "_GetNamedResource",
2021-03-21 23:21:57 +00:00
0xA9A2 : "_LoadResource",
0xA9AF : "_ResError",
0xA9C9 : "_SysError",
2021-03-22 14:19:20 +00:00
0xAA00 : "_OpenCPort",
0xABEB : "_DisplayDispatch",
2021-03-21 23:21:57 +00:00
}