Introduction to Computer Systems Chapter 12

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

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

View Full Document Right Arrow Icon
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.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/30/2008 for the course ECE 252 taught by Professor Wood during the Spring '08 term at Wisconsin.

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 Right Arrow Icon
Ask a homework question - tutors are online