[colorforth] word addressing of @ !
- Subject: [colorforth] word addressing of @ !
- From: Mark Slicker <maslicke@xxxxxxxxxxx>
- Date: Tue, 10 Jun 2003 16:06:22 -0400 (EDT)
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