diff --git a/host/src/routines/line/line.s b/host/src/routines/line/line.s index 89a50de..3b837d2 100644 --- a/host/src/routines/line/line.s +++ b/host/src/routines/line/line.s @@ -11,7 +11,7 @@ STA Y_pos do_not_fix_y_pos: LDA #$C8 - CMP Y_pos ;y_max = $C8 + CMP Y_end ;y_max = $C8 BCS do_not_fix_y_end STA Y_end do_not_fix_y_end: diff --git a/host/src/routines/pixel/pixel_draw.s b/host/src/routines/pixel/pixel_draw.s index c4192a7..1d8068e 100755 --- a/host/src/routines/pixel/pixel_draw.s +++ b/host/src/routines/pixel/pixel_draw.s @@ -1,9 +1,18 @@ ;;; -*- Mode: asm; indent-tabs-mode: t; tab-width: 8 -*- ;;Screen print. Draws a pixel at a specified position. -.proc pixel_draw; user-procedure :clobbers (A X Y) :clobbers-arguments 0 +.proc pixel_draw; user-procedure :clobbers (A X Y) :clobbers-arguments 2 .include "pixel.inc" + +fix_to_big_y_pos + LDA #$C8 + CMP Y_pos ;y_max = $C8 + BCS fix_end + STA Y_pos +fix_end: + + ;;FIND position to write byte_to_paint (btp_mem_pos) ;; + + + + + > X ;; +