flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 22 Jun 2010, 19:39
fasm does not perform any kind of validation on prefixes, things like "lock fs rep xor eax, eax" are accepted and interpreted in the same way like this:
Code: lock
fs
rep
xor eax, eax BTW, I think you have your prefixes wrong, F3 is for REP and REPE/REPZ, and F2 for REPNE/REPNZ |
|||
![]() |
|
baldr 22 Jun 2010, 20:00
LocoDelAssembly wrote: fasm does not perform any kind of validation on prefixes… |
|||
![]() |
|
LocoDelAssembly 22 Jun 2010, 20:49
I don't know, but I'm sure it is not a bug as I understand it as part of fasm's syntax. However, since you're allowed to insert prefixes as instructions (like DOS's Debug program), maybe it should and also ensure the instruction size is not exceeding the limit by introducing too many prefixes (not taking into account previous assembled lines that may have left prefixes with no instruction at the end).
|
|||
![]() |
|
b1528932 22 Jun 2010, 21:17
ok ur right
its very confusing, many mnemonics may correspont to 1 opcode, and many opcodes may correspont to 1 mniemonc. ehh... |
|||
![]() |
|
baldr 22 Jun 2010, 21:39
LocoDelAssembly wrote: However, since you're allowed to insert prefixes as instructions (like DOS's Debug program), maybe it should and also ensure the instruction size is not exceeding the limit by introducing too many prefixes (not taking into account previous assembled lines that may have left prefixes with no instruction at the end). b1528932 wrote: its very confusing, many mnemonics may correspont to 1 opcode, and many opcodes may correspont to 1 mniemonc. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.