Wednesday, June 23, 2010

16 bit multiplication

Buzz It
#make_COM#
; COM file is loaded at CS:0100h
ORG 100h
mov ax,[2000h]
mov bx,[2002h]
mul bx
mov [2004h],ax
mov [2006h],dx
hlt


Input
[2000H]=10
[2001H]=00
[2002H]=50
[2003H]=00

Output
[2004H]=00
[2005H]=05
[2006H]=00
[2007H]=00

0 comments:

Post a Comment