Tag: 16 bit

Subtraction of 16-bit numbers in Assembly – masm 8086

Subtraction of 16-bit numbers in Assembly – masm 8086

Subtraction of 16-bit numbers in Assembly - masm 8086 TestingSubtraction of 16-bit numbers in Assembly - masm 8086 Testing

Advertisements
Addition of 16-bit numbers in Assembly -masm 8086

Addition of 16-bit numbers in Assembly -masm 8086

org 100h .stack 100h .data A DW 1010 B DW 2020 .code ;Initilization of Data Segment mov ax,@DATA mov DS,ax ; Addition of Two Numbers mov dx,A add dx,B mov cx,dx ;for DH register ;SHR 4 bits mov bl,dh shr bl,4 and bl,0fh cmp bl,9 jle ad add bl,07h ad: add bl,30h mov dl,bl ;function … Continue reading Addition of 16-bit numbers in Assembly -masm 8086