mips平台下移植php,mips,计算机原理_关于MIPS中%hi()与%lo()的一点疑问,mips,计算机原理,计算机科学,asm - phpStudy...

关于MIPS中%hi()与%lo()的一点疑问

在看《See MIPS Run(2nd Edition)》的Chapter 9 Reading MIPS Assembly Language中的9.4 Addressing Modes中,碰见这样一段话:

The constructs %hi() and %lo() represent the high and low 16 bits of the address. This is not quite the straightforward division into low and high halfwords that it looks, because the 16-bit offset field of an lw is interpreted as signed. So if the addr value is such that bit 15 is a 1, then the %lo(addr) value will act as negative, and we need to increment %hi(addr) to compensate:

图片版的原文在此:

文中说:

because the 16-bit offset field of an lw is interpreted as signed. So if the addr value is such that bit 15 is a 1, then the %lo(addr) valuwill act as negative, and we need to increment %hi(addr) to compensate:

不是很懂为什么“need to increment %hi(addr) to compensate”。。。

相关阅读:

php的命名空间层级与目录层级是一致的吗

jquery对多选框做全选/全不选时遇到的问题?

c++的模板问题

YII2的RBAC怎么玩?

连接mongodb数据库失败

关于第一个参数对Object.create()结果造成的不同的一个小疑惑

关于jQuery选择器的问题

python中multiprocessing.dummy.pool 和multiprocessing.pool有什么区别

gulp-inject的使用方式

XCode中如何使用ObjC++开发Cocoa应用?

有人在BAE开发过java-tomcat应用吗?数据库老是链接失败

phzoom这个插件是否可以限制图片高度?

让网站内容延迟加载

Spring-mvc 的资源文件访问不到

谁能说说CGImageRelease和 CGImageRetain的区别?

JPA 如何使用逻辑删除

公众号第三方平台授权次数限制

有js基础和简单的php基础,但是学习nodejs还是很吃力

七牛的cdn缓存加速是怎么设置cache-control字段的?

lambda:c

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值