17 lines
457 B
PHP
17 lines
457 B
PHP
;;The triangles 3 corner-positions, they may be in any given order.
|
|
A_X = $EA
|
|
A_Y = $E9
|
|
B_X = $E8
|
|
B_Y = $E7
|
|
C_X = $E6
|
|
C_Y = $E5
|
|
;; Differense in height (after these points have been sorted look in triangle.s for more detail)
|
|
AB = $E4
|
|
BC = $E3
|
|
|
|
;; These come from mem.inc
|
|
;; Takes up FF - F5
|
|
X_pos = $FC
|
|
Y_pos = $FB
|
|
byte_to_paint = $FE ; Byte with one 1 that corisponds to a pixel.
|
|
btp_mem_pos = $F9 ; 16-bit value (uses FA), byte to paint memory position
|