鱼C论坛

 找回密码
 立即注册
查看: 1735|回复: 1

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

[复制链接]
发表于 2013-6-14 17:16:55 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

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).
就是说补码负数可以拆分成一个负数和正数的和,这个是要提示我啥?是不是要用移位相加来做这个乘法啊?还请大家来帮忙啊!

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2013-6-14 22:50:29 | 显示全部楼层
怎么没人答复我呢,唉!哪位大牛来解救我啊~~~
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-11-17 10:01

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表