Add extended testing of pixel_draw and fix a pixel_draw bugg (error of max 8px)
This commit is contained in:
parent
d691d692b9
commit
846d792aee
3 changed files with 76 additions and 35 deletions
|
@ -1,5 +1,5 @@
|
|||
binary_factor:
|
||||
.byte %00000001, %00000010, %00000100, %00001000, %00010000, %00100000, %01000000, %10000000
|
||||
.byte %10000000, %01000000, %00100000, %00010000, %00001000, %00000100, %00000010, %00000001
|
||||
|
||||
Bitmap = $4000
|
||||
;;This is used by pixel_draw! look at it for more detail
|
||||
|
|
|
@ -1,9 +1,50 @@
|
|||
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
||||
.scope pixel_test
|
||||
.include "pixel.inc"
|
||||
LDA #$40
|
||||
|
||||
LDA #$50
|
||||
STA X_pos
|
||||
LDA #$40
|
||||
LDA #$50
|
||||
STA Y_pos
|
||||
|
||||
test_x:
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
DEY
|
||||
BNE test_x
|
||||
DEX
|
||||
BNE test_x
|
||||
|
||||
jsr pixel_draw
|
||||
LDX #$20
|
||||
LDY #$ff
|
||||
|
||||
DEC X_pos
|
||||
BNE test_x
|
||||
end_test_x:
|
||||
|
||||
LDA #$50
|
||||
STA X_pos
|
||||
LDA #$50
|
||||
STA Y_pos
|
||||
test_y:
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
NOP
|
||||
DEY
|
||||
BNE test_y
|
||||
DEX
|
||||
BNE test_y
|
||||
|
||||
jsr pixel_draw
|
||||
LDX #$20
|
||||
LDY #$ff
|
||||
|
||||
DEC Y_pos
|
||||
BNE test_y
|
||||
end_test_y:
|
||||
|
||||
.endscope
|
||||
|
|
64
wip-hugo/source.s
Executable file → Normal file
64
wip-hugo/source.s
Executable file → Normal file
|
@ -1,32 +1,32 @@
|
|||
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
||||
.debuginfo + ; Generate debug info
|
||||
;;Macros
|
||||
.include "macros/16aritmatic.s"
|
||||
;;inc files
|
||||
.include "routines/memory/mem.inc"
|
||||
;;Code to run
|
||||
.include "STARTUP.s"
|
||||
;.include "dubbel_buffer/raster_irqs.s"
|
||||
|
||||
;.include "routines/arithmatic/mult_test.s"
|
||||
;.include "routines/arithmatic/div_test.s"
|
||||
.include "routines/circle/circle_test.s"
|
||||
;.include "routines/line/line_test.s"
|
||||
;.include "routines/text/char_draw_test.s"
|
||||
;.include "routines/pixel/pixel_test.s"
|
||||
;.include "routines/memory/memcpy_test.s"
|
||||
;.include "routines/memory/memset_test.s"
|
||||
;.include "routines/triangle/triangle_test.s"
|
||||
exit:
|
||||
JMP exit
|
||||
.include "../wip-duuqnd/public.inc"
|
||||
.include "routines/line/line.s"
|
||||
.include "routines/circle/circle.s"
|
||||
.include "routines/triangle/triangle.s"
|
||||
.include "routines/pixel/pixel_draw.s"
|
||||
.include "routines/text/char_draw.s"
|
||||
.include "routines/memory/memset.s"
|
||||
.include "routines/memory/memcpy.s"
|
||||
.include "routines/arithmatic/mult.s"
|
||||
.include "routines/arithmatic/div.s"
|
||||
.include "END.s"
|
||||
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
||||
.debuginfo + ; Generate debug info
|
||||
;;Macros
|
||||
.include "macros/16aritmatic.s"
|
||||
;;inc files
|
||||
.include "routines/memory/mem.inc"
|
||||
;;Code to run
|
||||
.include "STARTUP.s"
|
||||
;.include "dubbel_buffer/raster_irqs.s"
|
||||
|
||||
;.include "routines/arithmatic/mult_test.s"
|
||||
;.include "routines/arithmatic/div_test.s"
|
||||
.include "routines/circle/circle_test.s"
|
||||
;.include "routines/line/line_test.s"
|
||||
;.include "routines/text/char_draw_test.s"
|
||||
;.include "routines/pixel/pixel_test.s"
|
||||
;.include "routines/memory/memcpy_test.s"
|
||||
;.include "routines/memory/memset_test.s"
|
||||
;.include "routines/triangle/triangle_test.s"
|
||||
exit:
|
||||
JMP exit
|
||||
.include "../wip-duuqnd/public.inc"
|
||||
.include "routines/line/line.s"
|
||||
.include "routines/circle/circle.s"
|
||||
.include "routines/triangle/triangle.s"
|
||||
.include "routines/pixel/pixel_draw.s"
|
||||
.include "routines/text/char_draw.s"
|
||||
.include "routines/memory/memset.s"
|
||||
.include "routines/memory/memcpy.s"
|
||||
.include "routines/arithmatic/mult.s"
|
||||
.include "routines/arithmatic/div.s"
|
||||
.include "END.s"
|
||||
|
|
Loading…
Add table
Reference in a new issue