CS-401 Computer Architecture Assembly Language Programming

Slides:



Advertisements
Similar presentations
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.
Advertisements

Computer System Basics 2 Hard Drive Storage & File Partitions Computer Forensics BACS 371.
SEMINAR ON FILE SLACK AND DISK SLACK
Flow Diagram: Push flags, CS, IP Pop IP,CS,flags Push AX,BX,CX,DX,ES,DS,SI,DI,BP POP BP,DI,SI,DS,ES,DX,CX,BX,AX.
BY Kamran Yousaf Application of Computer Graphics and Animation Using C++ Language.
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 14: Disk Fundamentals (c) Pearson Education, All rights reserved. You may modify.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Chapter 7 Programming with DOS and BIOS Function Calls Objectives: The use of DOS and BIOS function call How to read the PC’s keyboard How to send text.
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.
What is ‘bootstrapping’? The process of loading larger programs for execution than can fit within a single disk-sector.
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Files & Partitions BACS 371 Computer Forensics. Data Hierarchy Computer Hard Disk Drive Partition File Physical File Logical File Cluster Sector Word.
Hard Disk Assemblies. Inside a Hard Disk How a Hard Disk Works.
Tel : 同济大学软件学院 UEFI 与固件程序设计.
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 14: Disk Fundamentals (c) Pearson Education, All rights reserved. You may.
Text-Mode Programming Question #1 What are the three levels of access to the video display when writing characters on the screen in text mode?
1. Stage-1 Bootloader ENGI 3655 Lab Sessions Richard Khoury.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
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.
Lecture 27. Extended Read Service used for extended read is int 13h/42h On Entry AH=42H DL=drive # DS:SI= far address of Disk address packet On Exit If.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
10H Interrupt. Option 0H – Sets video mode. Registers used: – AH = 0H – AL = Video Mode. 3H - CGA Color text of 80X25 7H - Monochrome text of 80X25 Ex:
FAT File Allocation Table
Computer Forensics Hard Drive Format.
Section 13.2 – Secondary storage management (Former Student’s Note)
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
Chapter 7 Volume versus Partition. Cylinder, Head, and Sector (CHS) Hard or fixed disks store information on a revolving platter of metal or glass coated.
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.
GUID Partition Table Unified Extensible Firmware Interface (UEFI) GUID Partition Table (GPT)
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Lecture 9 Design of the Computer Instruction Set and the CPU Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
File Operations. FILE PROCESSING For the purposes of the following discussion, reading means copying all or part of an existing file into memory Writing.
Lecture 26.
ΜComputer Structure μProcessor Memory Bus System I/O Ports.
Master Boot Record (MBR)
Boot Engineering Extension Record (B.E.E.R.) By Curtis E. Stevens.
Assembly Language for x86 Processors 7th Edition Chapter 15: Disk Fundamentals (c) Pearson Education, All rights reserved. You may modify and copy.
Section 13.2 – Secondary storage management (Former Student’s Note)
Computer Forensics NTFS File System.
CS-401 Computer Architecture & Assembly Language Programming
ES C263 Microprocessor Programming and Interfacing
Programming the I/O Hardware
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
CS-401 Compute Architecture & Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
Introduction to Assembly Language
CS-401 Computer Architecture & Assembly Language Programming
Programming the I/O Hardware
8086 Registers Module M14.2 Sections 9.2, 10.1.
Module 2: Computer-System Structures
CS-401 Computer Architecture & Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
Computer Forensics NTFS File System.
CS-401 Computer Architecture & Assembly Language Programming
Disk Structure Analysis
CS-401 Assembly Language Programming
CS-401 Computer Architecture & Assembly Language Programming
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
CS-401 Computer Architecture & Assembly Language Programming
Process.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Module 2: Computer-System Structures
CS-401 Computer Architecture and Assembly Language Programming
Department of Computer Science
Module 2: Computer-System Structures
Recap – Intro to Project 3 and FAT32
Presentation transcript:

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

Lets revise the last lecture

Secondary storage

int 0x13 Disk Services 8 3 1 1 5 2 2 2 2 2 4 File name Extension 8 3 1 1 5 2 2 2 2 2 4 File name Creation Date Time Extension File Size Last Accessed Date Starting Cluster High Time Date Starting Cluster Low Flag Byte Reserved

int 0x13 Disk Services AH = 0*00 DL = Drive RETURN AH = Status CF = Clear on success CF =Set on error

int 0x13 Disk Services Read Sector to Memory AH = 0x02 AL = sector to read CH = cylinder number (low 8 bits) CL = sector number 1-63 (bits 0-5) cylinder number (high 2 bits) DH = head number DL = drive number ES:BX = data buffer Return CF = set on error AH = status AL = sectors transferred

int 0x13 Disk Services Write Disk Sector AH = 0x03 AL = sector to write CH = cylinder number (low 8 bits) CL = sector number 1-63 (bits 0-5) cylinder number (high 2 bits) DH = head number DL = drive number ES:BX = data buffer Return CF = set on error AH = status AL = sectors transferred

int 0x13 Disk Services Get Drive Parameters AH = 0x08 DL = drive number Return CF = set on error AH = status BL = drive type CH = maximum cylinder number (low 8 bits) CL = maximum cylinder number (high 2 bits) maximum sector number (bits 0-5) DH = maximum head number DL = number of drives

int 0x13 Disk Services Extended Read AH = 42h DL = drive number DS:SI = disk address packet (below) Return CF = set on error AH = status disk address packet

int 0x13 Disk Services Address Packet 1 1 2 4 8 Absolute Block 1 1 2 4 8 Absolute Block Number Transfer Blocks Blocks Size Reserved

int 0x13 Disk Services Extended Write AH = 43h AL = write flag DL = drive number DS:SI = disk address packet Return CF = set on error AH = status

Partition Table 446 16x4 2 MBR Partition Entries Signature

Partition Table Partition Entry 1 3 1 3 4 4 Status Starting CHS 1 3 1 3 4 4 Starting LBA partition Size of Starting CHS Ending CHS Status Partition Type