Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7597157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:05:36+00:00 2026-05-30T22:05:36+00:00

For a computer architecture project I want to write some bootable code to do

  • 0

For a computer architecture project I want to write some bootable code to do something simple (I thought of a snake game, if that’s not too complicated). I thought that writing a small bootloader to pass control to a C program shouldn’t be too hard, but I can’t find any accurate info.

I’m looking for some advanced guide for x86 assembly properly describing protected mode (I still can’t tell if I need to switch to it, my first instinct is that I don’t), how a computer boots, reading from the keyboard and printing to screen.

I can write in assembly and pass it gcc to write small programs, I just need the booting and interfacing information. Any info is appreciated, including books.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:05:37+00:00Added an answer on May 30, 2026 at 10:05 pm

    I would recommend this website. You will find there (especially in the category “Introduction”) everything you need to know.

    Unless you swith to protected mode you can use BIOS interrupts in order to print to screen, read from keyboard, etc. For example interrupt 0x10, function 0x0e. If you want to use another program, apart from the bootloader, you will need to load it to memory manually. There are BIOS functions for reading from a hard disk (or a pendrive that emulates a hard disk), but you will have to handle filesystem yourself. Probably, in your case, the best solution will be not to use any and just have that additional program written at fixed address and make bootloader load it from that hardcoded position.

    Moreover, if you want to execute code compiled with gcc in real mode you need to use .code16gcc directive. It will make gas genereate code able to be executed in 16 bit real mode on 32 bit machines.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am self studying computer architecture offer at Michigan university. I do not understand
I thought about the following question about computer's architecture. Suppose I do in Python
I have faced that in my computer architecture course at university. I can't understand
I took Computer Architecture course and I understood that processor has 32 registers each
I'm just finishing up a computer architecture course this semester where, among other things,
Computer Haiku How would you write a program To make them for you
My computer at home is set up to automatically download some stuff from RSS
The computer is connected to measuring device via a physical COM1. I have simple
Are computer languages copyrighted or have some restrictions imposed on them how they can
I'm taking a Computer Architecture course right now, and we're going over basic R-type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.