Assembly programming – WinAsm vs Visual Studio 2017

How to build a x64/x86-project with a standalone x64/x86 assembly file 1) Start Visual Studio (Community) 2017 and choose FILE – New – Project. 2) In the next window choose Empty Project. 3) Make sure, that the project is highlighted in the Solution Explorer and and choose PROJECT – Build Customizations…. 4) In the next … Read more

x86, difference between BYTE and BYTE PTR

Summary: NASM/YASM requires word [ecx] when the operand-size isn’t implied by the other operand. (Otherwise [ecx] is ok). MASM/TASM requires word ptr [ecx] when the operand-size isn’t implied by the other operand. (Otherwise [ecx] is ok). They each choke on the other’s syntax. WARNING: This is very strange area without any ISO standards or easy-to-find … Read more