Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between a Byte, Word, Long and a Long Word?

I'm aware that a Byte is 8 bits, but what do the others represent? I'm taking an assembly course which uses a Motorola 68k Architecture, and I'm confused on the vocabulary present.

like image 286
user3739406 Avatar asked Oct 31 '25 01:10

user3739406


1 Answers

As mentioned on the first page of the operator's manual for the 68k Architecture, in your case a word is 16 bits and a long word is 32 bits.

In an assembly language, a word is the CPU's natural working size. Each instruction, as well as addresses in memory, tend to be one word in length. Whereas a byte is always 8 bits, the size of a word depends on the architecture you're working in.

like image 62
Peter Smith Avatar answered Nov 03 '25 03:11

Peter Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!