Microprocessors And Microcontrollers
Friday, 4 November 2011
string reversal
mov si,2000h
mov di,2004h
mov al,00h
mov bl,00h
l1:mov al,[si]
mov bl,[di]
mov [si],bl
mov [di],al
inc si
dec di
cmp si,di
jb l1
hlt
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment