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
| assume cs:code,ss:stack,ds:data stack segment dw 0,0,0,0,0,0,0,0 stack ends data segment db '1. display ' db '2. brows ' db '3. replace ' db '4. modify ' data ends code segment start: mov ax,stack mov ss,ax mov sp,16 mov ax,data mov ds,ax mov bx,0 mov cx,4 s0: push cx mov si,0 mov cx,4 s: mov al,[bx+3+si] and al,11011111b mov [bx+3+si],al inc si loop s add bx,16 pop cx loop s0 mov ax,4c00h int 21h code ends end start
|