From 7e43284f6db755191b169176db2300976ff6adbf Mon Sep 17 00:00:00 2001 From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Fri, 26 Mar 2021 14:56:06 +0300 Subject: [PATCH] Update disasm2.cpp According to [documentation](https://nasm.us/doc/nasmdoc2.html#section-2.2.7), using `tword` instead of `tbyte` makes NASM < 2.15 assemble code without errors --- src/disasm2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disasm2.cpp b/src/disasm2.cpp index ba06a0d..58e7851 100644 --- a/src/disasm2.cpp +++ b/src/disasm2.cpp @@ -504,7 +504,7 @@ void CDisassembler::WriteOperandTypeYASM(uint32 type) { case 4: // 64 bits OutFile.Put("qword "); break; case 5: // 80 bits - OutFile.Put("tbyte "); break; + OutFile.Put("tword "); break; case 7: // 48 bits OutFile.Put("fword "); break; case 0x4A: // 16 bits float @@ -516,7 +516,7 @@ void CDisassembler::WriteOperandTypeYASM(uint32 type) { case 0x4C: // 64 bits float (SSE2) OutFile.Put("qword "); break; case 0x45: // 80 bits float - OutFile.Put("tbyte "); break; + OutFile.Put("tword "); break; case 0x84: case 0x85: // far call OutFile.Put("far "); break; case 0x95: // 16 bits mask register