TAILIEUCHUNG - Lecture Computer organization and assembly language: Chapter 12 - Dr. Safdar Hussain Bouk

In this chapter, the following content will be discussed: Transistor: building block of computers, simple switch circuit, n-type MOS transistor, logic gates, inverter (NOT Gate),.and other contents. | CSC 221 Computer Organization and Assembly Language Lecture 12: Addressing Modes in Assembly Lecture 11: Review OFFSET Operator OFFSET returns the distance in bytes, of a label from the beginning of its enclosing segment PTR Operator Overrides the default type of a label (variable). Provides the flexibility to access part of a variable. mov esi,OFFSET bVal ;ESI = 00404000 -------------------------------- .data array BYTE 100 DUP(?) .code mov esi,OFFSET array ; ESI is p Data-Related Operators and Directives .data myBytes BYTE 12h,34h,56h,78h .code mov ax,WORD PTR [myBytes] mov ax,WORD PTR [myBytes+2] mov eax,DWORD PTR myBytes Lecture 11: Review TYPE Operator The TYPE operator returns the size, in bytes, of a single element of a data declaration. LENGTHOF Operator The LENGTHOF operator counts the number of elements in a single data declaration. Data-Related Operators and Directives .data var1 BYTE ? var4 QWORD ? .code mov eax,TYPE var1 ; 1 mov eax,TYPE var4 ; 8 .data array1 WORD 30 .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.