Sunday, 6 May 2012

Assembly Programs

Add the Hexadecimal number

a<press enter>
mov ax,9000
mov bx,3000
add ax,bx
hlt
<press enter follwed by t till the HLT occurs>, u <physical add:offset add>


Substract the Hexadecimal number


a<press enter>
mov ax,9000
mov bx,3000
sub ax,bx
hlt
<press enter follwed by t till the HLT occurs>, u <physical add:offset add>


Multiply the Hexadecimal number


a<press enter>
mov ax,9000
mov bx,3000
mul ax
hlt
<press enter follwed by t till the HLT occurs>, u <physical add:offset add>

Divide the Hexadecimal number


a<press enter>
mov ax,9000
mov bx,3000
div ax
hlt
<press enter follwed by t till the HLT occurs>, u <physical add:offset add>


Friday, 4 May 2012