Re: A92: learning assembly


[Prev][Next][Index][Thread]

Re: A92: learning assembly




A hex number is like any other number.  It can have any number of digits.
However, two, four, and eight are common numbers of digits for hex numbers.
This is because a hex digit is equal to four bits.  So two hex digits is eight
bits, four is sixteen bits, and eight is thirty two bits.  You should
recognize these as a byte, word, and longword respectively.  These are the
units of storage on a 68000 processor, so it's common to be writing eight bit,
sixteen bit, and thirty two bit constants.  However, you can have a hex number
with however many digits you want.  Hope this helps.