Runtime Program Structure Command.com program supplied with MS- DOS and Windows (CMD.EXE for 2000 and XP)is called the command processor. It interprets.

Slides:



Advertisements
Similar presentations
DOS commands.
Advertisements

Programming 8086 – Part IV Stacks, Macros
Register In computer architecture, a processor register is a small amount of storage available on the CPU whose contents can be accessed more quickly than.
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.
CS 450 Module R4. R4 Overview Due on March 11 th along with R3. R4 is a small yet critical part of the MPX system. In this module, you will add the functionality.
Computer Organization CS224 Fall 2012 Lesson 12. Synchronization  Two processors or threads sharing an area of memory l P1 writes, then P2 reads l Data.
Debugging What can debuggers do? Run programs Make the program stops on specified places or on specified conditions Give information about current variables’
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Activity One Use the Windows Explorer program to create a new folder. Name the folder by your first name. Click on the windows explorer icon then highlight.
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
Structure of DOS application programs. Contents: 1. PSP 2..COM and.EXE 3. TSR: Terminate and Stay Resident Programs.
Protected Mode. Protected Mode (1 of 2) 4 GB addressable RAM –( to FFFFFFFFh) Each program assigned a memory partition which is protected from.
FILES  A file is a collection of related information  Files are kept in directories on a disk.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 4 Disk Operating System (DOS) and the Command-Line Interface McGraw-Hill.
Conventional Memory 8088 processor could address only 1 MB
DOS- Disk Operating System By: Prof.M.B.Salunke Asst. Prof., Department of Computer Engg, SITS, Pune-41.
DOS Understanding what you can do. Operating System Traits An OS only works with one type of processor –X86 processors for us; Motorola for Mac –Must.
The Command Line Interface. The OS files IO.sys MSDOS.sys Command.com IO and MSDOS are hidden files, COMMAND.COM shows in directory listings.
A genda for Today What is memory management Source code to execution Address binding Logical and physical address spaces Dynamic loading, dynamic linking,
Microprocessors Sunday, Mar. 23 Dr. Asmaa Farouk Faculty of Engineering, Electrical Department, Assiut University.
MS-DOS/PC-DOS by: Temitope Akanni CS550: Operating Systems Fall 2003.
Computer Hardware PC Operating Systems. What is an operating system? An OS is the interface between the user and the computer hardware It provides the.
DOS  In the 1980s or early 1990s, the operating system that shipped with most PCs was a version of the Disk Operating System (DOS) created by Microsoft:
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Most modern operating systems incorporate these five components.
The Command Line Mostly MS Dos with some UNIX/LINUX Copyright © Curt Hill.
CIS250 OPERATING SYSTEMS Memory Management Since we share memory, we need to manage it Memory manager only sees the address A program counter value indicates.
Chapter 2 Instruction Addressing and Execution. Lesson plan Review some concepts in the first week First assembly program with EMU8086 Related concepts.
MS-DOS / PC-DOS Lindsey Buranych Alan Crouch Matthew Letnaunchyn Sandy Saab Carl Shapiro.
Topic 2d High-Level languages and Systems Software
2003 Dominic Swayne1 Microsoft Disk Operating System and PC DOS CS-550-1: Operating Systems Fall 2003 Dominic Swayne.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /29/2013 Lecture 13: Compile-Link-Load Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE.
Running Modflow with Batch Files. Dos basics cd = change directory (dOs Is NoT cAsE sEnSiTiVe) dir = shows you what is in the directory (It gives you.
“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.
Debuggers A program needed when writing any type of code Displays the contents of memory Lets you view registers and variables and see how they change.
File I/O MS-DOS Interrupt 21h has many functions dealing with file and directory I/O services. Both MS-DOS and MS_Windows use 16- bit integers called HANDLES.
5 The Shell, the IOCS, and the File System. © 2005 Pearson Addison-Wesley. All rights reserved Figure 5.1 The components of a modern operating system.
UHD:CS2401: A. Berrached1 The Intel x86 Hardware Organization.
INTRODUCTION TO MICROPROCESSOR Engr. Ammar Anwar Khan.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Assembly Programming Notes for Practical 1
Chapter 2 Parts of a Computer System. 2.1 PC Hardware: Memory.
Basic DOS How to get some work done. It’s all a file Everything is a file: OS files, Application files, Data files and Game files Files have 8.3 names:
EEL 3801 Part IV The Assembler. OFFSET Operator Returns address of variable used as operand. Actually, it represents the offset from the beginning of.
University of Sargodha, Lahore Campus Prepared by Ali Saeed.
File Systems - Part I CS Introduction to Operating Systems.
Microprocessor Fundamentals Week 2 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
COMP091 – Operating Systems 1 Memory Management. Memory Management Terms Physical address –Actual address as seen by memory unit Logical address –Address.
BIOS and DOS Interrupts Basic Input /Outpu System Disk Operating System.
Internal Programming Architecture or Model
Memory Management Chapter 5 Advanced Operating System.
DOS- Disk Operating System. Contents Internals of DOS, DOS loading, DOS memory map, Concepts of TSR,
Computer Organization & Assembly Language University of Sargodha, Lahore Campus Prepared by Ali Saeed.
BITS Pilani Pilani Campus Pawan Sharma Lecture / ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
CS501 Advanced Computer Architecture Lecture 29 Dr.Noor Muhammad Sheikh.
Chapter 2 Instruction Addressing and Execution. Lesson plan Review some concepts in the first week First assembly program with EMU8086 Related concepts.
CS 140 Lecture Notes: Virtual Memory
Assembly language.
Microprocessor and Assembly Language
Computer Organization & Assembly Language Chapter 3
University of Gujrat Department of Computer Science
Topic 2e High-Level languages and Systems Software
8086 Registers Module M14.2 Sections 9.2, 10.1.
CS 140 Lecture Notes: Virtual Memory
Symbolic Instruction and Addressing
Microprocessor and Assembly Language
Intel 8086.
CSE 542: Operating Systems
Presentation transcript:

Runtime Program Structure Command.com program supplied with MS- DOS and Windows (CMD.EXE for 2000 and XP)is called the command processor. It interprets each command typed at a prompt.

Procedure for Command Typed at Prompt 1.Is command internal (DIR, REN, or ERASE)? – if so, immediately execute by a memory-resident MS-DOS routine. 2.Is there a matching file with extension of COM? – if file is in current directory, it is executed. 3.Is there a matching file with extension of EXE? If file is in current directory, it is executed. 4.Is there a matching file with extension of BAT? -If file is in current directory, it is executed. BAT are batch files – a text file containing MS_DOS commands to be executed as if commands were typed at the console. 5.If no COM, EXE, or BAT file in the current directory, first directory in current path is searched. If not found, proceeds to next directory in path. Continues until file is found or search is exhausted.

Transient Programs (COM and EXE programs) Application programs with extensions of COM and EXE are called transient programs. Generally, loaded into memory long enough to be executed; then the memory they occupy is released. Can leave a portion of their code in menry when they exit; these are called memory- resident programs.

Program Segment Prefix (PSP) A special 256-byte block at the beginning of a a program as it is loaded into memory OffsetComments 00-15MS-DOS pointers and vector addresses 16-2BReserved by MS-DOS 2C-2DSegment address of the current environment string 2E-5BReserved by MS-DOS 5C-7F File Control Blocks 1 and 2, used mainly by pre-MS-DOS 2.0 programs 80-FF Default disk transfer area and a copy of the current MS_DOS command tail

COM Programs Unmodified binary image of a machine-language program. Loaded into memory by MS_DOS at the lowest available segment address; a PSP is created at offset 0. Code, data and stack are all stored in the same segment (physical and logical)Uses TINY memory model Program can be as large as 64k (minus 256 for PSP and 2 bytes at end of stack) FFFE CODE CS,DS,ES,SS SP PSPDATA STACK

EXE Programs Stored on Disk with an EXE header followed by a load module containing program. Header is not loaded into memory; instead contains info used by MS_DOS to load and execute the program. PS is created at first available address, program is placed in memory above it. DS and ES ared set to program’s load address. CS and IP set to entry point of code, SS set to beginning of stack segment, SP set to stack size.