doc: update iasm sample to use $-prefixed label references
This commit is contained in:
@@ -156,33 +156,33 @@
|
||||
|
||||
ldr x2, [pool, #4]
|
||||
c.eq x1, x2
|
||||
br.t L0001
|
||||
br.t $L0001
|
||||
|
||||
ldr x2, [pool, #5]
|
||||
c.eq x1, x2
|
||||
br.t L0002
|
||||
br.t $L0002
|
||||
|
||||
ldr x2, [pool, #6]
|
||||
c.eq x1, x2
|
||||
br.t L0003
|
||||
br.t $L0003
|
||||
|
||||
ldr x0, #0
|
||||
str x0, [self, #1]
|
||||
|
||||
br L0004
|
||||
br $L0004
|
||||
|
||||
L0001: str x0, [self, #2]
|
||||
br L0004
|
||||
br $L0004
|
||||
|
||||
L0002: ldr x3, #12
|
||||
div x3, x0, x3
|
||||
str x3, [self, #2]
|
||||
br L0004
|
||||
br $L0004
|
||||
|
||||
L0003: ldr x3, #365
|
||||
div x3, x0, x3
|
||||
str x3, [self, #2]
|
||||
br L0004
|
||||
br $L0004
|
||||
L0004:
|
||||
ret.n
|
||||
@end
|
||||
@@ -192,15 +192,15 @@ L0004:
|
||||
|
||||
ldr x2, [pool, #4] ; x2 = #years
|
||||
c.eq x1, x2
|
||||
br.t L0001 ; [jump] if units == #years
|
||||
br.t $L0001 ; [jump] if units == #years
|
||||
|
||||
ldr x2, [pool, #5] ; x2 = #months
|
||||
c.eq x1, x2
|
||||
br.t L0002 ; [jump] if units == #years
|
||||
br.t $L0002 ; [jump] if units == #years
|
||||
|
||||
ldr x2, [pool, #6] ; x2 = #days
|
||||
c.eq x1, x2
|
||||
br.t L0003 ; [jump] if units == #days
|
||||
br.t $L0003 ; [jump] if units == #days
|
||||
|
||||
ldr x0, #0 ; else
|
||||
ret ; return 0
|
||||
|
||||
Reference in New Issue
Block a user