home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore 64 Scene Diskmags Assortment
/
DMBBS_Bi-Monthly_Magazine_5_1990-06-01_Sledge.d64
/
8.2
< prev
next >
Wrap
Text File
|
2023-02-26
|
1KB
|
52 lines
Hex Notation.
Hex or base 16 is simple another
base of counting. It is what you need
to understand to use a ml monitor
effectively and here I will explain.
You don't necessarily need to
understand it, you just need to be
able to use it. As you may have
guessed, unlike our decimal system
which uses tens, hex uses sixteens.
(0-f) Her e is how to convert a decimal
number to a hex number.
Say you wanted to convert 53280 to
hex. You would start by making a chart
like this.
4096 256 16 1
{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
Then, you take the first number-4096
and figure out how many times 53280
will go into it evenly.
It goes into it 14 time, or d in hex.
So put a d on the chart.
4096 256 16 1
{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
d
Now proceed to do the same with the
remaining three until you have the
correct number.
256=0
16=2
1=0
Finish off your chart and whammo! For
further info refer to the Commodore 64
Programmers Reference Manual. pg.
216-17.
Latah!