flat assembler
Message board for the users of flat assembler.

Index > OS Construction > New to assembly language

Thread Post new topic Reply to topic

Joined: 11 Jan 2016
Posts: 1
zambu 11 Jan 2016, 17:24
Hello, I'm new to assembly language. I have some C background and I have studied up on binary arithmetic and hex and etc. So I'm aware of what areas I need to study up on. At this time, I'm testing some tutorial code with nasm, but I would like to convert it to fasm so I can start trying to code with it. I'm using Linux to program.

I have some basic questions and I don't know if this is the right place to ask, so please move this if necessary. I did not find a beginner board when looking.

My question is this. I'm interested in the future, in running an asm written application directly form the bios. This is so it boots like an arcade console. In other words, after the computer starts, how can I execute my program without an os.

My other question is graphics. I am using a nvidia video card and information for graphics is very difficult to find. Using assembly language, how can I write directly to video memory.

This is a little advanced for me, but my first real goal is to create a graphics screen that boots to a scroller. Which is very common in demo programming.

In C, I would say that I am trying to make a small graphics library. So I would like to code all graphics routines myself.

For now, getting some pixels on the screen would be great.

Thank you
Post 11 Jan 2016, 17:24
View user's profile Send private message Reply with quote
When all else fails, read the source

Joined: 24 Aug 2004
Posts: 20207
Location: In your JS exploiting you and your system
revolution 13 Jan 2016, 04:54
Moved to OS Construction

With regards to the BIOS boot. I think you might mean that you want to make a boot disk that the BIOS loads and executes. To replace the BIOS would be a somewhat much more difficult problem that might make your system unusable if you make a mistake.

NVIDIA information will likely be much more difficult to obtain. I would recommend that you read about the difficulties that the Linux users have had with getting GPU info. Some GPUs are documented and some are not.
Post 13 Jan 2016, 04:54
View user's profile Send private message Visit poster's website Reply with quote

Joined: 23 Sep 2006
Posts: 204
ACP 13 Jan 2016, 15:40
If you we are talking about legacy BIOS the thing you are searching for is so called OPTION ROM mechanism that allows to run code from third party cards. You may also use SeaBIOS as base for BIOS and add your code to it, later run it as coreboot payload. Keep in mind that most code of coreboot is written in C, but adding assembly code to SeaBIOS isn't that hard.

You can test Option Rom without any real hardware and run it under QEMU with Seabios.

In case of modern hardware you want the EDK II kit for UEFI but it is not well suited for assembly code.

Overall revolution suggestion to go with boot disk is a lot easier.
Post 13 Jan 2016, 15:40
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.