[理工] 计组 (branch/jump)

楼主: poftx ( )   2015-03-25 16:22:35
请问
1. Assume the PC is at 0x00000060, can we use a single BRANCH to get
to address (a)0x00010060 (b)0x00040060 (c)0xFFFFFF00 ?
答案是a,c可以b不行,请问是怎么计算的?
2.Assume the PC is at 0x00000060, can we use a single JUMP to get
to address (a)0x00040060 (b)0xFFFFFF00 (c)0xFFFFFFFF ?
答案也是a,c可以b不行,请问是怎么计算的?
两种都不会判断QQ
作者: A4P8T6X9 (残废的名侦探)   2015-03-25 18:01:00
一个18位,一个28位。
作者: proshot (lmao)   2015-03-25 19:32:00
第二题bc都错吧第一题b因为4*16^4 > 2^17
作者: hbkhhhdx2006 (比格踢)   2015-03-25 23:49:00
第二只有a可以吧,jump的左边头4bit会保留,剩下的28bit(26bit + 2bit to SE)才是跳的位址

Links booklink

Contact Us: admin [ a t ] ucptt.com