young1122 发表于 2013-6-14 17:16:55

6个8bits的有符号数相乘的问题,求解答!!

Let us assume to have two arrays of 8-bit signed (2’s complement) integer values (in little endian) denoted as
A DB 6 DUP(?)
B DB 6 DUP(?)
It is required to write an 8086 assembly program that:
1. computes the result coming from the multiplication of the 6 values of each array, and store them into two
additional arrays (in two’s complement)
MULT_A DB 6 DUP(?)
MULT_B DB 6 DUP(?)
respectively, (in the running version to be presented at oral exam these results have to be displayed on
the screen)

这个是题目要求,就是要一个数组中存6个8位有符号数的,补码形式,然后让这6个数相乘然后把乘积放到新的数组里面,后面提示
Do not forget that negative numbers in two’s complement can be seen as the “splitting” of one negative and
one positive number. For example: 110101 = 110000 + 000101 (i.e. the first is a negative number while the
second is positive).
就是说补码负数可以拆分成一个负数和正数的和,这个是要提示我啥?是不是要用移位相加来做这个乘法啊?还请大家来帮忙啊!

young1122 发表于 2013-6-14 22:50:29

怎么没人答复我呢,唉!哪位大牛来解救我啊~~~
页: [1]
查看完整版本: 6个8bits的有符号数相乘的问题,求解答!!