cleanup test utch that they can run cleanly after each other
This commit is contained in:
parent
6ee280abec
commit
5a35ead4dd
3 changed files with 28 additions and 20 deletions
|
@ -74,7 +74,13 @@ end:
|
|||
INC Y_end
|
||||
LDA Y_end
|
||||
CMP #$bb
|
||||
BEQ end_
|
||||
jmp @loop
|
||||
end_:
|
||||
BNE @loop
|
||||
|
||||
;;Lets clear bitmap
|
||||
;;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
|
||||
Mov_16 A_start, A_start + 1, #<VIC_bank, #>VIC_bank
|
||||
Mov_16 length, length + 1, #<$1f40, #>$1f40
|
||||
LDA #$00
|
||||
jsr memset
|
||||
|
||||
.endscope
|
||||
|
|
|
@ -8,14 +8,15 @@
|
|||
STA Y_pos
|
||||
|
||||
test_x:
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
DEY
|
||||
BNE test_x
|
||||
DEX
|
||||
BNE test_x
|
||||
;; delay
|
||||
;; NOP
|
||||
;; NOP
|
||||
;; NOP
|
||||
;; NOP
|
||||
;; DEY
|
||||
;; BNE test_x
|
||||
;; DEX
|
||||
;; BNE test_x
|
||||
|
||||
jsr pixel_draw
|
||||
LDX #$20
|
||||
|
@ -30,14 +31,15 @@ end_test_x:
|
|||
LDA #$50
|
||||
STA Y_pos
|
||||
test_y:
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
DEY
|
||||
BNE test_y
|
||||
DEX
|
||||
BNE test_y
|
||||
;;delay
|
||||
; NOP
|
||||
; NOP
|
||||
; NOP
|
||||
; NOP
|
||||
; DEY
|
||||
; BNE test_y
|
||||
; DEX
|
||||
; BNE test_y
|
||||
|
||||
jsr pixel_draw
|
||||
LDX #$20
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
.include "routines/pixel/pixel_test.s"
|
||||
.include "routines/memory/memcpy_test.s"
|
||||
.include "routines/memory/memset_test.s"
|
||||
.include "routines/triangle/triangle_test.s"
|
||||
;.include "routines/triangle/triangle_test.s"
|
||||
exit:
|
||||
JMP exit
|
||||
.include "../wip-duuqnd/public.inc"
|
||||
|
|
Loading…
Add table
Reference in a new issue