X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=memory.asm;h=a20c438971de084a45e52219c153a79e9a556753;hb=6234f75b32f6113896d6b15c79fb29d5c7ccb79c;hp=eb84af7feb42e98616bdfb6e9f01d2e1a5d47333;hpb=0a436d5323363af19679ca0a1795b996dc886cfa;p=rrq%2Frrqforth.git diff --git a/memory.asm b/memory.asm index eb84af7..a20c438 100644 --- a/memory.asm +++ b/memory.asm @@ -70,9 +70,9 @@ ;; ( addr -- v ) ;; Load the (unsigned) byte v from address addr. pop rax - mov bl,[rax] - push 0 - mov [rsp],bl + xor rbx,rbx + mov bl,byte [rax] + push rbx next WORD p_Cput, 'C!',fasm @@ -87,9 +87,9 @@ ;; ( addr -- v ) ;; Load the (unsigned) double-byte v from address addr. pop rax - mov bx,[rax] - push 0 - mov word [rsp],bx + xor rbx,rbx + mov bx,word [rax] + push rbx next WORD p_Wput, 'W!',fasm @@ -104,9 +104,9 @@ ;; ( addr -- v ) ;; Load the (unsigned) double-byte v from address addr. pop rax - mov ebx,[rax] - push 0 - mov dword [rsp],ebx + xor rbx,rbx + mov ebx,dword [rax] + push rbx next WORD p_Dput, 'D!',fasm @@ -161,7 +161,7 @@ p_erase_last: ;; Add n to the value at addr. pop rbx pop rax - add [rax],rbx + add qword [rax],rbx next WORD p_shift_left, '<<',fasm