added more extensive testing on circle draw and found a bug that depends on the circle x-pos
This commit is contained in:
parent
5f1558ce22
commit
e0314e8530
4 changed files with 48 additions and 6 deletions
|
@ -2,8 +2,6 @@
|
|||
|
||||
.proc circle
|
||||
.include "circle.inc"
|
||||
;; We use the algorithm jerkos method
|
||||
;; git
|
||||
|
||||
;; X_rel = radius (share the same address)
|
||||
|
||||
|
|
44
wip-hugo/routines/circle/circle_test_position.s
Normal file
44
wip-hugo/routines/circle/circle_test_position.s
Normal file
|
@ -0,0 +1,44 @@
|
|||
.scope circle_test_position_x
|
||||
.include "circle.inc"
|
||||
|
||||
LDA #$50
|
||||
STA $ED
|
||||
LDA #$50
|
||||
STA $EE
|
||||
LDA #$08
|
||||
STA $EF
|
||||
|
||||
|
||||
|
||||
LDX #$ff
|
||||
LDY #$ff
|
||||
hihi:
|
||||
NOP
|
||||
NOP
|
||||
DEX
|
||||
BNE hihi
|
||||
DEY
|
||||
BNE hihi
|
||||
|
||||
INC $ED
|
||||
|
||||
LDA $ED
|
||||
STA X_pos
|
||||
LDA $EE
|
||||
STA Y_pos
|
||||
LDA $EF
|
||||
STA radius
|
||||
|
||||
VIC_bank = $4000
|
||||
Mov_16 A_start, A_start + 1, #<VIC_bank, #>VIC_bank
|
||||
Mov_16 length, length + 1, #<$1f40, #>$1f40
|
||||
LDA #$00
|
||||
jsr memset
|
||||
|
||||
JSR circle
|
||||
|
||||
LDX #$ff
|
||||
LDY #$ff
|
||||
|
||||
jmp hihi
|
||||
.endscope
|
|
@ -1,10 +1,10 @@
|
|||
.scope circle_test
|
||||
.scope circle_test_size
|
||||
.include "circle.inc"
|
||||
|
||||
LDA #$50
|
||||
STA X_pos
|
||||
STA Y_pos
|
||||
LDA #$00
|
||||
LDA #$01
|
||||
STA $EF
|
||||
|
||||
|
|
@ -11,8 +11,8 @@
|
|||
;.include "routines/arithmatic/mult_test.s"
|
||||
;.include "routines/arithmatic/div_test.s"
|
||||
;.include "routines/circle/circle_test.s"
|
||||
.include "routines/circle/circle_test_extensive.s"
|
||||
|
||||
;.include "routines/circle/circle_test_size.s"
|
||||
.include "routines/circle/circle_test_position.s"
|
||||
;.include "routines/line/line_test.s"
|
||||
;.include "routines/text/char_draw_test.s"
|
||||
;.include "routines/pixel/pixel_test.s"
|
||||
|
|
Loading…
Add table
Reference in a new issue