“It was the night before midterm”. Midterm rule (March 16 nd, 2005) - Student ID is required. Open books, note exam - Don’t: - Leave the exam room after.

Slides:



Advertisements
Similar presentations
Programming 8086 – Part IV Stacks, Macros
Advertisements

R4 Dynamically loading processes. Overview R4 is closely related to R3, much of what you have written for R3 applies to R4 In R3, we executed procedures.
There are two types of addressing schemes:
Assembly Programming Notes for Practical2 Munaf Sheikh
CSC 3210 Computer Organization and Programming Introduction and Overview Dr. Anu Bourgeois.
Physics 413 Chapter 8 IBM PC Assemblers An assembler is a program that takes your assembly language program and converts the instructions into op-codes.
ICS312 Set 6 Operands. Basic Operand Types (1) Register Operands. An operand that refers to a register. MOV AX, BX ; moves contents of register BX to.
More about procedures and Video Processing. Lesson plan Review existing concepts More about procedures and boolean expression Video processing.
Video systems (continue). Practice Modify the program to get a string from a keyboard to display the input string on the middle of the screen with reverse.
Data Movement Instructions
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#4)
C Programming for engineers Teaching assistant: Ben Sandbank Home page:
Set 20 Interrupts. INTERRUPTS The Pentium has a mechanism whereby external devices can interrupt it. Devices such as the keyboard, the monitor, hard disks.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#8) By Dr. Syed Noman.
Fundamentals of Assembly language
Intro. to Game Programming Want to program a game?
ICS312 Set 4 Program Structure. Outline for a SMALL Model Program Note the quiz at the next lecture will be to reproduce this slide.MODEL SMALL.586 ;
Review Review Review. Concepts Comments: definition, example, different types of comments Class: definition, example Object: definition, example Data.
Introduction to Subroutines. All the combinations in which a subroutine can be written 1. The subroutine may be: a. Internal or b. External 2. The type.
Chapter 3 Elements of Assembly Language. 3.1 Assembly Language Statements.
1 Agenda Administration Background Our first C program Working environment Exercise Memory and Variables.
1/2002JNM1 Positional Notation (Hex Digits). 1/2002JNM2 Problem The 8086 has a 20-bit address bus. Therefore, it can access 1,048,576 bytes of memory.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Debug and Assembler By, B.R.Chandavarkar Lect. COMP Department NITK, Surathkal.
Chapter 2 Instruction Addressing and Execution. Lesson plan Review some concepts in the first week First assembly program with EMU8086 Related concepts.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /29/2013 Lecture 13: Compile-Link-Load Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE.
Executing and Linking an assembly program. Lesson plan Review Program logic and control Practice exercise Assembling, Linking and Executing Programs Practice.
Video systems. Lesson plan Review the code for the previous exercise Video systems Review for midterm exam.
21/11/2005CAP2411 Input & Output Instructions CPU communicates with the peripherals through I/O registers called I/O ports. There are 2 instructions, IN.
1 CS161 Introduction to Computer Science Topic #17.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 7.
Assembly Language programming
Lecture 9 (The Stack and Procedures). 1 Lecture Outline Introduction The Stack The PUSH Instruction The POP Instruction Terminology of Procedures INDEC.
In Class Program Write, assemble and test a program: –Use the DB directive to define the following list of numbers and name it array: 31h, 32h, 33h, 34h.
University of Tehran 1 Microprocessor System Design Omid Fatemi Machine Language Programming
Assembly Language Lecture 2. Lecture Outline Program Structure Memory models Data Segment Stack Segment Code Segment Input and Output Instructions INT.
Internal Programming Architecture or Model
Preliminary to Assembly Language Programming CE 140 A1/A2 28 June 2003.
File Operations. FILE PROCESSING For the purposes of the following discussion, reading means copying all or part of an existing file into memory Writing.
ASSEMBLY LANGUAGE PROGRAMMING. Course Objectives Identify the major component of a PC-based system, describe the steps involving in assembling, linking,
Chapter 2 Instruction Addressing and Execution. Lesson plan Review some concepts in the first week First assembly program with EMU8086 Related concepts.
1 Computer Architecture & Assembly Language Spring 2001 Dr. Richard Spillman Lecture 10 –Assembly V.
1st prog! Q: Read a char – from a keyboard & display it at the beginning of the next line! ====== A.
Assembly Language programming
BYTE AND STRING MANIPULATON
COURSE OUTCOMES OF MICROPROCESSOR AND PROGRAMMING
Additional Assembly Programming Concepts
Lecture 4 Control Flow Structures (LOOPS)
CS 301 Fall 2001 – Chapter 3 Slides by Prof. Hartman, following “IBM PC Assembly Language Programming” by Peter Abel 9/17/2018.
(The Stack and Procedures)
Defining Types of data expression Dn [name] expression Dn [name]
Symbolic Instruction and Addressing
BIC 10503: COMPUTER ARCHITECTURE
3.6 Data transfer Instructions
Stack and Subroutines Module M17.1 Section 11.2.
Software comes from heaven when you have good hardware. Ken Olsen
8086 Registers Module M14.2 Sections 9.2, 10.1.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Symbolic Instruction and Addressing
(The Stack and Procedures)
Symbolic Instruction and Addressing
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Lecture 06 Programming language.
CS-401 Assembly Language Programming
CS 286 Computer Organization and Architecture
Chapter 6 –Symbolic Instruction and Addressing
(The Stack and Procedures)
Software comes from heaven when you have good hardware. Ken Olsen
Computer Architecture and System Programming Laboratory
(The Stack and Procedures)
Presentation transcript:

“It was the night before midterm”

Midterm rule (March 16 nd, 2005) - Student ID is required. Open books, note exam - Don’t: - Leave the exam room after the exam is distributed - Use cell phone or computers (PC) - Talk with each other during the exam - Limit of questions you can ask teacher during exam time. If you ask more than two questions, you will have some points off taken from your exam.

Final preparation Reading: slides, relevant materials from books from Week 1 to now Overview: all homeworks, programming assignments, practice exercises from Week 1 to present

Multiple choices 1.1 The binary representation for decimal 90 is a c b d Which one of the following statements is invalid? (a) MOV AX,0241H (b) MOV CL,0241H (c) MOV DX,0241H (d) MOV BX,0241H 1.3. The instruction that initializes a register with an offset address is (a) PUSH (b) LEA (c) MOV (d) LOAD

Multiple choices 1.4. Which type of MOV operation is invalid? (a) Memory to memory (b) Immediate to memory (c) Memory to register (d) Register to register 1.5. The area that the system establishes in memory immediately preceding a program loaded for execution is the (a) code segment (c) program segment prefix (b) data segment (d) stack

Filling in blank 2.1. The standard file handle numbers are (a) _00__ for keyboard input; (b) _01__ for screen display; (c) _04__ for printer INT 21H function _40H__ for file handles requests display. Load file handle 01 in the BX___ register, the number of characters to display in the _CX__ register, and the address of the area to display in the _DX__ register.

Filling in blank 2.3. The program loader store _the address of program segment __prefix__in each segment register on loading an *.EXE program for execution 2.4. (a) The assembly step involves translating from _source_____ code into machine _object_____ code. (b) The _link___ step involves converting an.OBJ module into an.EXE (executable) machine code module The DS register contains the starting address of the _data____ segment; CS contains the starting address of the _code____ segment; SS contains the starting address of the _stack_____.

Problems 1. Use INT 21H function 40H to display the message “What is the date (mm/dd/yy)?”. Following the message with a Carriage Return, and Line Feed 2. Copy the 40 elements of FIELD1 to FIELD2