[OpenBIOS] OpenBIOS Array implementation
Programmingkid
programmingkidx at gmail.com
Fri Sep 14 19:27:54 CEST 2012
You commented on my local variable code a while back. I have remade the Array implementation it uses. Let me know what you think.
\ ****** new version *********
: ARRAY ( cellCount -- )
\ Compile-time behavior
CREATE CELLS ALLOT ( cellCount -- ) \ Creates and initializes the instance
\ Run-time behavior
DOES> ( index addr )
SWAP CELLS + ( index addr -- addr1 ) \ Calculates address to return
;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20120914/bc91c7b5/attachment.html>
More information about the OpenBIOS
mailing list