chapter 6 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Chapter 6 PowerPoint Presentation
Download Presentation
Chapter 6

Loading in 2 Seconds...

play fullscreen
1 / 17

Chapter 6 - PowerPoint PPT Presentation


  • 97 Views
  • Uploaded on

Chapter 6. In introduction to System Software and Virtual Machine ***Assembly Language. Operating System. OS – is the program that control the overall operation of the computer, and it is the single most important piece of system software on a computer.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Chapter 6' - vangie


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
chapter 6

Chapter 6

In introduction to System Software and Virtual Machine

***Assembly Language

operating system
Operating System
  • OS – is the program that control the overall operation of the computer, and it is the single most important piece of system software on a computer.
  • It is the interface between the users and the all other hardware and software resources in a computer system.
different os in different systems
Different OS in Different Systems
  • There are many different OS which operating on different computer systems.
  • For the beginners, the GUI (graphical user interface), such as Windows, is a typical OS.
  • The other OS examples are UNIX, DOS, the OS for IBM mainframe computers,…
the main function of an os
The main Function of an OS

Operating Systems

Utilities

Language

Services

Memory

Managers

Information

Managers

Scheduler

Loaders

Garbage Collectors

Linkers

Text Editors

Graphics Routines

… …

Interpreters

Assemblers

Compilers

File Systems

Database Systems

what kind of language to write os
What kind of language to write OS?
  • It depends on different systems and application’s preference.
  • Open system versus Non-open Systems
assembly language
Assembly Language
  • ?

Assembly

Language

Program

assembler

Machine

Language

Program

Loader

Results

.EXE ->Memory

Hardware

the ass in our simulator
The ASS in Our Simulator
  • Let’s take a close look one by one:
  • 1. 0000 --- Load X Contents in [X] R
  • Here X is a memory address and R is the register (implied)
  • Example: 0000 0000 0000 0101
store x
STORE X
  • 0001 --- STORE X R  [X]
  • The content inside R  memory location X
  • Example: 0001 0000 0000 0111
  • However, in most situations, we use a symbol to represent X.
clear x and add x
CLEAR X and ADD X
  • 0010 – CLEAR X 0  [X]
  • 0011 – ADD X ---------------- R+[X] R
increment x and subtract x
INCREMENT X and SUBTRACT X
  • 0100 – INCREMENT X ---[X]+1  [X]
  • 0101 – SUBTRACT X --- R-[X] R
decrement x and compare x
DECREMENT X and COMPARE X
  • 0110 – DECREMENT X -----[X] – 1  [X]
  • 0111 – COMPARE X
  • 1. if [X] > R then GT=1, else GT=0
  • 2. if [X] = R then EQ=1, else EQ=0
  • 3. if [X]<R then LT=0, else LT = 0
jump x and jumpgt x
JUMP X and JUMPGT X
  • 1000 – JUMP X -Get the instruction from address X unconditionally.
  • 1001 JUMPGT X  Get the next Instruction from X only if GT=1
  • **** X could be a symbol to represent any legal address
jumpeq x and jumplt x
JUMPEQ X and JUMPLT X
  • 1010 – JUMPEQ X Get the next instruction from X only if EQ=1
  • 1011 – JUMPLT X  Get the next instruction from X only if LT=1
jumpneq x and in x
JUMPNEQ X and IN X
  • 1100 – JUMPNEQ X  Get the next instruction from X only if EQ=0
  • 1101 – IN X  Input a integer value from the standard input device and store it into X.
  • The standard input device is the Keyboard.
out x and halt
OUT X and HALT
  • 1110 – OUT X  Output the number stored in X to display in decimal form.
  • HALT – Stop Program Execution.
begin and end
.BEGIN and .END
  • To indicate the beginning and the end of the program.
separate code and data
*** Separate Code and DATA
  • Always put the DATA after the HALT Instruction to prevent the wrong action from the program.