TAILIEUCHUNG - Lecture Computer organization and assembly language - Lecture 18: Program Components, I/O and Conditional Jump Instructions
In this lecture, students will be able to understand: Creating Procedures, Documenting Procedures, CALL and RET Instructions, The CALL instruction calls a procedure, boolean and Comparison Instructions, CPU Status Flags, AND Instruction, OR Instruction, XOR Instruction, NOT Instruction, Applications, TEST Instruction, CMP Instruction. | CSC 221 Computer Organization and Assembly Language Lecture 18: Program Components, I/O and Conditional Jump Instructions Lecture 17: Review AND Instruction AND destination, source OR Instruction OR destination, source XOR Instruction XOR destination, source NOT Instruction NOT destination Lecture 17: Review (cont.) Applications TEST Instruction Performs a nondestructive AND operation between each pair of matching bits in two operands. ZERO Flag CMP Instruction CMP destination, source Zero (Dest. Equal) and Carry (Dest. Less) ZF = CF = 0 (Dest. > Src) Lecture Outline Program Components I/O Instructions Jumps Based On . . . Specific flags Equality Unsigned comparisons Signed Comparisons Applications Program Components .386 Assembler directive tells the assembler to use the 386 instruction set. There are hardly any processors out there that are older than the 386 nowadays. Alternatively, you can use .486, .586 or .686, but .386 will be the most compatible instruction set. Program .
đang nạp các trang xem trước