Skip to content

Commit 78bf5c9

Browse files
committed
Drop AT&T syntax from inline asm
1 parent 39ee966 commit 78bf5c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/asm.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn delay(_n: u32) {
3838
() => unsafe {
3939
llvm_asm!("1:
4040
nop
41-
subs $0, $$1
41+
subs $0, #1
4242
bne.n 1b"
4343
: "+r"(_n / 4 + 1)
4444
:
@@ -81,7 +81,6 @@ pub fn nop() {
8181
}
8282
}
8383

84-
8584
/// Generate an Undefined Instruction exception.
8685
///
8786
/// Can be used as a stable alternative to `core::intrinsics::abort`.

0 commit comments

Comments
 (0)