TUM-LRR / Jasmin

Java Assembler Interpreter
GNU General Public License v2.0
65 stars 22 forks source link

support basic arithmetic for operands #5

Open meyerm opened 9 years ago

meyerm commented 9 years ago

Most assemblers allow some basic arithmetic expressions in the operands. Jasmin should support some basic const computations like mov eax,1+2, too.

Benestar commented 8 years ago

Would this also include calculating with labels, eg. add eax, mylabel+8?

meyerm commented 8 years ago

That would be nice. Both label+imm and [label+imm] are possible in regular assembler. Even though I think label+imm could be confusing considering that we seperate code and data address space... But we're open to suggestions.