












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of the pentium instruction set, focusing on the eflags register and its related flags, as well as various operand types and notation. It covers a range of instructions for arithmetic and logic operations, including 'mov', 'movsx', 'movzx', 'lea', 'push', 'pop', 'add', 'sub', 'cmp', 'inc', 'dec', 'neg', 'mul', 'imul', 'idiv', 'idiv', 'not', 'or', 'and', 'xor', 'test', 'shr', 'shl', 'sar', 'ror', and 'rol'. Students of computer science, particularly those in a programming or assembly language course, may find this document useful for understanding the basics of x86 architecture and instruction set.
Typology: Study notes
1 / 20
This page cannot be seen from the preview
Don't miss anything!













October 18October 18
The EFLAGS Register The EFLAGS Register
"mov "mov" Instruction" Instruction
"mov EAX, myvar"
"mov EAX, EBX" "mov EAX, 0A34H" "mov [EBP+4], EAX" "mov myvar, 022334455h"
"movsx "movsx" and "" and "movzxmovzx" Instructions" Instructions
"movsx EAX, BL" "movsx EAX, mychar1"
Push and Pop Push and Pop
“push EAX” “push [ESI+4]” “push 22AAFF33h”
“pop EAX” “pop myvar”
"add" and "sub" Instructions "add" and "sub" Instructions
"add myvar, ECX" "sub EBX, -22"
"add EAX, myvar"
"inc" and "sub" Instructions "inc" and "sub" Instructions
"neg "neg" Instruction" Instruction
"neg EAX"
"imul "imul" Instruction" Instruction
“mul EBX”
“mul EAX, myvar”
"imul "imul" Instruction" Instruction
“mul EAX, myvar, 55”
"idiv "idiv" Instruction" Instruction
"not" Instruction "not" Instruction
"not [EAX+35]"
"shr "shr", "", "sarsar", "", "shlshl" and "" and "salsal"" InstructionsInstructions
“sar dword ptr [EBP – 8], 1” “shr EAX, CL”
"rol "rol" and "" and "rorror" Instructions" Instructions
“ror dword ptr [EBX], 4” “rol EAX, CL”