assembly language programm--HelloWorld

来源:互联网 发布:nginx 目录访问权限 编辑:程序博客网 时间:2024/06/11 09:44

      after couple of days studying assembly language,I decided to make some summary,covering the basises of assembly language.


code:



jmp start    ;jump to start label

 
str: db  "Hello,Assembly Language!$"    
;db means define bite
start: mov dx,str         ;mov means move
           mov ah,9h         ;INT 21h / AH=9 - output of a string at DS:DX. String must be terminated by '$'. 
           int 21h                ;int meas interrupt

        

          mov ah,4ch            

          int 21h              ;INT 21h / AH=4Ch - return control to the operating system (stop program).



ouput:


      
原创粉丝点击