·
First Programm In assembelly: HELLO
WORLD PRINT
1. .MODEL SMALL
2. .STACK 100H
3. .DATA
4. MSG
DB 'HELLO world! $'
5. .CODE
6. MAIN
PROC
7. MOV
AX,@DATA ;
INITIALIZE DS
8. MOV
DS, AX
9. LEA
DX, MSG ; LOAD &DISPLAY MASSAGE
10. MOV
AH, 9
11. INT
21H
12. MOV
AH, 4CH ; DOS EXIT
13. INT
21H
14. MAIN
ENDP
15. END
MAIN
No comments:
Post a Comment