way to compile assembler code
-
03-07-2021 - |
Question
just started learning Assembler in school, and want to ask how to compile this code:
stek Segment Stack
DB 256 DUP(?)
stek ENDS
CR EQU 13
EF EQU 10
Duom SEGMENT
pranesimas DB 'Hello Word', CR,EF
DB 'Made By Edgar' $
Duom ENDS
prog SEGMENT
ASSUME CS:programa,ds:Duomenis,ss:stekas
START:
MOV ax,duomenis
MOV ds,ax
MOV ah,09
LEA dx,Pranesimas
INT 21h
MOV ah,4ch
Prog ENDS
END START
on windows 7 x64
because in school we have Xp x32, the way we compile in school does not work on x64 windows.
La solution
The newer versions of Windows have dropped the 16-bit support that used to be there in XP, so to compile the program (a 16 bit DOS program), you'll need to install DOSBox, Bochs or similar emulator.
They will emulate the 16-bit environment so you should be able to run DOS with both the assembler and resulting code on your 64-bit Windows (or Mac/Linux machine for that matter)
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow