diff options
Diffstat (limited to 'src/debugcon.zig')
| -rw-r--r-- | src/debugcon.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/debugcon.zig b/src/debugcon.zig index 6014637..e721a4d 100644 --- a/src/debugcon.zig +++ b/src/debugcon.zig @@ -14,10 +14,7 @@ pub fn outb(port: u16, data: u8) void { } pub fn write(data: []const u8) void { - const len: u8 = @intCast(data.len & 0xFF); - outb(0xe9, 0x30 + len); - for (0..len) |i| { - outb(0xe9, 0x30); - outb(0xe9, data[i]); + for (data) |x| { + outb(0xe9, x); } } |
