Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

IIT: Make your own OS

Name: Anonymous 2009-02-02 19:35


print 'MATH OS'
print
while 1:
    print
    print'[a]dd'
    print'[s]ubtract'
    print's[h]utdown'
    print
    inp = raw_input('?')[0]
    if inp=='a':
        print input('?')+input('?')
    if inp=='s':
        print input('?')-input('?')
    if inp=='h':
        break

Name: Anonymous 2009-02-02 19:45


#include <iostream>

using namespace std;

int main() {
    for(;;)
        cout << "SPAM OS ";
}

Name: Anonymous 2009-02-02 20:09

>>2
#include <iostream>

using std::cout;
using std::endl;

int main() {
    spam:
        cout << "SPAM OS" << endl;
    goto spam;
}

Name: Anonymous 2009-02-02 20:11

PERL OS

eval while($_ = <STDIN>);

Name: Anonymous 2009-02-02 20:14

In In Thread

Name: Anonymous 2009-02-02 20:24

>>4
eval while<>

Name: Anonymous 2009-02-02 20:50

fuckin perl

Name: Anonymous 2009-02-02 20:53


while 1:
    eval(raw_input('>>>'))

Name: RMS 2009-02-02 21:04

I have hand-crafted my own OS with love and neckbeard.

Name: Anonymous 2009-02-02 21:08

>>9
Your OS lacks a kernel.

Name: Anonymous 2009-02-02 21:11

>>10
Your kernal lacks an OS

Name: Anonymous 2009-02-02 23:27


;VERY SIMPLE 6502 OPERATING SYSTEM
NUMDRV = $00 ;number of installed drivers
; holding spots to preserve registers
TEMP1 = $01; TEMP2 = $02; TEMP3 = $03; TEMP4 = $04
VECTORL = $05 ;used to indirect jump to specific driver
VECTORH = $06
DRVTABL = $20 ;beginning of driver pointer table, low bytes
DRVTABH = $40 ;beginning of driver pointer table, high bytes

MAXDRV  = $20 ;maximum number of drivers supported

REGDRV  ;Registers a driver
        ;pointer to driver .X high byte, .A low byte
        PHP
        STY TEMP1
        LDY NUMDRV
        CPX #MAXDRV
        BEQ REGDRVE
        STA (DRVTABL),Y
        TXA
        STA (DRVTABH),Y
        INC NUMDRV
        LDY TEMP
REGDRVZ PLP
        RTS
REGDRVE SEC
        JMP REGDRVZ

DRVCALL ;Calls a driver
        ;.Y is the specific driver number
        ;.A is specific operation, implemented by driver
        ;.A can be the following:
        ; 0-init device, 1-get device info, 2-get device state
        ; 3-open, 4-read, 5-write, 6-close
        LDA (DRVTABL),Y
        STA VECTORL
        LDA (DRVTABH),Y
        STA VECTORH
        JMP (VECTORL) ; tail call optimization; borrow driver RTS

Name: Anonymous 2009-02-02 23:36

>>10
[Citation Needed]

Name: Anonymous 2009-02-03 5:06

Back to rechan, please.

Name: Anonymous 2009-02-03 5:16

It's a miracle that this thread hasn't been polluted by anoonix people yet.

Name: Anonymous 2009-02-03 5:58

People in this thread fail to realise std::cout is undefined when implementing an OS.

Name: Anonymous 2009-02-03 5:58

>>16
XD

Name: Anonymous 2009-02-03 6:05

>>16
What about other posts? >>1,4,6,8? Please enlighten us, Captain.

Name: Anonymous 2009-02-03 8:10

10 PRINT LOL
20 GOTO 10

Name: Anonymous 2009-02-03 11:27

>>19
LOL undefined

Name: Anonymous 2009-02-03 14:25

>>20
Works using my custom BASIC compiler.

Name: Anonymous 2009-02-03 15:52

>>20
Doesn't matter to basic, it'll just print out the integer value of LOL. Usually 0.

Name: Anonymous 2009-02-03 20:39

PERL OS

eval while($_ = <STDIN>);

i lol'd

to many people use  $_

Name: Anonymous 2009-02-03 20:54

>>23
And yet, not enough programming languages have $_

Name: Anonymous 2009-02-03 21:00

why do people even use _

Name: Anonymous 2009-02-03 21:39

while 1: pass

Name: Anonymous 2009-02-03 22:47

not one piece of C or Lisp code in this thread.  I'm disjointed

Name: Anonymous 2009-02-03 23:25

>>27
#include<stdio.h>
int main(int argc, char *argv[]){
   printf("i hope this helps you feel more jointed");
   return(0);
}

Name: Anonymous 2009-02-04 0:56

I have the only multiplatform OS:

public class OS
 {
public static void main(String args[])
{
 try
{
Runtime rt=Runtime.getRuntime();
while(true)
{
String s=System.in.readLine();
Process p=rt.exec(s); p.waitFor();
} catch(Exception e) { System.out.println(e.getMessage()); } } }

Name: Anonymous 2009-02-04 1:14

>>27
int main()
{
//for(;;);
c: goto c; //OMGOPTIMIZED(NOT)
}

Name: Anonymous 2009-02-04 6:05

>>30
in b4 while( fork() ) fork();

Name: Anonymous 2009-02-04 6:22

>>1
is dat sum bc?

Name: Anonymous 2009-02-04 12:43

>>32
dc(1) > bc(1).

Name: Anonymous 2009-02-04 13:05

Name: Anonymous 2009-02-04 15:43

>>34
The You Have Been Trolled Operating System?

Name: Anonymous 2009-02-04 15:45

>>35
Yes.

Name: Anonymous 2009-02-04 15:47

>>36
Awesome.

Name: Anonymous 2009-02-06 17:18

Name: Anonymous 2009-02-06 17:19

Name: Anonymous 2009-02-06 18:03

>>38
es is a computer operating system developed originally by Nintendo and since 2008 by Google. The operating system runs natively on x86, and includes a kernel written in C++.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List