Answer to Question #286159 in Assembler for SDFGHJ

Question #286159

WRITE A ASSEMBLY CODE ON EMU 8086

Write an assembly code to convert the number 8765h to 6587h using only rotate instruction. 


1
Expert's answer
2022-01-10T00:25:01-0500

; 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.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS