Home > other >  Assembly language - data label
Assembly language - data label

Time:01-18

Wang Shuang teacher learning assembly language, data on label, wrote a program to store data from a to b, the Debug results after no stored in b, b to define the Word
What
Assume cs: code, ds: data
The data segment
A db 1,2,3,4,5,6,7,8
B the dw 0
The data ends

Code segment. Initialization register
Start: mov ax, data
Mov ds, ax
Mov si, 0
Cx, mov 8
S: mov al, [si]
Mov ah, 0
The add b, ax
Inc si
Loop s
Mov ax, 4 c00h
Int 21 h

Code ends
The end start








  • Related