Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The implementation is really clean! The mixing of general-purpose registers, special-purpose registers and the stack makes the instruction set a bit weird, though.

For example, instead of using registers, why not have OR pick values off the stack like ADD, or vice versa? Why use EAX for the conditional jump instructions when you could look at the top of the stack? Why have REM when you can just MOV from ERX?



You know, I was thinking about that this morning actually. All great suggestions! If you could make an issue, that would be fantastic.


I just changed OR/XOR/AND to be stack based, and good idea for the jump instructions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: