Add read_pixel and clear_pixel

This commit is contained in:
John Lorentzson 2025-07-30 23:48:32 +02:00
parent cf56f3c11c
commit baab639b4f
2 changed files with 18 additions and 0 deletions

View 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

View file

@ -36,6 +36,7 @@ JMP exit
.include "routines/triangle/triangle.s"
.include "routines/pixel/pixel_draw.s"
.include "routines/pixel/pixel_calc.s"
.include "routines/pixel/misc_pixel.s"
.include "routines/text/char_draw.s"
.include "routines/memory/memset.s"
.include "routines/memory/clear_screen.s"