flat assembler
Message board for the users of flat assembler.

Index > OS Construction > (OSdev beginner) How to use asm properly?

Author
Thread Post new topic Reply to topic
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 19 Nov 2009, 05:08
I want to be able to do things you can't do in other languages, all anyone ever talks about is how in assembly you can program anything a computer can do but I can't seem to find anything beyond dos. Can someone point me in the direction of a website that teaches more than printing strings to the console, please? I don't really know what I want to do with this knowledge, I just like the idea of being in complete control of how a program executes and would like to take my interest father than the limitations of the dos screen. Preferable no to little os dependence(NO DOS). So in short, I guess I'm asking for an idiots guide to making an os. BTW I'm honestly not as stupid as my question, just inexperienced.

EDIT by DOS386 : enhanced subject and moved from Main to OS Construction
Post 19 Nov 2009, 05:08
View user's profile Send private message Reply with quote
ass0



Joined: 31 Dec 2008
Posts: 518
Location: ( . Y . )
ass0 19 Nov 2009, 10:59
http://flatassembler.net/examples.php

and the link is in this very page =)
Post 19 Nov 2009, 10:59
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 22 Nov 2009, 09:33
Tyler wrote:
I want to be able to do things you can't do in other languages, all anyone ever talks about is how in assembly you can program anything a computer can do but I can't seem to find anything beyond dos.


Funny Confused Where did you find all the evil DOS stuff ?

Quote:
Can someone point me in the direction of a website that teaches more than printing strings to the console, please?


This one Idea

Quote:
I don't really know what I want to do with this knowledge, I just like the idea of being in complete control of how a program executes and would like to take my interest father than the limitations of the dos screen.


Seems you have no idea what DOS is. Hint: DOS doesn't provide any "limitations of the dos screen" Idea

Quote:
Preferable no to little os dependence(NO DOS).


So what ??? Windows dependent stuff ??? Or even this would be tolerable ???

Quote:
So in short, I guess I'm asking for an idiots guide to making an os.


http://wiki.osdev.org/Getting_Started#Required_Knowledge

Quote:
BTW I'm honestly not as stupid as my question, just inexperienced.


http://wiki.osdev.org/Getting_Started#Required_Knowledge

ass0 wrote:

Quote:
http://flatassembler.net/examples.php and the link is in this very page =)


Very bad idea, 95% is Windows, is it what Tyler asked for ???

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 22 Nov 2009, 09:33
View user's profile Send private message Reply with quote
rCX



Joined: 29 Jul 2007
Posts: 172
Location: Maryland, USA
rCX 22 Nov 2009, 16:58
Tyler wrote:
So in short, I guess I'm asking for an idiots guide to making an os.

This is a fairly simple tutorial on OS making. It's even written in fasm. You could also study other asm OS's such as DexOS and MikeOS
Post 22 Nov 2009, 16:58
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 27 Nov 2009, 07:07
My original question was really cryptic and really never got to the point, so maybe this will help, where can I learn to do the same crap int 21 does without using it? Or at least the principles used. Just a weird question that came to mind, Is it possible to do anything (visible to the user) without using interrupts? ex. displaying text
Post 27 Nov 2009, 07:07
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 27 Nov 2009, 07:17
> My original question was really cryptic and really never got to the point

YES Sad

> where can I learn to do the same crap int 21 does without using it?

Code a kernel Wink Maybe also learn to write productive questions Wink

> Is it possible to do anything (visible to the user) without using interrupts?

Sure, how else would BIOS do ? Wink

> ex. displaying text

Write at $000B'8000 Wink
Post 27 Nov 2009, 07:17
View user's profile Send private message Reply with quote
dosin



Joined: 24 Aug 2007
Posts: 337
dosin 27 Nov 2009, 07:23
to print text - you can use VGA or Vesa...
search VGA asm
you should find a lot.. start with the writing to the screen..
then move to keyboard.. ect...

you can use bios int 0x10
or write to the mem directly,,,
there are a lot of examples on this forum..



http://www.wagemakers.be/english/doc/vga
Post 27 Nov 2009, 07:23
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 27 Nov 2009, 19:15
The simple answer is to do anything you need to write it your self
eg: Write a function that writes to screen
or use the functions that have already been write
eg: read the doc of all the hobby OS's to see how.

But it may help if you say i want a tut to do ?
Then fill in the ? with what you want to do, eg: do you want higher res graphics than is the normal in Dos ?
Post 27 Nov 2009, 19:15
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 28 Nov 2009, 07:50
DOS386 wrote:
> ex. displaying text

Write at $000B'8000 Wink

That is exactly the kind of technical stuff I'm interested in. Where could I learn more about "making stuff happen" by writing to specific locations? Is there anywhere that lists things like that (and explanations would be interesting)? Just a note, but college is not an option, I'm 15.

Explanation of "making stuff happen": I mean basically anything that you can do by writing to specific locations.
Post 28 Nov 2009, 07:50
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 28 Nov 2009, 08:23
> Where could I learn more about "making stuff happen" by writing to specific locations?

Text: $000B'8000
VGA graphics: $000A'0000
VESA LFB: depends, see http://board.flatassembler.net/topic.php?t=9738

> by writing to specific locations.

Use CPU ports - included in RBIL.
Post 28 Nov 2009, 08:23
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.