58
As we have no single character to represent the numbers
10 to 15, we substitute the first six letters of the alphabet,
so that:
A represents 10
B represents 11
C represents 12
D represents 13
E represents 14
F represents 15
The example number 1019 can then be represented in hex
by:
4096
256
16
1
(16x16x16)
(16x16)
(16)
(1)
0
3
F
B
We can demonstrate that 3FB is exactly the same as 1019
by:
((256x3)+(16xF)+(1xB)=768+240+11=1019
Note
A lower case h is often used at the end of a number to
ensure that you realise it is in hex format e.g. 3FBh.
A larger hex number and one that you will come across in
the
Memory map description below is A0000h. To see this
as a decimal number:
16x16x16x16
16x16x16
16x16
16
1
A
0
0
0
0
16x16x16x16=65536
So A0000h is 65536x10=655360.
If you have Microsoft Windows 3.1 on your XEN-LS II you
may find it helpful to use the Windows Calculator. In
Scientific View the calculator allows you to enter decimal
numbers and convert them to hex, and vice versa.