wip subtraction method, still not working

This commit is contained in:
Brooke 2025-06-22 22:21:26 -07:00
commit f7082ab371

View file

@ -221,8 +221,12 @@ char_map:
.endrepeat .endrepeat
hex_chars: hex_chars:
digits_zero:
.byte "0123456789abcdef" .byte "0123456789abcdef"
digits_space:
.byte " 123456789abcdef"
aspect: aspect:
; aspect ratio! ; aspect ratio!
; pixels at 320w are 5:6 (narrow) ; pixels at 320w are 5:6 (narrow)
@ -1982,7 +1986,11 @@ update_status:
lda FR0 + 1 lda FR0 + 1
sta temp + 1 sta temp + 1
.macro countdown divisor, string ;jsr IFP
;jsr FASC
;jsr draw_string
.macro countdown divisor, digits
.scope .scope
; count the hours ; count the hours
ldx #0 ldx #0
@ -2003,20 +2011,27 @@ update_status:
inx inx
jmp countdown_loop jmp countdown_loop
countdown_done: countdown_done:
stx FR0 lda digits,x
ldx #0 eor #$80
stx FR0 + 1 sta temp2
jsr IFP lda #.lobyte(temp2)
jsr FASC sta INBUFF
lda #.hibyte(temp2)
sta INBUFF + 1
jsr draw_string jsr draw_string
draw_string_const string
.endscope .endscope
.endmacro .endmacro
draw_string_const str_space draw_string_const str_space
countdown 3600, str_h countdown 36000, digits_space
countdown 60, str_m countdown 3600, digits_zero
countdown 1, str_s draw_string_const str_h
countdown 600, digits_zero
countdown 60, digits_zero
draw_string_const str_m
countdown 10, digits_zero
countdown 1, digits_zero
draw_string_const str_s
skipped: skipped: