Below I am using a mem:inspect
word. It is not defined here, but it has the following signature: :mem:inspect (aa-) ... ;
.
The following example would be nice, but in the real world, it causes a segfault:
#100 mem:alloc 'memory double:const
memory mem:inspect
memory #1 + mem:inspect
memory #2 + mem:inspect
memory #3 + mem:inspect
The example below works, but the API is less than ideal:
#100 mem:alloc 'memory double:const
memory mem:inspect
memory swap #1 + swap mem:inspect
memory swap #2 + swap mem:inspect
memory swap #3 + swap mem:inspect
I have the MSW/LSW swapped on the mem:
device words, I think.