answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Is the add ax endangered
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you add two registers directly in assembly language?

Yes, as long as one of them is the accumulator... ADD BX ... adds BX to AX and leaves the result in AX.


21 Write a program in assembly language that calculates the square of six by adding six to the accumulator six times?

[org 0x0100] mov ax,6 ; load first number in ax add ax,6 ; accumulate sum add ax,6 add ax,6 add ax,6 add ax,6 mov ax, 0x4c00 ; terminate program int 0x21 ------ Another way: [org 0x0100] ; This is a .com file, not an .exe. DOS .com files start at 100h (256 decimal), have no stack segment, are no larger than 64k, and the code and data segments must be the same. xor ax, ax ;zero register mov cx, 6 ;put 6 in counter register for loop instruction start: add ax,6 ; accumulate sum loop start ; decrements cx and serves as conditional jump to start label. mov ax, 0x4c00 ; terminate program int 0x21 (I rarely terminated DOS programs this way using the DOS termination service (int 21h, ah=4ch). Usually, terminating with RetN was enough.)


Can you give sample 8086 microprocessor programs?

Mov ax,1234 mov bx,2345 add ax,bx mov @(some memory location ) say 2200,ax hlt


Write an Assembly language program to multiply 32 bit numbers?

.data mult1 dw 2521H dw 3206H mult2 dw 0A26H dw 6400H ans dw 0,0,0,0 .code mov ax,@data mov ds,ax ; LEA SI,ans mov ax,mult1 mul mult2 mov ans,ax mov ans+2,dx mov ax,mult1+2 mul mult2 add ans+2,ax adc ans+4,dx adc ans+6,0 mov ax,mult1 mul mult2+2 add ans+2,ax adc ans+4,dx adc ans+6,0 mov ax,mult1+2 mul mult2+2 add ans+4,ax adc ans+6,dx mov ax,4C00h int 21h end


Write a program to subtract two 16 bit numbers in microprocessor 8086?

.code main proc mov ax,@data mov ds,ax lea dx,msg ;printing msg mov ah,09h int 21h mov ax,x ;ax=x mov bx,y ;bx=y cmp ax,0 ;jump to l3 if ax is negtive jb l3 cmp bx,0 ;jump to l6 if bx is negative jb l6 cmp ax,bx ;if ax<bx,then jump to l1 jl l1 sub ax,bx ;else normal sub mov diff,ax ;diff=result is stored jmp l2 l1: ;iff (+)ax<(+)bx neg bx ;bx=-bx clc add ax,bx neg ax ;-ans=ans mov diff,ax mov dx,2dh ;print '-' mov ah,02h int 21h jmp l2 l3: ;iff (-)ax neg ax ;-ax=ax cmp bx,0 ;jump to l4 if bx is negative jb l4 clc add ax,bx ;ax=(+)ax+(+)bx mov ax,diff mov dx,2dh ;print '-' mov ah,02h int 21h jmp l2 l4: ;if (-)ax & (-)bx neg bx ;-bx=bx cmp ax,bx ;if ax>bx then jump to l5 jg l5 sub ax,bx ;else ax-bx mov diff,ax mov dx,2dh ;print '-' mov ah,02h int 21h jmp l3 l5: ;if(-)ax>(-)bx xchg ax,bx ;exchange ax and bx sub ax,bx ;ax-bx mov diff,ax ;ans is positive jmp l2 l6: ;iff (-)bx neg bx ;-bx=bx add ax,bx ;ax-(-)bx mov diff,ax ;ans will be positive mov ah,4ch int 21h main endp


Program to subtract two 8 bit numbers using 8086 microprocessor?

I have a code for 16 bit subtraction.. just replace ax by al,bx by bl etc... .code main proc mov ax,@data mov ds,ax lea dx,msg ;printing msg mov ah,09h int 21h mov ax,x ;ax=x(any number) mov bx,y ;bx=y( " ") cmp ax,0 ;jump to l3 if ax is negtive jb l3 cmp bx,0 ;jump to l6 if bx is negative jb l6 cmp ax,bx ;if ax<bx,then jump to l1 jl l1 sub ax,bx ;else normal sub mov diff,ax ;diff=result is stored jmp l2 l1: ;iff (+)ax<(+)bx neg bx ;bx=-bx clc add ax,bx neg ax ;-ans=ans mov diff,ax mov dx,2dh ;print '-' mov ah,02h int 21h jmp l2 l3: ;iff (-)ax neg ax ;-ax=ax cmp bx,0 ;jump to l4 if bx is negative jb l4 clc add ax,bx ;ax=(+)ax+(+)bx mov ax,diff mov dx,2dh ;print '-' mov ah,02h int 21h jmp l2 l4: ;if (-)ax & (-)bx neg bx ;-bx=bx cmp ax,bx ;if ax>bx then jump to l5 jg l5 sub ax,bx ;else ax-bx mov diff,ax mov dx,2dh ;print '-' mov ah,02h int 21h jmp l3 l5: ;if(-)ax>(-)bx xchg ax,bx ;exchange ax and bx sub ax,bx ;ax-bx mov diff,ax ;ans is positive jmp l2 l6: ;iff (-)bx neg bx ;-bx=bx add ax,bx ;ax-(-)bx mov diff,ax ;ans will be positive mov ah,4ch int 21h main endp


Find out the 2's compliment of the word in AX without using NEG instruction?

To determine the 2's complement of a number, invert it and add one. To do this without the NEG instruction, use XOR AX,FFFFH followed by INC AX.


What is the 8086 program to find the sum of n numbers?

8096


What is ax times ax?

(ax)(ax) = a2 + 2ax + x2


Suppose AX and BX contains signed numbers write some code to put the bigger one in CX and if they are equal add them in AX?

Da program pa yakho obo olambawa


When did the Cuban spider monkey become endangered?

There were add to the endangereds list in 1870.There were add to the endangereds list in 1870.


8086 program for addition of two 64 bit numbers?

8150