1. Trang chủ
  2. » Kỹ Năng Mềm

Lecture Computer organization and assembly language - Lecture 14: Flow Control Instructions in Assembly Language - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

7 9 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 7
Dung lượng 90,95 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Flow Control Instructions in Assembly Language.. Let’s Enjoy[r]

Trang 1

CSC 221

Computer Organization and Assembly

Language

Lecture 14:

Flow Control Instructions in

Assembly Language

Trang 2

Lecture 13: Review

top:

jmp top

JMP Instruction

• JMP is an unconditional jump to a label that is usually

within the same procedure

• Syntax: JMP target

Logic: EIP target

• Example:

• Clock Cycle

• Instruction Cycle

one cycle 1

0

Trang 3

LOOP Instruction

• The LOOP instruction creates a counting loop

• Syntax: LOOP target

• Logic:

0000000E

Trang 4

Lecture 13: Review

(cont.)

Nested Loops

.data

count DWORD ?

.code

L1:

.

Trang 5

• Assembly Language Examples: Control Flow

– JMP Instruction

– LOOP Instruction

– LOOP Example

– Summing an Integer Array

Trang 6

Let’s Enjoy ASSEMBLY LANGUAGE

Trang 7

• Instruction Execution

FLOW CONTROL Instruction Examples

• JMP Instruction

• LOOP Instruction

Ngày đăng: 01/04/2021, 18:34

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm