CS-401 Computer Architecture & Assembly Language Programming

Slides:



Advertisements
Similar presentations
©2002, Ed Skoudis Format String Stack View main() { char user_input[100]; char buffer[100]; int x; … /*get user_input*/ … snprintf(buffer, sizeof buffer,
Advertisements

Lecture Computer Science I - Martin Hardwick Strings #include using namespace std; int main () { string word; cout
Parts of the Computer and Storage Devices By Alisha Mallette.
Chapter 4 Storing Information in a Computer Peter Nortons Introduction to Computers.
Chapter 4 – Page 1QM-130Dr. Sulaiman Al-Rafee Chapter 4 – Storage Chapter Summary Properties of Storage Systems Magnetic Disks Optical Disks Other types.
Lecture # 7. Topics Storage Techniques of Bits Storage Techniques of Bits Mass Storage Mass Storage Disk System Performance Disk System Performance File.
P3- Represent how data flows around a computer system
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Secondary Storage “I have all this information, where do I keep it all?” A PowerPoint Presentation by Amy E. Allen Comm 165 “I have all this information,
Chapter 9 Using Disks and Files Objectives: The difference between Floppy and Hard Disks What the Boot Sector is for What the File Allocation Table is.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
1 CS150 Introduction to Computer Science 1 Professor: Chadd Williams
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Hard Disk Assemblies. Inside a Hard Disk How a Hard Disk Works.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Storage units. We need Storage Units to save our data.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
LIS508 lecture 5: storage devices Thomas Krichel
BIOS1 Basic Input Output System BIOS BIOS refers to a set of procedures or functions that enable the programmer have access to the hardware of the computer.
CP104 Introduction to Programming File I/O Lecture 33 __ 1 File Input/Output Text file and binary files File Input/output File input / output functions.
I/O Management and Disk Structure Introduction to Operating Systems: Module 14.
1 8/29/05CS150 Introduction to Computer Science 1 Professor: Shereen Khoja
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 15 – The Hard Drive.
External Storage Primary Storage : Main Memory (RAM). Secondary Storage: Peripheral Devices –Disk Drives –Tape Drives Secondary storage is CHEAP. Secondary.
SECONDARY STORAGE DEVICES. Agenda of Today’s Lecture  Introduction to Hardware  Types of hardware devices  Storage Devices  Secondary Storage devices.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 7 Floppy Drives.
The Operating System ICS3M.  The operating system (OS) provides a consistent environment for other software programs to execute commands.  It gives.
Chapter 8 External Storage. Primary vs. Secondary Storage Primary storage: Main memory (RAM) Secondary Storage: Peripheral devices  Disk drives  Tape.
DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen.
1 Floppy Drive Formatting ©Richard Goldman February, 2001.
Writing and Reading Files Methods for processing disk files File Control Blocks (FCBs) –Supported by DOS –Can address drives and filenames.
Software Interrupt Instruction ‘int’ A ‘int’ instruction is like a special kind of subroutine call. Will discuss details later ‘int’ stands for INTERRUPT.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
More on data storage and representation CSC 2001.
BOOT SECTOR, RDE AND FAT ANALYSIS AND STUDY. FLOPPY CONSTRUCTION 1.Write - Protect Notch. 2.Hub. 3.Shutter. 4.Outer Jacket. 5.Protective Woolen Film.
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
Control Structure vs. Assembly Language NASM. If-then-else If conditional then then_actions jump to endif else else_actions endif.
Disk storage systems Question#1 (True/False) A track is divided into multiple units called sectors.
Section 13.2 – Secondary storage management. Index 13.2 Disks Mechanics of Disks The Disk Controller Disk Access Characteristics.
Programmer’s View of Files Logical view of files: –An a array of bytes. –A file pointer marks the current position. Three fundamental operations: –Read.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
 To arrange the data on the disk surface, the disk surface is divided in to different sections called :-  Slides or heads  Tracks  Sectors  Cylinders.
Program Structure Example for Data Segment CRLF EQU 0DH, 0AH PROMPT DB 'Enter a digit between 0 and 9', 0 VAR1 DB ? ARRAY DW 1234h, 23h, 0FF54h.
Chapter 2: Computer-System Structures
Chapter 12: File System Implementation
CS-401 Compute Architecture & Assembly Language Programming
CSCI 161: Introduction to Programming
Partitioning a Hard Drive
CS-401 Computer Architecture Assembly Language Programming
Operation System Program 4
CS-401 Computer Architecture & Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
CS-401 Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
Sector 25 from the Root Directory (in 32 byte chunks)
CS-401 Computer Architecture & Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
By Nasser Halasa Assembly Language.
CS-401 Computer Architecture and Assembly Language Programming
Department of Computer Science
Secondary Storage Devices
Computer Electronic device Accepts data - input
Microprocessor and Assembly Language
CS-401 Computer Architecture & Assembly Language Programming
Presentation transcript:

CS-401 Computer Architecture & Assembly Language Programming Lecture-34 DOS Services Secondary Storage

Lets revise the last lecture

DOS services

Secondary Storage

Read Char from std Input with Echo int 0x21 DOS Services Read Char from std Input with Echo AH = 0x01 Return AL = char read

Write String to std Output int 0x21 DOS Services Write String to std Output AH = 0x09 DS:DX = ‘$’ terminated string address

int 0x21 DOS Services Buffered Input AH = 0x0A DS:DX = buffer Return buffer = DS:DX filled with input

DOS Input Buffer size data data 00 01 02 n+1 char read . . . . . . . . . . . . . data 00 01 02 n+1

Disk Formation

Disk Formation

Disk Formation 2 heads 80 tracks 18 sectors/track bytes/sector 2880 total sectors 1440 K total bytes

Disk Formation

Floppy Drive

Floppy Drive

Hard Disk Drive

MS DOS Logical Formation Boot FAT 1 FAT 2 Root Dir Data Head 0 Track 0 Sector 1 Head 0 Track 0 Sector 2 Head 0 Track 0 Sector 11 Head 1 Track 0 Sector 2 Head 0 Track 1 Sector 16 Head 1 Track 79 Sector 18