Binary numbers and words Flashcards

1
Q

How many numbers can an n bit binary number represent?

A

2^n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a “Carry out” indicate with unsigned arithmetic?

A

That there has been an overflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When summing two signed negative numbers is there a carry out? Does an overflow occur?

A

Yes there is a carry out, but you ignore it, there is no overflow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When summing two signed positive numbers which are both larger than 150 what happens? 8Bit

A

No carry out is produced however an over flow occurred.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do we know if there has been an overflow for singed arithmetic?

A

if pos and pos makes neg, or if neg and neg makes a pos, then an overflow has occurred. A neg and pos cannot overflow by def.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the natural word size?

A

FALSE they are all different

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For MIPS what is a word

A

32 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do memory locations generally hold?

A

bytes of data, irrespective of words

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Processor will have registers which store what size of data?

A

Words

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does big-endian storage work?

A

Big endian stores the bytes the most significant byte in the lowest address (almost conventional) BIG END OF NUMBER COMES FIRST IN MEMORY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does little-endian storage work?

A

Low byte (LSB) of number is at the lowest address LITTLE END OF NUMBER COMES FIRST IN MEMORY

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Describe moving a 8 bit signed byte into a 32 bit word?

A

Move the value into the LSB and PERFORM SIGN EXTENSION for the other 3 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Describe moving a 8 bit unsigned byte into a 32 bit word?

A

Move the value into the LSB and PERFORM ZERO EXTENSION for the other 3 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly