第四章 知识总结

 独立写一个程序

了解汇编源程序从编写到调试的过程。

一、编写汇编源程序。

二、对源程序进行编译连接。

三、执行可执行文件中的程序。

1.以下是基本的汇编源程

assume cs:code

code segment

    mov ax,0b800h

    mov ds,ax

    mov bx,0

    mov [bx],0433h

       add bx,2

    mov [bx],0436h

    mov ax,4c00h

    int 21h

code ends

end

2.编译运行的过程

使用dos下的edit编辑流程

(1)运行Edit

(2)在Edit中编写程序

(3)将程序保存为文件xxx.asm,保存退出

(4)将xxx.masm连接为xxx.exe

  (5)执行xxx.exe

猜你喜欢

转载自www.cnblogs.com/TheaQ/p/10201711.html