Motorola 68000 Simulator - PowerPoint PPT Presentation

1 / 19
About This Presentation
Title:

Motorola 68000 Simulator

Description:

This program is available to order the source code ,read it and correct it ,and ... You can see all the available parts of the MC68K microprocessor. Parts of a MC68000 ... – PowerPoint PPT presentation

Number of Views:130
Avg rating:3.0/5.0
Slides: 20
Provided by: sfu5
Category:

less

Transcript and Presenter's Notes

Title: Motorola 68000 Simulator


1
Motorola 68000 Simulator
  • Alireza Fathi

2
Advanced programming Computer organization are
mixed
  • Object oriented programming
  • Knowledge of what happens in MC68K
  • More than 200kb code
  • UML class definition
  • Visual simulator involved
  • And lots of other things

3
  • This program has an editor that the source code
    will be written in it
  • This program is available to order the source
    code ,read it and correct it ,and defines if it
    will have errors
  • Then the source code will be compiled and
    executed and client can see the changing of the
    registers and memory units in the Visual
    Simulator Dialog box
  • You can see all the available parts of the MC68K
    microprocessor

4
Parts of a MC68000
  • 1- The visible part
  • 2- The invisible part
  • It is clear that in this program it is only
    available to see the visible parts as listed in
    the next page

5
Visible parts of MC68000
  • A0 ? A7 .. A7 SP
  • D0 ? D7
  • SR
  • PC
  • Memory Units of main memory
  • Condition codes

6
Defining the implementation of the program with
C
  • I have lots of classes and methods(functions)
    that I will describe during the text

7
Class work_Base
  • This class works with the different bases
  • Specially with decimal ,binary ,octal and hex
  • It is included in all other classes
  • For working with integers and registers

8
Abstract class MemoryHouse
  • It is an abstract class that has some childs as
    below
  • 1- Class byteHouse
  • 2- Class wordHouse
  • 3- Class longWordHouse

9
Usage of these classes
  • Every memory unit or register is a memory house
  • They could be byte , word or longword
  • All of them can contain some thing
  • All of them can point to some where
  • And .

10
Class Stack
  • This class is defined for simulating the stack of
    a computer
  • At first I wanted to implement this class from
    the library but really it would not work
  • Then I defined it my self

11
Class Computer
  • This class contains static members and is used to
    simulate the processor
  • It has all the components that a motorola 68000
    has
  • This class when is used , uses lots of RAM memory
  • It has 16 Mb of Memory only for simulating the
    memory units in the program

12
Class MAINCLASS
  • As it is shown with the name of this class it is
    the main class and uses all expressed classes
  • Its main job is to give a line of assembly code
    then
  • 1-order it
  • 2-define if it is correct or not
  • 3-if yes executes the instruction

13
Class inst_list
  • Contains all the MC68K instructions and types

14
Class build
  • This class is used for executing the instructions

15
Last words!!!
  • In my idea this program has a good design
  • I have written it to the middle 5 or 6 times but
    suddenly I recognized a better design and I
    started again
  • Due to not being relative with visual c it took
    a lot too learn it
  • I really tried to use the style of Deitel book in
    my codes

16
Last words!!!
  • It took a time to understand how the MC68K
    instructions work and how they affect on the
    condition codes and other registers
  • I can promise you that you can not find any
    source for this program in the internet in c
  • I have used lots of c contexts like

17
Last words!!!
  • Pointers
  • References
  • Object oriented programming
  • Inheritance and polymorphism
  • Stack

18
Last words!!!
  • There are lots of files and classes that show how
    much disciplined this project is
  • I tried to simulate MC68K only with its
    components and dont use other things
  • And I wasted lots of time for painting Icons
    ,Toolbars and other things

19
Used Resources
  • Visual c 6 (Microsoft publication)
  • C (Deitel , Original)
  • Computer Organization (Hamacher)
  • MC68K programming
  • Lots of internet sources for MC68K
  • UML with rational rose 98
  • A Complete guide to programming in c
Write a Comment
User Comments (0)
About PowerShow.com