CSC258H5 Lecture Notes - Lecture 12: System Call, Stack Overflow, Exclusive Or

35 views2 pages
10 Sep 2017
School
Course
Professor

Document Summary

Xor // xor both numbers. So you only end up: andi 7 -> xmod 8 keeps the lowest 3 bits and all higher bits to 0. So and with 7, which is slti 0 //set t3 to 1 if it is negative number addiu -1 and why? powers of two are like 10000000 subtract 1 to get 011111111111. If you and it, you will get 000000000000. Question 1: invert all bits inverting lower 16 bits. If they are not the same, then the sign bit will be 1. Question 5 and question 6 : xor, xor. Parity bit min : return y ^ ((x^y) & -(xy, then -(x

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

Related Questions