Jump to content

Pointers and references: Difference between revisions

(added standard ml)
Line 306:
10 cells + \ adds 10 cells
aligned \ rounds the address up to the next cell
 
An contiguous block of memory may be named with CREATE and allocated with ALLOT.
create array 20 cells allot
 
As an example, here is some code to add together an array of cells, expanded and commented:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.