From 0e18a5cdb8c9f665493151ccb650595583e1ccb4 Mon Sep 17 00:00:00 2001 From: MCorange99 Date: Wed, 27 Mar 2024 11:45:16 +0200 Subject: [PATCH] fixed wrong generated comment --- src/compiler/x86_64_linux_nasm/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/x86_64_linux_nasm/mod.rs b/src/compiler/x86_64_linux_nasm/mod.rs index 4932d7f..aec1169 100644 --- a/src/compiler/x86_64_linux_nasm/mod.rs +++ b/src/compiler/x86_64_linux_nasm/mod.rs @@ -203,7 +203,7 @@ impl X86_64LinuxNasmCompiler { writeln!(fd, " mov dword[rax], ebx")?; }, InstructionType::Read64 => { - writeln!(fd, " pop rax ; READ 32")?; + writeln!(fd, " pop rax ; READ 64")?; writeln!(fd, " xor rbx, rbx")?; writeln!(fd, " mov rbx, qword [rax]")?; writeln!(fd, " push rbx")?;