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 Document
HEX
Decimal
Binary
(Unsigned)
$10
16
%0001 0000
$13
19
%0001 0011
$1E
30
%0001 1110
$1F
31
%0001 1111
$20
32
%0010 0000
$55
85
%0101 0101
$CA
202
%1100 1010
$FF
255
%1111 1111
$100A
5006
%0001 0000 0000 1010
$C000
49152
%1100 0000 0000 0000
This is the end of the preview.
Sign up
to
access the rest of the document.
 Spring '10
 Arm
 Microprocessor, Binary numbers, Binary numeral system, Positional notation

Click to edit the document details