3 ms·
Assembly may be easier, but programming in assembly is a lot more tedious. A simple expression like "y=7*x+5" is at least four instructions, assuming you have
by spc476 7y ago
Assembly may be easier, but programming in assembly is a lot more tedious. A simple expression like "y=7*x+5" is at least four instructions, assuming you have a MUL instruction. And string manipulation is just as bad, if not worse, than in C.
- saagarjha 7y agoTwo on Intel, assuming the values should go in registers: imul rY, rX, 7 add rY, 5
- commandlinefan 7y agoI assume he's including the: mov rX, [...] ... mov [...], rY