Advertisement
Aslai

Untitled

Nov 24th, 2011
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     ;For the sake of this example,
  2.     ;(IX+0) = A.X,  (Center of A)
  3.     ;(IX+1) = A.Y,  (Center of A)
  4.     ;(IX+2) = B.X,  (Point B)
  5.     ;(IX+3) = B.Y   (Point B)
  6.    
  7.     LD A,(IX+0)
  8.     SUB (IX+2)
  9.     CPL A
  10.     CP 8
  11.     JP NC,False
  12.     LD A,(IX+1)
  13.     SUB (IX+3)
  14.     CPL A
  15.     CP 8
  16.     JP NC,False    
  17.                 ;Do stuff if true
  18.  
  19. False:
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement