|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
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).
就是说补码负数可以拆分成一个负数和正数的和,这个是要提示我啥?是不是要用移位相加来做这个乘法啊?还请大家来帮忙啊!
|
|