Question

I'm practicing with the basics assembler and I have one question. how do I compile programs on windows 7 64-bit and which site to download the compiler. I might add that we are working in the "tasm" compiler and processor family 8086. I mean simple programs such as addition, subtraction like this:

.model tiny
.stack 2
.data
mydata segment
arg1 db 4
arg2 db 2
mydata ends
mycode segment
assume cs:mycode, ds:mydata
begin:
mov ax,seg mydata
mov ds, ax
mov bl, arg2
add bl, arg1
mov dl, bl
add dl, 48
mov ah, 02h
int 21h
mov ah, 4ch
int 21h
naszkod ends
end begin

Thanks for help

Was it helpful?

Solution

Here are some (partial) answers that might help you:

  • The code you posted is 16-bit assembly for DOS, so an x64 assembler is not going to help you.
  • If you are actually looking for a 64-bit capable assembler for the Windows platform, there are several. Among them would be NASM and Microsoft's MASM, which (depending on the version) comes with the DDK and/or Visual Studio.
  • I don't know if this is of interest to you but there are also some 64-bit compilers which (unlike VC++ x64) allow inline assembly (e.g. Delphi x64).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top