Skip to content

Commit

Permalink
update asm code to working state
Browse files Browse the repository at this point in the history
  • Loading branch information
Hpmason authored and trha committed Jan 13, 2023
1 parent e5fc8ea commit fa97735
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/arch/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ mod tests {
asm!(
"
xor eax, eax
je ret5
je 5f
mov eax, 2
jmp done
ret5:
jmp 1f
5:
mov eax, 5
done:
1:
ret",
options(noreturn)
);
Expand Down Expand Up @@ -103,11 +103,11 @@ mod tests {
unsafe extern "C" fn external_loop() -> i32 {
asm!(
"
loop dest
loop 1f
nop
nop
nop
dest:",
1:",
options(noreturn)
);
}
Expand Down

0 comments on commit fa97735

Please sign in to comment.