From 46169f8c6f226e074b46c08eb1732f31b9a1cc1a Mon Sep 17 00:00:00 2001 From: Lynn Leichtle Date: Wed, 18 Sep 2024 19:34:47 +0200 Subject: [PATCH] not sure why i misnamed the prompt --- src/main.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index c45a7f6..7647250 100644 --- a/src/main.zig +++ b/src/main.zig @@ -43,7 +43,7 @@ pub fn main() !void { , .{}); var buffer: [256]u8 = undefined; while (true) { - modeLine(&cpu, &memory); + prompt(&cpu, &memory); const line = try input.readUntilDelimiterOrEof(&buffer, '\n'); const clean = std.mem.trim(u8, line.?, " \n\r"); var it = std.mem.splitSequence(u8, clean, " "); @@ -64,7 +64,7 @@ pub fn main() !void { _ = try output.writeAll("\x1b[?25h"); } -fn modeLine(cpu: *cpu_.Cpu, memory: *mem.Memory) void { +fn prompt(cpu: *cpu_.Cpu, memory: *mem.Memory) void { _ = memory; std.debug.print( \\