CPSC 355 Lecture Notes - Lecture 14: V Engine, Nsw Trainlink V Set, Arithmetic Shift

60 views3 pages

Document Summary

Cpsc 355 - lecture 14 oct 14th. 4-bit example: -8 -5 is -13 which is out of range (the modulus result is 3) V set to 1, n to 0, z to 0. 8 != 5, since z == 0. 8 < 5, since n != v. Another 4-bit example: 0 (-8), which is out of range (the modulus result is -8) V set to 1, n to 1, z to 0. 0 != -8, since z == 0. 0 > -8, since z == 0 && n == v. 0 >= -8, since n == v. Uses the same registers and hardware operations as signed arithmetic: however, one interprets the data as unsigned numbers. When adding, a carry out (c=1) indicates overflow: 4-bit example: 15 + 1. Ignore n and v flags, since they have no meaning for unsigned integers: C equivalent equal not equal unsigned higher unsigned higher or same >= unsigned lower unsigned lower or same <=

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents