大家看看这个程序哪儿有问题!!!!!
程序代码:
assume cs:code,ds:data,ss:stack data segment db'welcome to masm!' db 00000010b,00100100b,01110001b data ends stack segment dw 0,0,0,0,0,0,0,0 stack ends code segment start: mov ax,data mov ds,ax mov ax,stack mov ss,ax mov sp,0010h mov bx,0000h mov ax,0b800h mov es,ax mov ax,0 mov di,0010h mov cx,3 s: push cx mov cx,16 mov si,0 s0: mov al,ds:[si] mov ah,ds:[di] mov es:[bx+07b6h],ax inc si add bx,2 loop s0 inc di pop cx loop s mov ax,4c00h int 21h code ends end start王爽的汇编语言一书中实验九的程序说是在屏幕上显示不同颜色的字,这是我写的,但是运行后屏幕上没有正确显示!请各位看一下!
[ 本帖最后由 闭眼到天黑 于 2011-3-2 22:07 编辑 ]