fix(cpu): account for change in stdlib API

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-11-13 12:35:09 -06:00
parent 344b2856c5
commit 8b7c7fbb1a
1 changed files with 1 additions and 1 deletions

View File

@ -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;