dcpu16
dcpu16 copied to clipboard
Can use () instead of [] as Notch shows in http://i.imgur.com/XIXc4.jpg
I do know that this solution is not nice but adding new class of brackets would cause too much refactoring. So [A) and (A] work too =)
At some point I'm going to have to decide if I'm going to follow all of Notch's syntactic decisions or not (personally I prefer []s to ()s and much prefer [imm, reg] to [imm + reg] though I support both). () support is pretty harmless.
His use of "DAT" and "BOR" also strike me as really weird, but it's probably worth staying compatible with his syntax even if it's weird-looking to me. ^^
I think FASM syntax is the best from x86 assemblers — light and powerful. Why not to imitate it?
And "BOR" is frightening me too. My mind can't decrypt such strange mnemonic in a moment so I stumble every time seeing this instruction.