ToroCraft / Minecoprocessors

Increase your redstone possibilities and learn assembly programming at the same time with the Minecoprocessors Minecraft Mod!
https://minecraft.curseforge.com/projects/minecoprocessors
GNU General Public License v3.0
33 stars 10 forks source link

Only allow arithmetic instructions to use the general purpose registers #32

Closed frodare closed 7 years ago

frodare commented 7 years ago

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
josephcsible commented 7 years ago

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.

frodare commented 7 years ago

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.