add use of ARGVEC see public.inc
This commit is contained in:
parent
9b5fd7d6e5
commit
83793035ad
4 changed files with 26 additions and 28 deletions
|
@ -1,15 +1,12 @@
|
||||||
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
||||||
|
.include "../pixel/pixel.inc"
|
||||||
;;Not values but register position in memory
|
;; public args
|
||||||
;; F4 - EB
|
X_end = ARGVEC + 2
|
||||||
X_end = $EF
|
Y_end = ARGVEC + 3
|
||||||
Y_end = $F0
|
;; private args
|
||||||
dx = $F3
|
dx = $E0
|
||||||
dy = $F1
|
dy = $E2
|
||||||
dy_2 = $F1 ; 16-bit value (uses F2)
|
dy_2 = dy ; 16-bit value (uses E1)
|
||||||
dx_2 = $F3 ; 16-bit value (uses F4)
|
dx_2 = dx ; 16-bit value (uses E3)
|
||||||
V = $ED ; 16-bit value (uses EE)
|
V = $E4 ; 16-bit value (uses E5)
|
||||||
D = $EB ; 16-bit value (uses EC)
|
D = $E6 ; 16-bit value (uses E7)
|
||||||
;; These come from pixel.inc
|
|
||||||
;; Takes up FF - F5
|
|
||||||
.include "../pixel/pixel.inc"
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue