Data Storage Manipulation
Data Storage Manipulation
Data Storage Manipulation
Chapter 1
Data Storage
0x10 16 10000
v v v v v v v v
1 1 1 0 1 1 0 1
Copyright © 2019 Pearson Education, Ltd. All Rights Reserved.
Figure 1.17 The binary addition facts
Chapter 2
Data Manipulation
49
Image from:https://taylor.git-pages.mst.edu/index_files/Security/Content/13b-ReverseEngineering.html
Copyright © 2019 Pearson Education, Ltd. All Rights Reserved.
How your programs run on a Computer (3)
Equivalent C Code:
x = y + z;
Equivalent C Code:
x = y / z;
• Logic Operations:
– AND, OR, XOR
– often used to mask an operand
• Rotation and Shift Operations:
– circular shift, logical shift, arithmetic shift
• Arithmetic Operations:
– add, subtract, multiply, divide
– two’s complement versus floating-point
• Questions?