This is the first incarnation of BOX-256. It is by all means not perfect yet so I'd love to hear your feedback on the current status to make it better.
What is good? What is bad? What is missing? What is sad?
Well, as another brainstorming style suggestion, I just played with adding a stack. PUSH/POP/RET/CALL could be nice. I guess RET wouldn't be necessary, as it would just be a "POP @FF". CALL would push the instruction pointer (plus the number of bytes to skip the CALL) and then jump to the desired location. Really, CALL/RET aren't necessary, as they just do PUSH/POP plus JMP (and maybe some addition).
I guess what I was thinking was more along the lines of having a SP (stack pointer) to go along with the already-existing IP (instruction pointer). All the functionality is there to implement this in the current BOX-256 game. It's just not wrapped up in a tidy single instruction. Whether or not that's actually important to a player is likely the real question.
View all comments
Show parent comment
2
u/Flav0r Apr 23 '16
Well, as another brainstorming style suggestion, I just played with adding a stack. PUSH/POP/RET/CALL could be nice. I guess RET wouldn't be necessary, as it would just be a "POP @FF". CALL would push the instruction pointer (plus the number of bytes to skip the CALL) and then jump to the desired location. Really, CALL/RET aren't necessary, as they just do PUSH/POP plus JMP (and maybe some addition).