Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;For the sake of this example,
- ;(IX+0) = A.X1,
- ;(IX+1) = A.Y1,
- ;(IX+2) = A.X2,
- ;(IX+3) = A.Y2,
- ;(IX+4) = B.X1,
- ;(IX+5) = B.Y1,
- ;(IX+6) = B.X2,
- ;(IX+7) = B.Y2
- LD A,(IX+0) ;A.X1
- CP (IX+6) ;B.X2
- JP NC,False ;Excape if greater than
- LD A,(IX+2) ;A.X2
- CP (IX+4) ;B.X1
- JP C,False ;Escape if less than
- LD A,(IX+1) ;A.Y1
- CP (IX+7) ;B.Y2
- JP NC,False ;Excape if greater than
- LD A,(IX+3) ;A.Y2
- CP (IX+5) ;B.Y1
- JP C,False ;Escape if less than
- ;Do stuff if true
- False:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement