c64-livecoding/wip-hugo/routines/line/line.inc

18 lines
669 B
PHP

;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
;;Not values but register position in memory
;; F4 - EB
X_end = $EF
Y_end = $F0
dx = $F3
dy = $F1
dy_2 = $F1 ; 16-bit value (uses F2)
dx_2 = $F3 ; 16-bit value (uses F4)
V = $ED ; 16-bit value (uses EE)
D = $EB ; 16-bit value (uses EC)
;; 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