;10.12 assume cs:code,ds:data data segment db ‘word‘,0 db ‘unix‘,0 db ‘wind‘,0 db ‘good‘,0 data ends code segment start : mov ax,data mov ds,ax mov si,0 mov di,16 mov cx,4 s: call cap inc si loop s MOV AX,4C00H INT 21H cap: push cx tip: mov cl,[si] mov ch,0 jcxz ok and byte ptr [si],11011111B inc si jmp short tip ok: pop cx ret CODE ENDS END start
书上有的代码,稍微把几句废话去掉了
时间: 2024-12-21 10:53:03