CS401 Sol-25
CS401 Sol-25
[org 0x0100]
jmp start
vuid db 2,1,0,4,0,6,5,3,0
sum dw 0
result db 9
start:
mov ax, 0
mov si, 0
calculation_sum:
add ah,
al inc si
cmp si, 9
jl calculation_sum
mov [sum], ah
mov si, 0
mov bl, ah
subtract_loop:
mov bh, bl
sub bh, al
https://chat.whatsapp.com/GecIrau2Nit0D4F5DjDiGM
ASSIGNMENT Solution By Gateway RAja MUshTaQ
jl subtract_loop
int 21h
Sample screenshot:
https://chat.whatsapp.com/GecIrau2Nit0D4F5DjDiGM