blob: 1723e1cc1cb095da734f73c75499cc93f00bc1c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#![feature(prelude_import)]
#![no_std]
#![feature(asm)]
#[prelude_import]
use ::std::prelude::v1::*;
#[macro_use]
extern crate std;
// pretty-mode:expanded
// pp-exact:asm.pp
pub fn main() {
let a: i32;
let mut b = 4i32;
unsafe {
asm!("");
asm!("");
asm!("", options(nomem, nostack));
asm!("{0}", in(reg) 4);
asm!("{0}", out(reg) a);
asm!("{0}", inout(reg) b);
asm!("{0} {1}", out(reg) _, inlateout(reg) b => _);
asm!("", out("al") _, lateout("rbx") _);
}
}
|