Computer Platforms Week 4: Assembly Language & Operating Systems.

Slides:



Advertisements
Similar presentations
Operating System.
Advertisements

Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Drives, Directories and Files. A computer file is a block of arbitrary information, or resource for storing information. Computer files can be considered.
Chapter 3 Understanding the Boot Process and Command Line.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#4)
Lab6 – Debug Assembly Language Lab
COSC 120 Computer Programming
Computer Systems. Computer System Components Computer Networks.
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
From: From:
CS2422 Assembly Language & System Programming November 2, 2006.
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
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.
Operating Systems.
 Contents 1.Introduction about operating system. 2. What is 32 bit and 64 bit operating system. 3. File systems. 4. Minimum requirement for Windows 7.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
Systems Software Operating Systems.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Computer Organization
Computer Systems Week 10: File Organisation Alma Whitfield.
How Hardware and Software Work Together
DOS- Disk Operating System By: Prof.M.B.Salunke Asst. Prof., Department of Computer Engg, SITS, Pune-41.
By the end of this lesson you will be able to explain: 1. What is the BOOT process 2. A Cold Boot 3. A Warm Boot.
Intro. to Game Programming Want to program a game?
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.
There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Computer Systems 1 Fundamentals of Computing Von Neumann & Fetch Execute Cycle.
How Java Programs Work MIS 3023 Business Programming Concepts II The University of Tulsa Professor: Akhilesh Bajaj All slides in this presentation ©Akhilesh.
A+ Guide to Software Managing, Maintaining and Troubleshooting THIRD EDITION Chapter 2 How an OS Works with Hardware and Other Software.
Standard Grade Computing System Software & Operating Systems.
Boot Sequence (DOS) for the IBM PC
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.
Evolution of Programming Languages Generations of PLs.
Introduction to Interactive Media Interactive Media Tools: Software.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 13 Understanding and Installing Windows 2000 and Windows NT.
Topic 1Topic 2Topic 3Topic 4Topic
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
Chapter 2 Instruction Addressing and Execution. Lesson plan Review some concepts in the first week First assembly program with EMU8086 Related concepts.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
OPERATING SYSTEM - program that is loaded into the computer and coordinates all the activities among computer hardware devices. -controls the hardware.
COMPUTER ORGANISATION I HIGHER STILL Computing Computer Systems Higher Marr College Computing Department 2002.
21/11/2005CAP2411 Input & Output Instructions CPU communicates with the peripherals through I/O registers called I/O ports. There are 2 instructions, IN.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Problem Solving Techniques Using Pascal Allen C.-H. Wu Department of Computer Science Tsing Hua University Hsinchu, Taiwan 30043, ROC
Assembly Programming Notes for Practical 1
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
1 Asstt. Prof Navjot Kaur Computer Dept PRESENTED BY.
Software Engineering Algorithms, Compilers, & Lifecycle.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Computer Basics.
Operating System.
Computer Organization & Assembly Language Chapter 3
Computer System Structures
TRANSLATORS AND IDEs Key Revision Points.
Week 5 Computers are like Old Testament gods; lots of rules and no mercy. Joseph Campbell.
COMP 1321 Digital Infrastructure
Modern PC operating systems
There are different types of translator.
A Top-Level View Of Computer Function And Interconnection
Week 5 Computers are like Old Testament gods; lots of rules and no mercy. Joseph Campbell.
Presentation transcript:

Computer Platforms Week 4: Assembly Language & Operating Systems

Assembly Language  Is at a level below programming languages Eg.- C++, Java, Pascal  Assembly language is converted into machine code Machine code is raw data that would take ages for a human to decipher This is the data and instructions which is used by the Fetch Execute Cycle

Assembly Language  Programs or sequences can be written in assembly language Which is what is effectively done when we compile a C++ program  Why write in assembly language? Faster (direct) access to CPU Some programs need to be written to operate at a lower level  E.g.- Device Drivers

A simple Assembly program (Honest!) org 100h mov dx,msg mov ah,9 int 21h mov ah,4Ch int 21h msg db 'Hello, World!',0Dh,0Ah,'$'

A simple Assembly program (Honest!) org 100h mov dx,msg mov ah,9 int 21h Tells the compiler (NASM) the program will be loaded at memory address 100h Moves the address of our message (msg) into a register which is known as the DX Register (Data Register) Moves the value 9 into a register called the AH Register ‘int’ calls an ISR (interrupt service routine) “DOS Services” this is correlated with contents of AH (9) to determine that we want to output a message– contents of DX (msg)

A simple Assembly program (Honest!) mov ah,4Ch int 21h msg db 'Hello, World!',0Dh,0Ah,'$' Effectively tells the processor to stop. Otherwise it will try to fetch and execute the next instructions it comes to msg is a variable name (the name of out message string) db is an instruction to the compiler to use the information the follows as data Then out message ‘Hello, World!’ (note: ‘ ‘ marks) 0Dh, 0Ah – performs carriage return and line feed $ terminate string output – (int 21h & 9 in ah requirement)

A simple Assembly program (Honest!)  OK, so what does it actually do? Output “Hello, World!” to the screen  How? Type the program into a text document and call it ‘hello.asm’ Use the NASM program  This is used to compile assembly language programs Rename the produced file as type COM  ren hello hello.com Run the program  hello

A simple Assembly program (Honest!)  Step by Step:

Operating Systems  The main piece of software you interact with  Application run ‘on top’ of the OS  Is started up with the computer Boot process  Also deals with organising files and directories on storage media How physical data on the disk is organised logically in the OS

Windows Boot Process  What happens when a Windows PC is kicked into life? System goes through low-level boot procedure  POST  Device / system initialisation Warm boot stage initialises  Search for boot record IBMBIO.COM then IBMDOS.COM (booting DOS) COMMAND.COM then AUTOEXEC.BAT loaded  This starts the Windows programs running

Windows Boot Process  Getting things to load at start-up Start-up Folder  Easy to configure  Useful for application loading System Files  AUTOEXEC.BAT  CONFIG.SYS  WIN.INI  SYSTEM.INI  Historically used for DOS tweaks  Harder to configure

Windows Boot Process  Getting things to load at start-up Windows Registry  Contains system & essential information for software and hardware on the PC  Stores many settings  Hard to configure (?) Easy for an amateur to screw up!  Can point to application (EXE) files to run on start-up or on certain actions  Common place for viruses to hide!!!

File Systems  FAT 16 Or just ‘FAT’ Used by DOS and Windows 95 backwards  FAT 32 Used in Windows 95 (B) – current  NTFS New Technology File System (MS) 32-bit Secure Used in Windows NT/2000/XP

File Systems  HPFS High Performance File System 32-bit Used in OS/2 (remember that?)  ISO 9660 CD-ROM  ISO DVD