#Zig assuming an integer literal (8) is a u3, and then erroring.
1 messages · Page 1 of 1 (latest)
youre not allowed to shift an int by more bits than it has and youre doing u8 << 8
(@as(u16, memory[pc]) << 8)
or replace the whole thing with opcode = std.mem.readInt(u16, memory[pc..][0..2], .big)
what does the .big do?
reads it as big endian