Lecture05_handout-F09

Lecture05_handout-F09 - CE-320 Microcomputers I Fall B 2009...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CE-320 Microcomputers I Fall B 2009 Lecture 5 Page 1 Lecture 5 Unconditional Branches Purpose: Perform hexadecimal addition and subtraction. Use unconditional branch and jump instructions.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CE-320 Microcomputers I Fall B 2009 Lecture 5 Page 2 Hexadecimal Addition and Subtraction For the most part, adding and subtracting in hexadecimal is performed like decimal, with carries and borrows worth 16 instead of 10. This can be seen with a few examples. Example: $2367 + $5FD6 = Example: $AC22 – $1EE8 =
Background image of page 2
CE-320 Microcomputers I Fall B 2009 Lecture 5 Page 3 Extending Hexadecimal Numbers As in earlier problems using binary, when a shorter number is added to or subtracted from a longer number, the shorter number must be extended to the same number of digits as the longer number. Unsigned: Example: $2357 + $D6 Signed: Examples: $2357 + $D6 $2357 + $6D
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CE-320 Microcomputers I Fall B 2009 Lecture 5 Page 4 Truncating Hexadecimal Numbers In microcomputers, it is common practice to represent values using a
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/12/2009.

Page1 / 7

Lecture05_handout-F09 - CE-320 Microcomputers I Fall B 2009...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online