Git Product home page Git Product logo

memtest's Introduction

Memtest

Bootloader and real mode programming demo

How to use it

There is a makefile provided to automatically build binaries, and set them up on a disk image file named disk.hdd. To construct all of this, open up your terminal, cd to the root directory of this repository and run the command "make".

The disk image file can then be used with virtual machine software such as VirtualBox.

Note that this project is not an operating system.

Source code organisation

The source code is split over three directories, for three quite different tasks.

Code for the bootsector is contained in bootsector/, which is written entirely in assembly, compatible with the GNU assembler. This is kept very simple; no filesystem is used, the bootsector loads a number of sectors starting immediately after the bootsector on the disk into memory, then starts executing them. The number of sectors to be loaded is implanted into the bootsector at install time by a special purpose program contained in the tools/ directory.

The program that the bootsector loads is contained in the memtest/ directory, and is compiled into a flat binary format, the same as for the bootsector. This format means that the bootsector does not need to understand anything about executable file formats, keeping things simple.

The memtest program will make use of BIOS calls to obtain information about what memory is available on the computer, then print the information on the screen, also with BIOS calls.

memtest's People

Contributors

pkill-9 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.