dcpu16 icon indicating copy to clipboard operation
dcpu16 copied to clipboard

Can use () instead of [] as Notch shows in http://i.imgur.com/XIXc4.jpg

Open rayslava opened this issue 13 years ago • 2 comments

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 =)

rayslava avatar Apr 06 '12 04:04 rayslava

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. ^^

swetland avatar Apr 06 '12 09:04 swetland

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.

rayslava avatar Apr 06 '12 10:04 rayslava