I wanted it to be filling up my screen so that I could see it pixel by pixel but instead it loads a few seconds and then it shows me this
Can anyone tell me how to fix that line in there and how to update my graph everytime I add a pixel? This is my code:
#include "ti83plus.inc"
.org $9D93
.db $BB,$6D ; AsmPrgm
;.define bcall(label) rst $28 \ .dw label
start:
ld c,00h ;y
outer:
inc c
Ld b,00h ;x
inner:
inc b
;__________pixel-on(b,c)_______________
push bc ;store values of b and c for the loops
ld h,00h
ld l,b
ld d,h
ld e,l
add hl,hl
add hl,de
add hl,hl
add hl,hl ;b*12
ld d,00h
srl c
rl d
srl c
rl d
srl c
rl d ;c is integer part of c/8 and d is the rest of the division
push de ;store the d register
ld d,00h
ld e,c
add hl,de ;hl=b*12 + c/8
ld d,93h
ld e,40h
add hl,de ;add hl,9340h ;putSScreen
pop de ;recall d register
push de ;store it again
rlc (hl) ;CB06
dec d ;15
jr nz,$-3 ;shift bit to be set to the least significant bit
set 0,(hl) ;set that bit
pop de ;recall d register again
rrc (hl) ;CB0E
dec d ;15 ;rotate in other direction to undo previous shifts
jr nz,$-3
pop bc ; recall values of b and c
;__________End pixel-on(b,c)_______________
ld a,b
cp 3Eh ;if x!=94 then continue inner loop else continue outer loop.
jp nz,inner
ld a,c
cp 5Eh ;if y!=62 then continue outer loop else quit
jp nz,outer
ret