idea (doesn't compile)

This commit is contained in:
2026-06-11 17:39:44 -04:00
parent ddf63ad817
commit 91f5db6950
7 changed files with 349 additions and 195 deletions
+4 -8
View File
@@ -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),
],
})],
);