Commodore 64 User Manual page 87

Hide thumbs Also See for 64:
Table of Contents

Advertisement

Think of a BIT as a switch that is either "on" or "off". When a BIT is
"on" it has a value of 1; when a BIT is "off" it has a value of 0.
After BIT, the next level is BYTE.
BYTE -This is defined as a series of BITS. Since a BYTE is made up of
8 BITS, you can actually have a total of 256 different combinations
of BITS. In other words, you can have all BITS "off" so your BYTE
will look like this:
128
0
16
0
8
0
and its value will be 0. All BITS "on" is:
64
0
32
0
128
64
32
1
1
1
16
1
8
1
which is 128+64 + 32+16+8 +2+1=255.
The next step up is called a REGISTER.
4
0
4
1
2
0
2
1
0
REGISTER -Defined as a block of BYTES strung together. But, in this
case each REGISTER is really only 1 BYTE long. A series of REGIS-
TERS makes up a REGISTER MAP. REGISTER MAPS are charts like
the one you looked at to make your BALLOON SPRITE. Each REGIS-
TER controls a different function, like turning on the SPRITE is really
called the ENABLE REGISTER. Making the SPRITE longer is the EX-
PAND X REGISTER, while making the SPRITE wider is the EXPAND Y
REGISTER. Keep in mind that a REGISTER is a BYTE that performs a
specific task.
Now let ' s move on to the rest of BINARY ARITHMETIC.
BINARY TO DECIMAL CONVERSION
Decimal Value
128
64
32
16
8
4
2
1
0
0
0
0
0
0
0
1
2T0
0
0
0
0
0
0
1
0
2 TI
0
0
0
0
0
1
0
0
2T2
0
0
0
0
1
0
0
0
2T3
0
0
0
1
0
0
0
0
2T4
0
0
1
0
0
0
0
0
2T5
0
1
0
0
0
0
0
0
2T6
1
0
0
0
0
0
0
0
217
77

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents