8086 Assembly Language Programming | Addition of 16 Bit Numbers

Опубликовано: 24 Март 2026
на канале: Game Of Codes
21,381
305

This is the first video on 8086 Assembly language programming tutorial. Here I have explained about data types of 8086, assesmbler directive of 8086 and Program to add two 16 bit number.


Source code

.model small
.data
a dw 9835h
b dw 6987h
sum dw ?
carry dw 00h

.code
main proc
mov ax,@data
mov ds,ax
mov ax,a
add ax,b
jnc skip
inc carry
mov sum,ax
skip: mov sum,ax
main endp