insou22 / mipsy

Education-focused MIPS Emulator written in Rust.
87 stars 13 forks source link

config to remove $gp, $k0, $k1 for students in cs1521 #260

Closed SpanishPear closed 2 years ago

SpanishPear commented 2 years ago

Welp, since I can't teach today thought I'd do this instead

SpanishPear commented 2 years ago

I think the exact behaviour that Andrew was after was to hide any register not modified after the main: label

In theory that's what "used registers" already does, except for the whole program, not specifically "after main".

Doing all regs modified "before main" I think would be a lot trickier, as you'd have to bind register state to pc and you'd have to add a level of communication between the worker and main thread