Hey guys.I am a beginner. How can i load the value from memory to any Register.
https://ibb.co/j9N2jMd
How to load from memory
Re: How to load from memory
Not just any registers may be taken. See PB-Help Assembler
What are you going to do?
What are you going to do?
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
- New User
- Posts: 2
- Joined: Sat Jul 16, 2022 3:33 pm
Re: How to load from memory
I want to learn to move values from memory to register and vise versa because i want to add numbers.
What do you mean with PB-Help Assembler.
What do you mean with PB-Help Assembler.
Re: How to load from memory
There are also the memory commands to read from and write to memory. ( click the memory commands link)
-
- Enthusiast
- Posts: 581
- Joined: Wed Sep 25, 2019 10:18 am
Re: How to load from memory
Code: Select all
; x64 ASM Register add - only ASM-Backend
Define result.q
EnableASM
Mov rax,[l_a] ; Load $11 in Register rax.
Mov rbx,[l_b] ; Load $4700 in Register rbx.
Add rax,rbx ; Add $4700 to $11
Mov [v_result],rax ; Store $4711 in result.
Debug Hex(result)
End
a: ; Memory with two 64 bit values:
! dq $11
b:
! dq $4700
; 4711