Giter VIP home page Giter VIP logo

cs630-qemu-lab's Introduction

CS630 on Qemu(a virtual machine) in Ubuntu

Prepare

If want to do the following exercises, PLEASE install Qemu and some other related tools in Ubuntu/Linux system.

$ sudo apt-get install qemu

If want to do the exercises of CS630 on Qemu in Ubuntu, you need to execute the following command to mirror the resources in the course site to res/:

$ make update

Usage

Our project allows to:

  • Specify an assembly file for compiling with ./configure /path/to/file.s
  • Compile and run the assembly in real mode with make boot
  • Compile and run the assembly in protected mode with make pmboot

For example, to compile the src/helloworld.s, we can configure it with:

$ ./configure src/helloworld.s

To compile the assembly files from res/, use rtcdemo.s as an example, just type:

$ ./configure res/rtcdemo.s

real mode exercise

  • helloworld
$ ./configure src/helloworld.s
$ make boot
  • rtc
$ ./configure src/rtc.s
$ make boot

protected mode exercise

  • helloworld
$ ./configure src/pmhello.s
$ make pmboot
  • rtc
$ ./configure src/pmrtc.s
$ make pmboot

NOTE

In fact, some exercise not about "protected mode" also need to use the 2nd method to compile, for they begin execution with CS:IP = 1000:0002, and need a "bootloader" to load them, or their SIZE are more than 512 bytes, can not be put in the first 512bytes of the disk(MBR).

See more notes from NOTE.md.

cs630-qemu-lab's People

Contributors

lzufalcon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.