News for hackers. Stuff that matters.
Re:DCPU-16 implementation in f# by dkersten on Friday April 06, 2012 @04:04PM (#3808667)
Yes, I think so because branches skip full instructions and instructions may be between 1 and 3 bytes but exactly how many is unknown until the skipped instruction is decoded.
Re:DCPU-16 implementation in f# by MarkSweep on Friday April 06, 2012 @04:42PM (#3808834)
The PC needs to be incremented past the "next words". But it seems odd that a un-executed push instruction would still modify SP.
Re:DCPU-16 implementation in f# by dkersten on Sunday April 08, 2012 @08:17PM (#3815331)
This is true - I actually miss-read your comment and thought you said instruction pointer instead of stack pointer... It seems to be a bug in the implementation (from my reading of the spec, this should not happen).
Re:DCPU-16 implementation in f# by ashleyf on Saturday April 07, 2012 @12:40AM (#3809994)
I believe you're right @MarkSweep. Thanks much for pointing that out! Fixed.