Recommended Posts

1) If i am not mistaken, high-order bits are used to begin commands, tho the low-order bits are still used in these commands...

But the thing i dont understand is this....i am told that low-order bits are used to store data, can anyone explain exactly how this works or if i am mistaken, try to explain how it works, i am a little lost.

2) What is the difference between the CPU "codebook" and the CPU instruction set?

Link to post
Share on other sites
1) If i am not mistaken, high-order bits are used to begin commands, tho the low-order bits are still used in these commands...

As CurlingSteve said, it depends on the instruction and also of course on the architecture. IA-32 has the opcode more or less in the low-order byte(s) of the instructions.

But the thing i dont understand is this....i am told that low-order bits are used to store data, can anyone explain exactly how this works or if i am mistaken, try to explain how it works, i am a little lost.

Data is encoded in the instruction. Simple as that. For example, the instruction

mov eax, 1

is encoded as

b8 01 00 00 00

a one byte opcode (B8, or "MOV reg32, imm32" with EAX as the target register) followed by a four byte integer representing 1.

2) What is the difference between the CPU "codebook" and the CPU instruction set?

Never heard the term 'codebook' used in reference to processors.

Edited by jcl
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...