Add read_pixel and clear_pixel
This commit is contained in:
parent
cf56f3c11c
commit
baab639b4f
2 changed files with 18 additions and 0 deletions
17
host/src/routines/pixel/misc_pixel.s
Normal file
17
host/src/routines/pixel/misc_pixel.s
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*-
|
||||||
|
|
||||||
|
.proc read_pixel ; user-procedure
|
||||||
|
.include "pixel.inc"
|
||||||
|
jsr pixel_calc
|
||||||
|
and (btp_mem_pos), Y
|
||||||
|
rts
|
||||||
|
.endproc
|
||||||
|
|
||||||
|
.proc clear_pixel ; user-procedure
|
||||||
|
.include "pixel.inc"
|
||||||
|
jsr pixel_calc
|
||||||
|
eor #$ff
|
||||||
|
and (btp_mem_pos), Y
|
||||||
|
sta (btp_mem_pos), Y
|
||||||
|
rts
|
||||||
|
.endproc
|
|
@ -36,6 +36,7 @@ JMP exit
|
||||||
.include "routines/triangle/triangle.s"
|
.include "routines/triangle/triangle.s"
|
||||||
.include "routines/pixel/pixel_draw.s"
|
.include "routines/pixel/pixel_draw.s"
|
||||||
.include "routines/pixel/pixel_calc.s"
|
.include "routines/pixel/pixel_calc.s"
|
||||||
|
.include "routines/pixel/misc_pixel.s"
|
||||||
.include "routines/text/char_draw.s"
|
.include "routines/text/char_draw.s"
|
||||||
.include "routines/memory/memset.s"
|
.include "routines/memory/memset.s"
|
||||||
.include "routines/memory/clear_screen.s"
|
.include "routines/memory/clear_screen.s"
|
||||||
|
|
Loading…
Add table
Reference in a new issue