Bare metal programming in PureBasic, for experienced users
- Posts: 526
- Joined: Thu May 30, 2013 4:39 pm
How can I use the content #myValue instead of the value 8 in this example?
- Posts: 3071
- Joined: Fri May 12, 2006 6:51 pm
- Location: Germany
Constants are replaced at compile time from pb-code to asm-code.
Thus these constants are not stored as named constants in the asm-code.
Update with asm constants
Code: Select all
#myValue = 8
add rax, #myValue
! myValue equ 16
!add rax, myValue