Computer Science Study Summary --part 3

来源:互联网 发布:广东网络作家协会 编辑:程序博客网 时间:2024/05/21 14:43

AssemblyLanguage  Summary

Data Format

 


Registers


Operate Memory instructions


 

Move Operation instructions


 

Move instruction Sample


Operate  %esp




 

Mov operation sample2


 

Load Address , And , Or , XOR,Shift , Add , Sub , Mul Operation

Instructions


Sample Code

A


 

B


 

Condition  Instructions


Sample code


 



 

Set  instructions


 

Jump instructions




 

After Linking


Loops

 

 

 

 




 

 

While loop

<22>



 

For loop

<23>


<24>

 

Conditional move  instructions

 

<25>

 

Sample code

<26>

Swich stament

<27>



<28>

 

<29>


<30>

 

Procedure call

 

Stack

<31>

 

Sample code

 

<32>

 

<33>


<34>


<35>

<36>

<37>

<38>

 

Array  Instructions

<39>

Nested Array

<40>

Sample code

<41>

Structures

<42>

 

<43>

<44>

 

0 0