A83: Re: Registers


[Prev][Next][Index][Thread]

A83: Re: Registers




This will set the coordinates to row 0, column 0 (upper left hand corner):
ld hl,$0000
ld (currow),hl

This will set the coordinates to row 7, column 15 (bottom right hand corner):
ld hl,$0715
ld (currow),hl

This will change the row to 4:
ld a,4
ld (currow),a

This will change the column to 8:
ld a,8
ld (curcol),a

To "move" a letter across the screen, you could do something like this:
1) initialize coordinates
2) draw character to screen
3) get coord you want to change into a
4) change a however you want
5) store coordinate back into memory
6) go to 2

I hope that answers your questions.

----- Original Message ----- 
From: "J. D." <grndz3r0@yahoo.com>
To: "Assembly 83" <assembly-83@lists.ticalc.org>
Sent: Wednesday, February 09, 2000 21:46
Subject: A83: Registers

Im trying to write a program where I move a letter
over or up or down, but I cant figure out how to
change the hl so that it will move the currow or
curcol. Can someone please help me



References: