I
I
Ivan Kostyuk2016-02-11 23:27:34
assembler
Ivan Kostyuk, 2016-02-11 23:27:34

How to run your code on PC startup?

Hello. I need to insert a disk into the computer, and run the code at startup - then I need to display information about all devices on the screen. I understand that the code needs to be written in assembler, but I don’t know how to boot from disk, and how do I get all the I / O ports and work with devices. I will be glad to any infe.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AltQ, 2016-02-12
@Mayzer

To run code on IBM PC-compatible computers, the disk must contain the boot sector signature (55 AA) in its last two bytes, as well as the unconditional jump instruction "jmp" (short or near only) at the very beginning of the program. For some computers, there must also be a structure called "BIOS parameter block" on the disk. Without it, the code may run, but work incorrectly, or not run at all. You can read more here and here .

A
Alexander Taratin, 2016-02-11
@Taraflex

Dig towards building a livecd based on Linux with the right set of utilities for working with external devices.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question