View difference between Paste ID: 9vX2nqcG and 9jPkAu6Z
SHOW: | | - or go back to the newest paste.
1-
			;For the sake of this example, 
1+
	;For the sake of this example, 
2-
			;(IX+0) = A.X1, 
2+
	;(IX+0) = A.X,  (Center of A)
3-
			;(IX+1) = A.Y1, 
3+
	;(IX+1) = A.Y,  (Center of A)
4-
			;(IX+2) = A.X2, 
4+
	;(IX+2) = B.X,  (Point B)
5-
			;(IX+3) = A.Y2, 
5+
	;(IX+3) = B.Y   (Point B)
6-
			;(IX+4) = B.X1, 
6+
7-
			;(IX+5) = B.Y1, 
7+
	LD A,(IX+0)
8-
			;(IX+6) = B.X2, 
8+
	SUB (IX+2)
9-
			;(IX+7) = B.Y2
9+
	CPL A
10
	CP 8
11-
	LD A,(IX+0)	;A.X1
11+
	JP NC,False	
12-
	CP (IX+6)	;B.X2
12+
	LD A,(IX+1)
13-
	JP NC,False	;Excape if greater than
13+
	SUB (IX+3)
14-
	LD A,(IX+2)	;A.X2
14+
	CPL A
15-
	CP (IX+4)	;B.X1
15+
	CP 8
16-
	JP C,False	;Escape if less than
16+
	JP NC,False		
17-
	LD A,(IX+1)	;A.Y1
17+
				;Do stuff if true
18-
	CP (IX+7)	;B.Y2
18+
19-
	JP NC,False	;Excape if greater than
19+
20-
	LD A,(IX+3)	;A.Y2
20+