Andes Workshop

It is currently Wed Jun 28, 2017 2:33 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: movi指令與2的補數
PostPosted: Tue Jun 05, 2012 2:38 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Attachment:
movi.gif
movi.gif [ 25.45 KiB | Viewed 4030 times ]


剛才在研究movi指令,
其中
MOVI Rt, imm20s

共有20 bit表示一個有號數。
參考2的補數的說明,
所以20 bit可以表示的數字範圍為(2^19-1) ~ -(2^19)。
例如可以寫成 movi $r5, -0x80000


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group