Skip to main content
marco32
Associate III
October 30, 2003
Question

How using the 16-bit adressing RAM

  • October 30, 2003
  • 2 replies
  • 567 views
Posted on October 30, 2003 at 05:58

How using the 16-bit adressing RAM

This topic has been closed for replies.

2 replies

marco32
marco32Author
Associate III
October 29, 2003
Posted on October 29, 2003 at 09:53

I use the ST72C334 with 512 bytes RAM.

The assembler gives error when i using the 16 bytes adressing RAM.

Error 84: Byte Size label has val > 255! (need WORDS?) '.buffout'

When i intialise buffout as words, i get other errors

Error 54: Can't match Addressing mode ' CLR buffout'

So, how can i use the 16 bit adressing RAM like a 8 bit adressing RAM?

Moppie
sjo
Associate III
October 30, 2003
Posted on October 30, 2003 at 05:58

If you look at the info on clr function, it only works for short addressing.

The way to clear the variable would be:

clr A

ld buffout, A

Not all functions support the long addressing mode.

Regards

sjo