This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-09-25 14:26:18

nxsupert
Scratcher
Registered: 2009-07-26
Posts: 100+

Nx-os

NX-OS

Info:
This is a console based operating system the is in Beta. It has no fancy graphics (no graphics) all it is , is 4 lists and an input (question box). However you can do allot. You have the ability to program it and it has all the basic IO functions. The program language it uses i made of the top of my head. But it is fairly easy to use.

How to start off:
the 1st two commands you should ever input are these:
-s
-i
This basically turns it off then turns it on. Clearing all the data. Next you might want to do
-U 01
This sets were the program starts.
Next you want to make your 1st program. so type in the following:
-a *l i _1 .1
-a *g _1

Now to start you program. Type:
-r

Now lots of things should be happening on your screen. Ignore what is happening on the "line" list , this is for Debugging purposes .

What you should see is that no.1 on "RAM" should be going between 1 and 0. This is what the program is doing.


Commands:
-s
this basically deletes everything.
-i
This basically starts everything. But all it really does is makes the RAM.
-a [Code]
This adds a line of code to the "Programs" list.
-u ##
This sets the starter line of the program.
-R
this runs the program.
-e # #
This sets a bit of ram.
-T
this trys to stop the program.
-C
this clears the console


Those are all the commands but if you really want to do some cool stuff you will need to program!

The language (Which i am calling NX-LOGIC for now) may look complex but is really simple.

Most commands start with *
after the * you must put a letter then all the variables to go with it.

Each variable must be separated by ONE space. putting a _ before the variable means that is the value you want to set it too.(Must be 1 digit). Putting a . before the variable means that you want to get the data from that bit of ram.

Commands:

*s # #
Means set # (ram bit ) to #

*g #
means go to #.

*l
means logic.
After the *l you must put either an a , o , x or i
you set it out like this : *l (letter) #(a) #(b) #(c)
This means do logic (letter) with #(b) and #(c) and set ram bit #(a) to the output.
A means add , o means or , x means xor and i means invert (you don't use #(c) for this)

*i # #
means if # is 1 then go to #

*C
this clears the console

*O #
Print # onto console




All these commands are pretty basic but you can do allot with them. Everything is done in binary but you can set ram bits to more however i do not suggest you do that.



Change log:
Beta 0.2:
+Added more flexibility with the console.
Beta 0.1:

+Added all basic commands for console and programming.
*Changed the way that the OS handles the code to be more efficiently (using line).

If you find any bugs or make a program you want to share. Just post it here.

Link: http://scratch.mit.edu/projects/nxsupert/2891842



Contest Time!

Make a program in NX-OS and post the code here. Who ever wins can have ... umm ... Their name on this topic!

Last edited by nxsupert (2012-11-07 13:07:12)


I am Back!

Offline

 

#2 2012-09-26 12:11:54

nxsupert
Scratcher
Registered: 2009-07-26
Posts: 100+

Re: Nx-os

I may change the way each program command is processed. Also , should i make it so you can only input binary numbers?


I am Back!

Offline

 

#3 2012-09-27 11:59:46

nxsupert
Scratcher
Registered: 2009-07-26
Posts: 100+

Re: Nx-os

Bugs!
-R isn't running the program. I found the problem at that was -T doesn't reset itself! . I think i have fixed it!


I am Back!

Offline

 

#4 2012-09-27 15:56:21

nxsupert
Scratcher
Registered: 2009-07-26
Posts: 100+

Re: Nx-os

Updated the topic


I am Back!

Offline

 

#5 2012-10-01 11:21:59

nxsupert
Scratcher
Registered: 2009-07-26
Posts: 100+

Re: Nx-os

umm , bump?


I am Back!

Offline

 

#6 2012-11-07 13:07:26

nxsupert
Scratcher
Registered: 2009-07-26
Posts: 100+

Re: Nx-os

Beta 0.2 is Out!


I am Back!

Offline

 

Board footer