👩🏻‍🦱Update README

This commit is contained in:
Mia von Steinkirch, Ph.D., M.Sc 2020-01-21 17:04:55 -08:00 committed by GitHub
parent f4546a6eb4
commit 3db3d6bfc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
* Low-level OS structures and executable file format. * Low-level OS structures and executable file format.
--- ---
##Assembly 101 ## Assembly 101
### Arithmetic Instructions ### Arithmetic Instructions
@ -118,7 +118,7 @@ p = q + (z + 1)
``` ```
becomes becomes
```` ```
temp = z + 1 temp = z + 1
a = b + z a = b + z
p = q + z p = q + z
@ -166,6 +166,7 @@ Becomes:
y = x + x y = x + x
y = (x << 4) - x y = (x << 4) - x
``` ```
#### Code block reordering #### Code block reordering
Codes such as : Codes such as :
@ -179,6 +180,7 @@ l1:
l2: l2:
return; return;
``` ```
Becomes: Becomes:
``` ```
if (a > 10) goto l1 if (a > 10) goto l1
@ -200,6 +202,7 @@ goto l2
#### Instruction scheduling #### Instruction scheduling
Assembly code like: Assembly code like:
``` ```
mov eax, [esi] mov eax, [esi]
add eax, 1 add eax, 1
@ -207,6 +210,7 @@ mov ebx, [edi]
add ebx, 1 add ebx, 1
``` ```
Becomes: Becomes:
``` ```
mov eax, [esi] mov eax, [esi]
mov ebx, [edi] mov ebx, [edi]