idea (doesn't compile)
This commit is contained in:
@@ -91,21 +91,17 @@ fn windows() -> Result<(), CompilerMsg> {
|
||||
Instr::Sub,
|
||||
// stdout
|
||||
mov(ecx, -11)?,
|
||||
Instr::Callm(get_std_handle),
|
||||
Instr::CallM(get_std_handle),
|
||||
// write
|
||||
mov(rcx, rax)?,
|
||||
lea(rdx, text_sym),
|
||||
mov(r8d, text.len() as u64)?,
|
||||
lea(r9, written),
|
||||
Instr::Movm {
|
||||
reg: rsp,
|
||||
offset: 0x20,
|
||||
val: 0,
|
||||
},
|
||||
Instr::Callm(write_file),
|
||||
mov(mem(rsp, 0x20)?, 0)?,
|
||||
Instr::CallM(write_file),
|
||||
// exit
|
||||
mov(ecx, 39)?,
|
||||
Instr::Callm(exit_process),
|
||||
Instr::CallM(exit_process),
|
||||
],
|
||||
})],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user