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

Pages: 1-

Homework

Name: Anonymous 2009-12-26 19:45

Write an operating system capable of outputing Sussmen. Prove its correct operation by outputing a Sussman once the boot sequence is complete.

Name: Anonymous 2009-12-26 19:51

main = putStrLn "Sussman"

Name: Anonymous 2009-12-26 20:49

ORG 0x7c00
  push cs
  pop ds
  mov si, sussman
  xor ax, ax
  mov bx, 7
  mov cx, 7
  mov ah, 14
loop:
  lodsb
  int 0x10
  loop loop
  hcf

sussman db 'Sussman'


http://img704.imageshack.us/img704/1347/sussman.png

Name: Anonymous 2009-12-26 22:19

>>3
How did you get the screenshot?  Bochs?  VirtualBox?

Name: Anonymous 2009-12-27 0:56

>>4
It's actually a real life photograph of my monitor, with the irrelevant parts (monitor frame, desk, vaseline) cropped out.

Name: Anonymous 2009-12-27 3:51

>>5
You are my new hero.

Name: Anonymous 2009-12-27 10:31

>>4
Yes, it was VirtualBox. It doesn't accept floppy disk images smaller than 1440K so I used this:

{-# LANGUAGE ScopedTypeVariables #-}
import qualified Control.Exception as E
import System.Environment
import System.IO

main = mapM_ resize =<< getArgs

resize path = E.handle eh $ withBinaryFile path ReadWriteMode (flip hSetFileSize (1440 * 1024))
    where eh (e :: E.SomeException) = hPutStrLn stderr $ path ++ ": " ++ show e


Of course, you wouldn't use anything like this if you were writing something more serious. There's probably a FUSE file system driver which lets you mount virtual disk images, and you could then copy the boot loader object code into the first 512 bytes of the image file.

Or alternatively you could have some sort of script which compiles the disk image given a source directory and a boot sector file. I once wrote a FAT12 image manipulator in SLOW AS FUCK back in the day, but the code is pretty shitty so I don't want to post it.

Name: Anonymous 2009-12-27 11:39

Replace the wallpaper of an Ubuntu bootcd, problem solved.

Name: Anonymous 2009-12-27 11:45

This is the best thread on brog, ever

Name: Anonymous 2010-12-17 1:30

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2011-01-31 19:58

<-- check em dubz

Name: Anonymous 2011-01-31 20:00

>>11
holy shit bro have you written an asperger's-grade script that checks for dubs potential in all old /prog/ threads?

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