push and pop
This commit is contained in:
@@ -22,6 +22,8 @@ pub fn run() {
|
||||
})]);
|
||||
let entry = program.func([BInstr::Asm(Asm {
|
||||
instrs: vec![
|
||||
mov(di, 39),
|
||||
push(rdi),
|
||||
mov(ax, 1),
|
||||
mov(di, 1),
|
||||
lea(rsi, text_sym),
|
||||
@@ -29,7 +31,7 @@ pub fn run() {
|
||||
Instr::Syscall,
|
||||
Instr::Call(hello2),
|
||||
mov(ax, 0x3c),
|
||||
mov(di, 39),
|
||||
pop(rdi),
|
||||
Instr::Syscall,
|
||||
],
|
||||
})]);
|
||||
|
||||
Reference in New Issue
Block a user