汇编语言第6章检测点
程序代码:
assume cs:code,ds:a,ss:b a segment dw 1,2,3,4,5,6,7,8,9,0ah,0bh,0ch,0dh,0eh,0fh,0ffh a ends b segment dw 0,0,0,0,0,0,0,0 b ends code segment start: ;程序实现用push指令将a段的前八个字型数据逆序存储到b段 mov ax,a mov ds,a mov ax,b mov ss,b mov sp, 16 mov bx, 0 mov cx, 8 s: ;----------------------------------------------------------- mov al, [bx] mov ah, [bx+1] push ax inc bx ;这段出错了,我找不出原因... ;------------------------------------------------------------- loop s mov ax,4c00h int 21h code ends end start