1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| assume cs:codesg,ss:stacksg,ds:datasg
stacksg segment dw 0,0,0,0,0,0,0,0 stacksg ends
datasg segment db '1. display ' db '2. brows ' db '3. replace ' db '4. modify ' datasg ends
codesg segment start: mov ax,datasg mov ds,ax mov ax,stacksg mov ss,ax mov sp,10h mov bx,3 mov cx,4 s: push cx mov cx,4 mov si,0 s1: mov al,ds:[bx][si] sub al,20h mov ds:[bx][si],al inc si loop s1 add bx,16 pop cx loop s mov ax,4c00h int 21h
codesg ends
end start
|