add use of ARGVEC see public.inc

This commit is contained in:
hugova 2025-05-08 23:04:50 +02:00
parent 9b5fd7d6e5
commit 83793035ad
4 changed files with 26 additions and 28 deletions

View file

@ -1,15 +1,12 @@
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*- ;;; -*- 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 pixel.inc
;; Takes up FF - F5
.include "../pixel/pixel.inc" .include "../pixel/pixel.inc"
;; public args
X_end = ARGVEC + 2
Y_end = ARGVEC + 3
;; private args
dx = $E0
dy = $E2
dy_2 = dy ; 16-bit value (uses E1)
dx_2 = dx ; 16-bit value (uses E3)
V = $E4 ; 16-bit value (uses E5)
D = $E6 ; 16-bit value (uses E7)

View file

@ -3,7 +3,7 @@
;; Program for testing of line-drawing. It draws a bunch of lines ;; Program for testing of line-drawing. It draws a bunch of lines
;;Start line-timer-here ;;Start line-timer-here
.include "line.inc" .include "line.inc"
.include "../memory/mem.inc"
Y_pos_ = $0D Y_pos_ = $0D
X_pos_ = $0E X_pos_ = $0E
Y_end_ = $10 Y_end_ = $10
@ -48,9 +48,7 @@ end__:
jmp @loop jmp @loop
end: end:
;;Long lines ;;Long lines
;;Lets cleer bitmap ;;Lets clear bitmap
B_start = $FC ;16-bit value (uses FD)
B_end = $FE ;16-bit value (uses FF)
VIC_bank = $4000 VIC_bank = $4000
VIC_bank_end = VIC_bank + $3FFF VIC_bank_end = VIC_bank + $3FFF
;;Paint the bitmap black. More bitmap: https://www.c64-wiki.com/wiki/53272, https://www.c64-wiki.com/wiki/Screen_RAM#Moving_of_screen_RAM ;;Paint the bitmap black. More bitmap: https://www.c64-wiki.com/wiki/53272, https://www.c64-wiki.com/wiki/Screen_RAM#Moving_of_screen_RAM

View file

@ -1,6 +1,6 @@
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*- ;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
;;In use of in memcpy and memset ;;Public args
A_start = $FA ; 16-bit value (uses FB) A_start = $D0 ; 16-bit value (uses D1)
B_start = $FC ; 16-bit value (uses FD) B_start = $D2 ; 16-bit value (uses D3)
B_end = $FE ; 16-bit value (uses FF) B_end = $D4 ; 16-bit value (uses D5)

View file

@ -1,6 +1,9 @@
Y_pos = $FB ;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
X_pos = $FC ;; public args
byte_to_paint = $FE Y_pos = ARGVEC + 0
btp_mem_pos = $F9 ; 16-bit value (uses FA), byte to paint memory position X_pos = ARGVEC + 1
C = $F7 ; 16-bit value (uses F8) ;; Private args
B = $F5 ; 16-bit value (uses F6) byte_to_paint = $E8
btp_mem_pos = $E9 ; 16-bit value (uses EA), byte to paint memory position
C = $EB ; 16-bit value (uses EC)
B = $ED ; 16-bit value (uses EE)