Download Print this page

IMS IMSAI 8080 User Manual page 337

Advertisement

Decimal to binary number conversion:
The simplest method to convert a number to binary is to
divide it repeatedly by 2, recording the remainder for
each step.
To convert the value 1389^Q to binary.
Value
1389
694
347
173
86
43
21
10
5
2
1
Note that the answer appears LSB first, thus, 1389-^q = IOIOIIOIIOI
Chech:
1 + 4 + 8 + 3 2 + 6 4 +
Value/2
R e m a i n d e r
1
694
0
347
1
173
86
1
0
43
1
21
10
1
0
5
1
2
1
0
1
0
256 + 1024 = 1389
SIOC Board
Rev. t
Users Guide
LSB (Least Significant Bit)
MSB (Most Significant Bit)
9A - 13
2

Advertisement

loading