From: Spiro Trikaliotis (ml-cbmhackers_at_trikaliotis.net)
Date: 2008-10-16 13:27:40
Hello Ruud,
* On Wed, Oct 15, 2008 at 03:09:05PM +0200 ruud.baltissen@apg.nl wrote:
> > Therefore, you should have said, "then, I'll use '>', as well."
>
> In various assemblers, including mine, '>' and '<' are used to point to
> the high byte cq. low byte of a word. This can be used to let a pointer
> in the Zeropage point to a table in ROM. For example:
>
> lda <(Tabel1)
> sta $20
> lda >(Tabel1)
> sta $21
Are you sure you did not intend
lda #<(Tabel1)
and
lda #>(Tabel1)
or, alternatively, even shorter:
lda #<Tabel1
and
lda #>Tabel1
I have never seen your syntax from above - but I must also admit that I
did not have a look in too many different assemblers.
Regards,
Spiro.
--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
Message was sent through the cbm-hackers mailing list
Archive generated by hypermail pre-2.1.8.