Slam Out Some Code

Posted by $ MikeMarotta 10 years, 4 months ago to Technology
2 comments | Share | Best of... | Flag

In the topic thread about President Obama calling for programmers, many posters referred to their own experiences in software development.

My friend who helped me get oriented in computers called his programs "doorknobs" - nicely working complicated little applications that were part of a bigger object within a larger structure.


Add Comment

FORMATTING HELP

All Comments Hide marked as read Mark all as read

  • Posted by $ 10 years, 4 months ago
    Here is my "Fortune Cookie" program. I wrote it directly in Debug for the IBM-PC/XT MS-DOS 3.2. It calls the system clock, looks at the seconds, multiplies by an offset for the memory location, and puts on the screen one of sixty sayings.

    B4 2C MOV AH,2C Get the clock
    CD 21 INT 21 execute
    B0 46 MOV AL,46 Get the seconds
    F6 EE IMUL DH multiply the DH by the seconds
    05 20 01 ADD AX, 0120 add 120 to that
    89 C2 MOV DX,AX put that number in the DX register
    B4 09 MOV AH,09 display to screen
    CD 21 INT 21 execute
    BA 18 01 MOV DX, 0118 end of line
    CD 21 INT 21 execute
    CD 20 INT 20 quit

    Among the 60 "fortunes" -
    Beam me up, Scotty: there's no intelligent life down here $
    8 + 8 = 10 $
    5 + 5 = &12 $
    TRON to user: Send me a disk. $
    AuH2O in 64 $
    54-40 or leveraged buy out! $
    A is A $
    If A is A, how can X = X + 1? $
    A program is a selective recreation of reality...$
    ... according to the psycho-epistemology of the programmer$
    It is a sin to write this... $
    Reply | Mark as read | Best of... | Permalink  

FORMATTING HELP

  • Comment hidden. Undo