Skip to content

Instantly share code, notes, and snippets.

@newbiethetest
Last active January 4, 2016 07:59
Show Gist options
  • Save newbiethetest/8592146 to your computer and use it in GitHub Desktop.
Save newbiethetest/8592146 to your computer and use it in GitHub Desktop.
assume cs:code,ds:data,ss:stack
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,data
mov ds,ax
mov ax,stack
mov ss,ax
mov sp,8
mov cx,4 ;循环4行
mov bx,0
s:push cx
mov si,0
mov cx,4
s0: mov al,[bx+3+si]
and al,11011111b
mov [bx+3+si],al
inc si
loop s0
add bx,16
pop cx
loop s
mov ax,4c00h
int 21h
code ends
end start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment