Cs 401 solution

 

Cs 401 solution

 

·        Assembly language program

 

 

 

[org 0X0100]

 

jmp start

 

start:

    

     mov ax,[num1]

     mov bx,[num2]

     cmp ax,bx

     jl su

     add ax,bx

     mov cx,bx

su:

    sub bx,ax

    mov cx,bx

 

mov ax,0X4c00

int 0X21

 

num1:dw 35h;vuidbc180406680

num2:dw 19h

·        Screenshot of AFD debugger at the start of program.


Screenshot of AFD debugger showing the final value in memory.     






Comments

Popular posts from this blog

MGMT 627 Assignment Solution Idea

MGT501 - Human Resource Management Assignment No.1 Fall 2020

CS101 Assignment no 2