Textmode / TMVM

Textmode's Virtual Macaroni: A VM for, er...we'll get back to you.
Other
4 stars 0 forks source link

LMOV encoder assert bugs #27

Closed Boolsheet closed 13 years ago

Boolsheet commented 13 years ago

The error message of the first assert is wrong. And not all parameters are checked.

asm.lua:127 assert(a and b and c, "SRE must be properly qualified: 'SRE R1,R2,RET'")

And I think the last assert has it reversed. LMOV works only with address registers.

asm.lua:135 assert(aa and ba and ca and da, "LMOV only works with absolute registers")

Textmode commented 13 years ago

Two issues, the first (incorrect error message) has been corrected. The second is actually correct (its Direct Vs. Indirect, not Value Vs. Address), and thus wontfix.