1.1. .
, Borland Turbo Assembler 5.0.
, , , .
1.2. Hello World!.
, Hello World! (. 1.1). :
1. NC, hello.asm 1.1.
1.1. Hello World.
; Programm Hello.asm
DataSg SEGMENT Para 'data';
mes DB 'Hello World!$'; mes
DataSg ENDS
StackSg SEGMENT Stack 'stack'
DB 100h DUP(?); 100h
StackSg ENDS
CodeSg SEGMENT Para 'code';
ASSUME CS:CodeSg, DS:DataSg, SS:StackSg
Start:
MOV AX, DataSg
MOV DS, AX;
MOV DX, OFFSET mes; DX mes
MOV AH, 09h; DOS
INT 21h;
MOV AH, 4Ch; DOS
INT 21h
CodeSg ENDS;
END start;
2. hello.asm tasm.exe Hello,,,
3. .
: - hello.obj, - hello.lst - hello.xrf.
4. () , tlink.exe hello.obj.
5. hello.exe .
6. , 'Hello World!$' $ task1_2.asm . , .
1.3. asm.bat.
1. asm.bat , . . .
2. asm.bat hello.asm task1_2.asm. .