This preview shows pages 1–3. Sign up to view the full content.
EE 367 Introduction to Microprocessors
Homework 3
Due:
Due in Lecture, Monday October 3
Reading:

I.
Tocci and Ambrosio: Chapter 1.
Number systems and binary
arithmetic
II.
Note on HEX numbers and Notation
(Attached below)
III.
See also binary arithmetic drill exercises in the file binary.xls
on the course website.
Suggestion:
Practice on the drill exercises first, then do the
assigned exercises.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
Note on HEX numbers and Notation:
%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
We will use HEX, Binary and Decimal numbers, depending on which
is clearest in a given situation.
HEX is most often used for
address and data because the digits correspond nicely to logical
boundaries in computer memory.
For example, our programs start
at C000 HEX, which is 49152 decimal.
To the trained eye, C000 is
a 4 Kbyte address boundary, whereas 49152 is just a big number.
Each HEX digit represents 4 bits, and can represent numbers from
0 to 15.
The first 16 values are:
HEX
Decimal
Binary
(Unsigned)
$00
0
%0000 0000
$01
1
%0000 0001
$02
2
%0000 0010
...
...
...
$08
8
%0000 1000
$09
9
%0000 1001
$0A
10
%0000 1010
$0B
11
%0000 1011
$0C
12
%0000 1100
$0D
13
%0000 1101
$0E
14
%0000 1110
$0F
15
%0000 1111
Some subsequent values are:
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentHEX
Decimal
Binary
(Unsigned)
This is the end of the preview. Sign up
to
access the rest of the document.
 Spring '10
 Arm
 Microprocessor

Click to edit the document details