{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Introduction to Computer Systems Chapter 12

# Introduction to Computer Systems Chapter 12 - Chapter 12...

This preview shows pages 1–2. Sign up to view the full content.

Chapter 12 12.1 Name Type Offset Scope cc char -1 BlockA dd char -3 BlockA (i.e., same block as cc) ff float 0 BlockA (i.e., same block as cc…) ii int -2 BlockA (i.e., same block as cc…) 12.3 -2147483648 plusOrMinus 2147483647 0 positive 4294967295 12.5 LDR R0, ASCII_a STR R0, R5, #0 ; c = 'a' AND R0, R0, #0 ADD R0, R0, #3 STR R0, R5, #-1 ; x = 3 AND R0, R0, #0 ADD R0, R0, #10 STR R0, R5, #-3 ; z = 10 ASCII_a : .FILL 97 12.7 Expression Value of expression Value of a afterwards Value of b afterwards a | b 15 6 9 a || b 1 6 9 a & b 0 6 9 a && b 1 6 9 !(a + b) 0 6 9 a % b 6 6 9 b / a 1 6 9 a = b 9 9 9 a = b = 5 5 5 5 ++a + b-- 16 7 8 a = (++b < 3) ? a : b 10 10 10 a <<= b 3072 3072 9 12.9 a. The statement will set letter equal to ! if it originally was a lowercase alphabetic character. b. letter = ((letter >= 'a' && letter <= 'z') ? (letter – ('a' - 'A')) : letter); 12.11. a Both j and i are set to the incremented value of i. b. j is set to the original value of i.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

Introduction to Computer Systems Chapter 12 - Chapter 12...

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

View Full Document
Ask a homework question - tutors are online