WRITE A ASSEMBLY CODE ON EMU 8086
Write an assembly code to convert the number 8765h to 6587h using only rotate instruction.
; ROR
data segment
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
mov ax, 8765h
ror ax, 8
; wait for any key....
mov ah, 1
int 21h
mov ax, 4c00h ; exit to operating system.
int 21h
ends
end start ; set entry point and stop the assembler.
Comments
Leave a comment