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