Geekboy

Untitled

Feb 5th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HandleMyHookMenu:
  2. ;res numOP1,(iy+ParsFlag2) if need to preserve Ans and return no value
  3.         pop hl
  4.     xor a
  5.     ld (IY+myflag),a
  6.     ld (IY+nflags),a
  7.     ld de,Op1
  8.     ld a,(de)
  9.     ld (ltype),a
  10.     ld a,l
  11.     cp 4
  12.     jr nc,ContinueHandleMenu
  13.     cp 1
  14.     ld a,(de)
  15.     jr z,HandleMyHookMenuCheckType
  16.     push hl
  17.         dec hl
  18.         add hl,hl
  19.         add hl,hl
  20.         add hl,hl
  21.         pop de
  22.     push de
  23.         dec de
  24.         add hl,de
  25.         ld de,(FPS)
  26.         ex de,hl
  27.         or a \ sbc hl,de
  28.         ld a,(hl)
  29.         pop hl
  30. HandleMyHookMenuCheckType:
  31.     cp $01   ;list type     -> it means it's a list, so it's a real sum()
  32.     jr nz,ContinueHandleMenu
  33.     xor a
  34.     ret     ;process it like a real -m-e-n-u- sum()
  35. ContinueHandleMenu:
  36.     push hl
  37.         call C3_ChkDirtyFlag
  38.         pop hl
  39.     ld de,DCSBLib_FuncTable
  40.     ld bc,(DCSBLib_FuncTableEnd-DCSBLib_FuncTable)/2
  41.     di
  42.     jp popallargs
  43.  
  44. DCSBLib_FuncTable:
  45.     .dw dbfStringWidth
  46.     .dw dbfPxScan
  47.     .dw dbfHometoGraph
  48.     .dw dbfUsedPicList
  49.     .dw dbfArcUnarcPic
  50.     .dw dbfDCSLibVersion
  51.     .dw dbfSimpleGUIMouse
  52.     .dw dbfPushGUIStack
  53.     .dw dbfPopGUIStack
  54.     .dw dbfOpenGUIStack
  55.     .dw dbfCloseGUIStack
  56.     .dw dbfRenderGUIStack
  57.     .dw dbfGUIMouse
  58.     .dw dbfMenu
  59.     .dw dbfPushAns
  60.     .dw dbfPopAns
  61.     .dw dbfClearAnsStack
  62.     .dw dbfCn2BASICSend
  63.     .dw dbfCn2BASICGet
  64.     .dw dbfCn2BASICStop
  65. DCSBLib_FuncTableEnd:
Advertisement
Add Comment
Please, Sign In to add comment