Minecoprocessors

Minecoprocessors

183k Downloads

Only allow arithmetic instructions to use the general purpose registers

frodare opened this issue ยท 3 comments

commented
commented

This would be more realistic, but maybe just add annoyance for people learning assembly?

For instance, this example circuit would need to additional lines.

mov ports, 0010b
start:
cmp pb, 0 ;FAIL
jz start
mov pf, 1
mov pf, 0
mov pf, 1
mov pf, 0
wait:
cmp pb, 1 ;FAIL
jz wait
jmp start
commented

I'm personally not a fan of this idea, due to it making programs more complicated as you mentioned, plus because CISC architectures are a thing, so this doesn't really make it more realistic.

commented

Thanks for the input, I was torn on this one. That reminds me I totally forgot about memory addressing, which would be a better use of time.