PowerRomDasm/mactraps.py

51 lines
1.3 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
0xA01B : "_SetZone",
0xA01F : "_DisposePtr",
0xA029 : "_HLock",
0xA02D : "_SetApplLimit",
0xA02E : "_BlockMove",
0xA047 : "_SetTrapAddress",
0xA04A : "_HNoPurge",
0xA055 : "_StripAddress",
0xA057 : "_SetAppBase",
0xA064 : "_MoveHHi",
0xA069 : "_HGetState",
0xA06A : "_HSetState",
0xA06C : "_InitFS",
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",
0xA81F : "_Get1Resource",
0xA820 : "_Get1NamedResource",
0xA895 : "_ShutDown",
0xA96E : "_Dequeue",
0xA994 : "_CurResFile",
0xA99B : "_SetResLoad",
0xA9A0 : "_GetResource",
0xA9A2 : "_LoadResource",
0xA9AF : "_ResError",
0xA9C9 : "_SysError",
0xABEB : "_DisplayDispatch",
2021-03-21 23:21:57 +00:00
}