flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Command Line Interface (CLI)

Author
Thread Post new topic Reply to topic
SkiMask11



Joined: 06 Sep 2014
Posts: 8
SkiMask11
How to build a 16 bit CLI for my Kernel using the Assembly language. Like MS-DOS
Post 02 Nov 2014, 04:33
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
SkiMask11,

Do you prefer line-oriented or block-oriented CLI language?
Post 02 Nov 2014, 15:46
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 559
smiddy
Pseudoly, you'd want to parse keyboard input "after" a <enter> then branch from there.
Post 03 Nov 2014, 00:00
View user's profile Send private message Reply with quote
SkiMask11



Joined: 06 Sep 2014
Posts: 8
SkiMask11
Smiddy

I know how a command line works, but I don't know how to put it into Assembly code. I know how to add characters when the user types on the keyboard, but I don't know how to make the machine know what's a command
Post 03 Nov 2014, 00:51
View user's profile Send private message Reply with quote
SkiMask11



Joined: 06 Sep 2014
Posts: 8
SkiMask11
Baldr

What's the difference between line and blocked? Doesn't line oriented involve python?
Post 03 Nov 2014, 00:53
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 559
smiddy
SkiMask11 wrote:
Smiddy

I know how a command line works, but I don't know how to put it into Assembly code. I know how to add characters when the user types on the keyboard, but I don't know how to make the machine know what's a command
Did you search for keyboard input?
Post 03 Nov 2014, 03:21
View user's profile Send private message Reply with quote
SkiMask11



Joined: 06 Sep 2014
Posts: 8
SkiMask11
I searched Keyboard input Assembly and I got so many helpful resources, thank you so much Smiddy. I feel that the Internet isn't so vast when it comes to OS development, is their a better way to learn about OS development?
Post 03 Nov 2014, 03:38
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 559
smiddy
Other than your own research? Take a course...
Post 03 Nov 2014, 12:09
View user's profile Send private message Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 619
cod3b453
Assuming you want use the BIOS then int 0x16 ah=0x00 will get you the key strokes (blocking), returning the ASCII code in al. Otherwise trap IRQ1 and decode than scancodes on the PS2 ports (0x60 and 0x64). Then just store/parse accordingly.
Post 03 Nov 2014, 18:07
View user's profile Send private message Reply with quote
ManOfSteel



Joined: 02 Feb 2005
Posts: 1154
ManOfSteel
SkiMask11 wrote:
I feel that the Internet isn't so vast when it comes to OS development

Are you kidding or what? There is way more than enough.
The OSDev wiki alone is a trove for amateur OS developers.
There are also many (literally in the hundreds!) amateur open-source systems written both in pure assembly as well as assembly and C. DexOS and KolibriOS come to mind.
If you're unwilling or unable to read the source of much bigger systems like Linux or the *BSDs, you still can check the source of earlier versions of MINIX or Linux 0.0.1.

It's all there. All you need is patience and the willingness to learn, try things, fail and retry.
Post 03 Nov 2014, 18:51
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
I wrote a 2k Dos clone in fasm that may help you.


Description:
Download
Filename: MiniDos.zip
Filesize: 350.82 KB
Downloaded: 247 Time(s)

Post 04 Nov 2014, 16:58
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.