![]() |
|
![]() |
![]() ![]() |
|
![]() |
|
![]() |
|
![]() |
![]() |
Notes on NOT, AND, OR, XOR gates DL-fa06-Logic-notes.pdf (20.693 Kb) A brief (2 page) document with some written notes. This may be helpful for doing the pre-lab to lab #1. |
|
![]() |
Warning about overflow determination overflow.c (4.727 Kb) overflow.out (7.893 Mb) Overflow-note.pdf (7.855 Kb) In a Fall '06 exam, a number of students checked for overflows in x-y by comparing the top two carry bits after taking the two's complement of y and adding it to x. Although this method works correctly in most cases, it fails whenever y is 1000...0 (the most negative number) since in that case, taking the two's complement fails to change the sign bit as it normally would. I thought that I should warn you about this issue in case you encounter this sort of problem in the future. There are other methods for checking for signed overflow in subtraction problems that are more reliable. This note explains the problem and the alternative methods in more detail. I am also attaching a C program and its output which demonstrate the problem in the case of 8-bit signed numbers. |
|
![]() |
ASCII character coding This folder contains notes and references relating to the ASCII character code, particularly the control characters. |
|
![]() |
Using the PS/2 port for keyboard or mouse input This folder contains some notes by me and links to web pages explaining how to use a PS/2 port (there is one on our UP2 board) for keyboard or mouse input. You will need this for your lab 6 assignment. |