Andes Workshop http://forum.andestech.com/ |
|
movi指令與2的補數 http://forum.andestech.com/viewtopic.php?f=14&t=584 |
Page 1 of 1 |
Author: | cindy [ Tue Jun 05, 2012 2:38 pm ] |
Post subject: | movi指令與2的補數 |
Attachment: 剛才在研究movi指令, 其中 MOVI Rt, imm20s 共有20 bit表示一個有號數。 參考2的補數的說明, 所以20 bit可以表示的數字範圍為(2^19-1) ~ -(2^19)。 例如可以寫成 movi $r5, -0x80000 |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |