Advertisement
Guest User

Totally not stack abuse™

a guest
Jul 14th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exx_toShadow:   macro
  2.     ld  b,b
  3.     ld  [tempSP],sp
  4.     ld  sp,tempHL2+2
  5.     push    hl
  6.     push    de
  7.     push    bc
  8.     ld  sp,tempBC
  9.     pop bc
  10.     pop de
  11.     pop hl
  12.     ld  sp,tempSP
  13.     pop hl
  14.     ld  sp,hl
  15.     endm
  16.    
  17. exx_toNormal:   macro
  18.     ld  [tempSP],sp
  19.     ld  sp,tempHL+2
  20.     push    hl
  21.     push    de
  22.     push    bc
  23.     ld  sp,tempBC2
  24.     pop bc
  25.     pop de
  26.     pop hl
  27.     ld  sp,tempSP
  28.     pop hl
  29.     ld  sp,hl
  30.     endm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement