5 Perform Following Operation Assembly Language 29 Q37122807

5. Perform the following operation in Assembly language. i*29; i =5. Perform the following operation in Assembly language. i*29; i = Show transcribed image text 5. Perform the following operation in Assembly language. i*29; i =


Solution


Assembly language:

.data

     i    db   10;set i with some value

.code

     main proc

          mov ax,i     ; LOAD i VALUE IN AX ==> AX=i

          mov bx,29; LOAD CONSTANT VALUE IN BX ==>BX=29

          mulbx        ; AX= AX * BX ==>i* 29

          mov i,ax     ; RESULT IS STORED IN i

     main endp

          endmain

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.