Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のコースノートには、次の情報があります。
C:
thisthread.id = 4711;
アセンブラ:
.text .align 2 movia r8,thisthread movi r9,4711 stw r9,4(r8) # id after sp that takes 4 bytes
しかし、spは代わりに4ビットを取りませんか?オフセットはバイトではなくビットで指定されていると思いました。私は間違っていますか?
あなたは間違っています。オフセットは確かにバイト単位です。