fix(cpu): account for change in stdlib API
This commit is contained in:
parent
344b2856c5
commit
8b7c7fbb1a
|
@ -198,7 +198,7 @@ fn execute(cpu: *Cpu, display: *Display, mem: *[0x1000]u8, instr: Instruction) v
|
||||||
cpu.pc = addr + cpu.v[0];
|
cpu.pc = addr + cpu.v[0];
|
||||||
},
|
},
|
||||||
.RND => |args| {
|
.RND => |args| {
|
||||||
cpu.v[args.x] = prng.random.int(u8) & args.kk;
|
cpu.v[args.x] = prng.random().int(u8) & args.kk;
|
||||||
},
|
},
|
||||||
.DRW => |args| {
|
.DRW => |args| {
|
||||||
const x = args.x;
|
const x = args.x;
|
||||||
|
|
Loading…
Reference in New Issue