home .. forth .. colorforth mail list archive ..

[colorforth] word addressing of @ !


I apreciate guidance on this issue. I'm porting colorForth to the arm. It
is byte addressed, however does not have the exact addressing forms of the
pentium. To maintain word adressing I have a few options:

(1) load [base + scaled index]

(2)
shift left base by 2
load [base]

base and index are registers in the rather large 16 register file. (1)
seems better than (2) even though it requires a dedicated base register.
Alternatively if I didn't care about portability or the user I could just
use word addressing. I don't have extensive experience in Forth so I worry
about this second aproach making code hard to maintain.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com