ch12 - 12.1 1 9 BH e 1 ( Byt e) =8 ( Bi t ) 76 543 2 10 1 1...

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

View Full Document Right Arrow Icon
Background image of page 1

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

View Full DocumentRight Arrow Icon
§12.1 1 B 9 1 ( Byt e) =8 ( Bi t ) 7 6 5 4 3 2 1 0 1 1 (word)=B PC 1 int 2Byte float 4Byte char 1Byte
Background image of page 2
0 a 1 à ˜T‚¸ª = 1 T‚¸ª = à 1 1 = 1 = 1 = 1 +1 ‚¸ª 1 1 + 6;{+ [ 1 ] 1 1 x=+7 [x] 1 =[x] 1 =[x] 1 =00000111 y=-7 [y] 1 = 1 0000111 [y] 1 = 1 1111000 [y] 1 = 1 1111001 1 1 1
Background image of page 3

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

View Full DocumentRight Arrow Icon
§12.2 1 & | ^ ~ << >> | | | | | | | ~ 9 1 ¸Ú ·¶ ª* int 1 char & 1 1 Ú· 0 & 0 = 0 0 & 1 = 0 1 & 0 = 0 1 & 1 = 1
Background image of page 4
| 3&5=1 00000011 1 3 1 & 00000101 1 5 1 00000001 2 1 1 01 010 1 00 B & 00 111 0 11 B 1 1 1 0 1 00 010 0 00 a=84,b=59,c=a&b=16 00101011 & 11010100 00000000 1 B 9
Background image of page 5

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

View Full DocumentRight Arrow Icon
[ 1 ] 1 int a , 1 a 1 2 Byte 5 e c=a&b , b= 0 377( 1 1 a 00101100 10101100 b 00000000 11111111 c 00000000 10101100 5 e c=a &b , b= 0 177400 a 00101100 10101100 b 11111111 00000000 c 00101100 00000000
Background image of page 6
1 B 0 | 0 = 0 0 | 1 = 1 1 | 0 = 1 1 | 1 = 1 1 060 | 017 = 077 00110000 | 00001111 0011 1111 2 +u” | 1 [ 1 ] 1 int a , 1 a 1 2 Byte 8 1 1 1 8 1 1 a=a&0377 1 | 1
Background image of page 7

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

View Full DocumentRight Arrow Icon
| ^ 1 1 0 ^ 0 = 0 0 ^ 1 = 1 1 ^ 0 = 1 1 ^ 1 = 0 071 ^ 052 = 023 00111001 ^ 00101010 00010011 2 1 1 ÈW ‚¸ª* 0111 1010 ^ 0000 1111 1 1 0 1 0111 0101
Background image of page 8
| 0 1 ^ 6 ;{ a ^ 0 = a 8e¹ ^ 1 0 a ^ a = 0 012 ^ 00 = 012 00001010 ^ 00000000 00001010 1 , [ 1 ] 1 a=3,b=4 1 a 1 b “ t a=4,b=3 1 8e¹ª a=a ^ b; b=b ^ a; a=a ^ b; a= 011 ^ b= 100 a= 111 (a=a^b=7) ^ b= 100 b= 011 (b=b^a=3) ^ a= 111 a= 100 (a=a^b=4)
Background image of page 9

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

View Full DocumentRight Arrow Icon
| ~ 1 1 ~ 0 = 1 ~ 1 = 0 ~ 025 = 0177752 int 1 2 1 1 pc 1 ~ 0000000000010101 1111111111101010 1 @• { | 2 1 [ 1 ] + 0 int a; a = a & 0177776 00 00 00 00 00 11 11 0 1 a=075 & 11 11 11 11 11 11 11 1 0 00 00 00 00 00 11 11 0 0 ~ ) 9g |
Background image of page 10
| << 1 2 1 m 1 1 1 =m 1 2 m 1 n 1 =m 1 2 n 1 m<<n 1 m , t 9 n 1 n 1 0 a=a<<2 1 2 1 2 1 0 00001111 a=15 001111 00 a=15*2 2= 60
Background image of page 11

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

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

This note was uploaded on 11/08/2009 for the course ISYS 2350 taught by Professor Joserf during the Three '08 term at University of Sydney.

Page1 / 22

ch12 - 12.1 1 9 BH e 1 ( Byt e) =8 ( Bi t ) 76 543 2 10 1 1...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online