Var MACRO first, second segment MemVars &first: ds second segment Main ENDMAC hookManFlags EQU asm_Flag3 extendedSearch EQU 0 isInstalling EQU 1 silentInstall EQU 2 preserveHooks EQU 3 dataChanged EQU 4 myHookExecTemp EQU 0FE6Dh linkActivityHookBlockPtr EQU 0FE70h cursorHookBlockPtr EQU 0FE72h libraryHookBlockPtr EQU 0FE74h rawKeyHookBlockPtr EQU 0FE76h getKeyHookBlockPtr EQU 0FE78h homescreenHookBlockPtr EQU 0FE7Ah windowHookBlockPtr EQU 0FE7Ch graphHookBlockPtr EQU 0FE7Eh yEqualsHookBlockPtr EQU 0FE80h fontHookBlockPtr EQU 0FE82h regraphHookBlockPtr EQU 0FE84h graphicsHookBlockPtr EQU 0FE86h traceHookBlockPtr EQU 0FE88h parserHookBlockPtr EQU 0FE8Ah appChangeHookBlockPtr EQU 0FE8Ch catalog1HookBlockPtr EQU 0FE8Eh catalog2HookBlockPtr EQU 0FE90h helpHookBlockPtr EQU 0FE92h cxRedispHookBlockPtr EQU 0FE94h menuHookBlockPtr EQU 0FE96h tokenHookBlockPtr EQU 0FE98h localizeHookBlockPtr EQU 0FE9Ah silentLinkHookBlockPtr EQU 0FE9Ch USBActivityHookBlockPtr EQU 0FE9Eh offPageJumpPtr EQU 0FEA0h linkActivityHookPtr EQU 9B78h cursorHookPtr EQU 9B7Ch libraryHookPtr EQU 9B80h rawKeyHookPtr EQU 9B84h getKeyHookPtr EQU 9B88h homescreenHookPtr EQU 9B8Ch windowHookPtr EQU 9B90h graphHookPtr EQU 9B94h yEqualsHookPtr EQU 9B98h fontHookPtr EQU 9B9Ch regraphHookPtr EQU 9BA0h graphicsHookPtr EQU 9BA4h traceHookPtr EQU 9BA8h parserHookPtr EQU 9BACh appChangeHookPtr EQU 9BB0h catalog1HookPtr EQU 9BB4h helpHookPtr EQU 9BB8h cxRedispHookPtr EQU 9BBCh menuHookPtr EQU 9BC0h catalog2HookPtr EQU 9BC4h tokenHookPtr EQU 9BC8h localizeHookPtr EQU 9BCCh silentLinkHookPtr EQU 9BD0h USBActivityHookPtr EQU 9BD4h linkActivityHookID EQU 1 cursorHookID EQU 2 libraryHookID EQU 3 rawKeyHookID EQU 4 getKeyHookID EQU 5 homescreenHookID EQU 6 windowHookID EQU 7 graphHookID EQU 8 yEqualsHookID EQU 9 fontHookID EQU 10 regraphHookID EQU 11 graphicsHookID EQU 12 traceHookID EQU 13 parserHookID EQU 14 appChangeHookID EQU 15 catalog1HookID EQU 16 catalog2HookID EQU 17 helpHookID EQU 18 cxRedispHookID EQU 19 menuHookID EQU 20 tokenHookID EQU 21 localizeHookID EQU 22 silentLinkHookID EQU 23 USBActivityHookID EQU 24 patch1ID EQU 50 patch2ID EQU 51 patch3ID EQU 52 patchAdditional1 EQU 53 patchAdditional2 EQU 54 OSCompatibilityID EQU 55 hookDataID EQU 56 _EnableAppChangeHook EQU 502Ch _DisableAppChangeHook EQU 502Fh _EnableCatalog1Hook EQU 5044h _DisableCatalog1Hook EQU 5047h _EnableCatalog2Hook EQU 4F8Dh _DisableCatalog2Hook EQU 4F90h _EnableCursorHook EQU 4F60h _DisableCursorHook EQU 4F69h _EnableFontHook EQU 4FE4h _DisableFontHook EQU 4FE7h _EnableGetKeyHook EQU 4F7Bh _DisableGetKeyHook EQU 4F7Eh _EnableGraphHook EQU 4FB7h _DisableGraphHook EQU 4FBAh _EnableGraphicsHook EQU 5032h _DisableGraphicsHook EQU 5035h _EnableHelpHook EQU 504Ah _DisableHelpHook EQU 504Dh _EnableHomescreenHook EQU 4FABh _DisableHomescreenHook EQU 4FAEh _EnableLibraryHook EQU 4F63h _DisableLibraryHook EQU 4F6Ch _EnableLinkActivityHook EQU 4F84h _DisableLinkActivityHook EQU 4F87h _EnableLocalizeHook EQU 4F93h _DisableLocalizeHook EQU 4F96h _EnableMenuHook EQU 5083h _DisableMenuHook EQU 5086h _EnableParserHook EQU 5026h _DisableParserHook EQU 5029h _EnableRawKeyHook EQU 4F66h _DisableRawKeyHook EQU 4F6Fh _EnableRegraphHook EQU 4FEAh _DisableRegraphHook EQU 4FEDh _EnableSilentLinkHook EQU 50CEh _DisableSilentLinkHook EQU 50D1h _EnableTokenHook EQU 4F99h _DisableTokenHook EQU 4F9Ch _EnableTraceHook EQU 4FF3h _DisableTraceHook EQU 4FF6h _EnableUSBActivityHook EQU 528Ah _DisableUSBActivityHook EQU 528Dh _EnableWindowHook EQU 4FB1h _DisableWindowHook EQU 4FB4h _EnableYEqualsHook EQU 4FCFh _DisableYEqualsHook EQU 4FD2h _EnablecxRedispHook EQU 506Bh _DisablecxRedispHook EQU 506Eh replacementCodeAddr EQU 7FA0h replacementCodePage EQU 7Bh ;This must not change, since the install check looks here newPage0CallAddr EQU 3FFAh