flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > ARM64: differences between "ldr w0,label" & "ldr w0,[label]" |
Author |
|
revolution 16 Mar 2023, 16:18
They are the same instruction.
The bracketed version is the programmer friendly version that is less confusing to the reader. The un-bracketed version is how it is defined it officially. |
|||
16 Mar 2023, 16:18 |
|
alorent 16 Mar 2023, 18:41
Thanks revolution!
|
|||
16 Mar 2023, 18:41 |
|
revolution 16 Mar 2023, 19:12
The output binary values can be seen here.
Code: ~ cat ldr.asm processor cpu64_v8 use64 ldr x0,[$] ldr x0,$ ~ fasmarm -s ldr.fas ldr.asm flat assembler for ARM version 1.43 (built on fasm 1.73.02) (2359008 kilobytes memory) 1 passes, 8 bytes. ~ listing -b 4 ldr.fas ldr.lst ~ cat ldr.lst processor cpu64_v8 use64 00000000: 00 00 00 58 ldr x0,[$] 00000004: 00 00 00 58 ldr x0,$ Last edited by revolution on 17 Mar 2023, 19:00; edited 1 time in total |
|||
16 Mar 2023, 19:12 |
|
alorent 17 Mar 2023, 10:19
Great! Good commands for quick check
|
|||
17 Mar 2023, 10:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.