strange ASM
Posted: Mon May 30, 2016 4:25 pm
c0.s="456"
c1.s="789"
!mov [v_c1],[v_c0]
Debug c1
c1.s="789"
!mov [v_c1],[v_c0]
Debug c1
In the «Tricks 'n' Tips» subforum, callroot wrote:c0.s="456"
c1.s="789"
!mov [v_c1],[v_c0]
Debug c1
I agree.[u]infratec[/u] wrote:callroot should be renamed to spamroot
You are not wrong.Keya wrote:i didnt think you could "mov [mem], [mem]" in the one go (and this is a CPU thing not a PB thing) - you have to "mov reg, [mem]" then "mov [mem], reg". Please correct me if im wrong!
Keya wrote:i didnt think you could "mov [mem], [mem]" in the one go (and this is a CPU thing not a PB thing) - you have to "mov reg, [mem]" then "mov [mem], reg". Please correct me if im wrong!
Code: Select all
c0.s = " 456 "
c1.s = " 789 "
! mov eax,[v_c0]
! mov [v_c1],eax
debug c1
Code works fine. What's so strange?callroot wrote:Keya wrote:i didnt think you could "mov [mem], [mem]" in the one go (and this is a CPU thing not a PB thing) - you have to "mov reg, [mem]" then "mov [mem], reg". Please correct me if im wrong!Code: Select all
c0.s = " 456 " c1.s = " 789 " ! mov eax,[v_c0] ! mov [v_c1],eax debug c1
! mov [v_c1],[v_c0]Demivec wrote:Code works fine. What's so strange?callroot wrote:Keya wrote:i didnt think you could "mov [mem], [mem]" in the one go (and this is a CPU thing not a PB thing) - you have to "mov reg, [mem]" then "mov [mem], reg". Please correct me if im wrong!Code: Select all
c0.s = " 456 " c1.s = " 789 " ! mov eax,[v_c0] ! mov [v_c1],eax debug c1
That's right and you will never be able to write it this way because asm doesn't support this.callroot wrote:! mov [v_c1],[v_c0]
Can't write this way.