< 返回版块

Clownsw 发表于 2021-05-09 18:37

Tags:Rust内联汇编

fn main()
{
    let cmd = 0xd1;
    unsafe
        {
            asm!("out 0x64 eax", in("eax") cmd);
        }
}

error: use of unstable library feature 'asm': inline assembly is not stable enough for use and is subject to change

评论区

写评论
Bai-Jinlin 2021-05-09 18:56

下个nightly然后开启feature

#![feature(asm)]
1 共 1 条评论, 1 页