next
WORD p_2get, '2@',fasm
- ;; ( addr -- v1 v2 )
- ;; Load the cell pair {x2,x1} from address addr.
+ ;; ( addr -- v2 v1 )
+ ;; Load the cell pair {v1,v2} from address addr.
pop rax
- push qword [rax+8]
- push qword [rax]
+ push qword [rax+8] ; v2
+ push qword [rax] ; v1
next
- WORD p_2put, '!',fasm
- ;; ( v1 v2 addr -- )
- ;; Store value pair {v2,v1} at address addr.
+ WORD p_2put, '2!',fasm
+ ;; ( v2 v1 addr -- )
+ ;; Store value pair {v1,v2} at address addr.
pop rax
pop rbx
- mov qword [rax], rbx
+ mov qword [rax], rbx ; v1
pop rbx
- mov qword [rax+8], rbx
+ mov qword [rax+8], rbx ; v2
next
WORD p_erase, 'ERASE',fasm