A85: putting pixels
[Prev][Next][Index][Thread]
A85: putting pixels
i'm using usgard and i'm new to asm. i have a small putpixel program to get
the hang of putting pixels. here it is but it's not working because i don't
see the pixels showing up on the screen. it is recognizing the key press to
exit but i just can't see dots. if anyone sees the problem, can you help me
out?
jimi
here it is:
#include "usgard.h"
.org 0
.db "put pixels",0
initialize:
ld a,4 ; set TI-85 to graphics mode.
out (5),a
call CLEARLCD
ld bc,$1010
call putpixel ; b = x coordinate, c = y coordinate
ld bc,$2020
call putpixel
ld bc,$0101
call putpixel
wait:
call GET_KEY
or a
jr z,wait
ret
putpixel:
call FIND_PIXEL
ld de,$FC00
add hl,de
or (hl)
ld (hl),a
ret
.end