Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What ancient, old school code do you still have kicking around?

Having been bored out of my brains the last few days off work sick, I decided to try and dig up some old code. I could find some binary versions of some ancient Atari ST stuff I wrote, but I couldn't find any source. I did manage to dredge up an old ModeX library I wrote in ASM many moons ago from an archive of the legendary old x2ftp site:

http://ftp.lanet.lv/ftp/mirror/x2ftp/msdos

Blast from the past :-)

; Actually Sticks Us Into ModeX - With 240 Scanlines Per Page
; Set The Variable LSCAN To The Virtual Scanline Length You Want
; Trashes AX, CX, DX, DS, SI
; Shouldn't Matter Though As This Should Be The First Thing You Call!
Set_X_240   PROC
        Call    Set_Graph       ; Set Mode 13h
        mov     dx, Seq_Port
        mov     ax, 00604h      ; Index 4 (Memory Mode Reg.) In AL
                                ; Bit 3 = Chain 4
        out     dx, ax          ; Kill Chain 4 Mode
        mov     ax, 00100h      ; Index 0 (Reset Reg.) In AL
        out     dx, ax          ; Reset Syncronous (At End Of Cycle)
        dec     dx              ; Change Port
        dec     dx              ; To Misc. S--t Port :)
        mov     al, 11100011b
        out     dx, al          ; Sets 480 Line Mode, 25Mhz Dot Clock
        inc     dx              ; Change Port
        inc     dx              ; Back To Sequencer Port
        mov     ax, 00300h
        out     dx, ax          ; Restart Controller
        mov     dx, Crtc_Port
        mov     al, 011h
        out     dx, al          ; Select Index 11h (Vert.Retrace End)
        inc     dx              ; Data Port
        in      al, dx          ; Read In Current Bit Mask
        and     al, 07Fh        ; 01111111 - Clear Top Bit (Write Protect)
        out     dx, al          ; Un-Write Protect Index 0-7 Of CRTC Reg.
        dec     dx              ; Restore Port To Index
        mov     ax, seg CRTC_Data_240           ; Address Of Our CRTC Data
        mov     ds, ax
        mov     si, offset CRTC_Data_240
        mov     cx, LCRTC_Data_240      ; Length Of Data
        repz    outsw                       ; Chuck It At The Port
        mov     ax, lscan
        shr     ax, 3           ; Number Of Words Per Scan Line
        mov     ah, al          ; Into AH
        mov     al, 013h        ; Port Index 013h - Logical Screen Width
        out     dx, ax

        mov     NScan, 240
    Call    Set_Pages
    ret
Set_X_240   ENDP

Anyone else want to make themselves look old and post some old school code? :-) It's a shame I don't have any of my 68000 ASM stuff still, although I probably wouldn't even recognise it now!

Ahh.. memories :-)

like image 495
Steven Robbins Avatar asked Jan 30 '09 19:01

Steven Robbins


People also ask

What was Tae Kwon Do originally called?

In Korea, Taekwondo began as a defense martial art called "Subak" or "Taekkyon," and developed as a way of training body and mind in the ancient kingdom of Koguryo, under the name of "Sunbae." In the Shilla period, it had become the backbone of Hwarangdo that aimed at producing leaders of the country.

Did the Romans have a martial art?

Ancient RomeGladiatorial Combat was a popular spectator bloodsport in Roman times. Gladiators were trained in special schools and were armed according to the Roman standard or like some of Rome's enemies. This allowed for experimentation with different weapons and styles of combat.

How old are the origins of Tae Kwon Do?

Taekwondo (also known as Tae Kwon Do) is the art of self defense that originated in Korea. It is recognized as one of the oldest forms of martial arts in the world, reaching back over 2,000 years. The name was selected for its appropriate description of the art: Tae (foot), Kwon (hand), Do (art).

How do you get a black belt in Tae Kwon Do?

Black belts in Tae Kwon Do are achieved in degrees, with the practitioner able to earn the first-degree black belt within three to five years. Some schools stipulate a minimum of four to five years of training before a student can earn a black belt, while others do not.


2 Answers

Have a boatload of old Atari 8-bit BASIC and Atari ST stuff from way back (I still have the ST, but it's not networked so I hardly ever use it).

I once typed in most of the games from David Ahl's "BASIC Computer Games: Microcomputer Edition", porting them to both the 8-bit and ST BASIC.

I am half-tempted to port those old games to Processing/Arduino, for old-school kicks.

like image 194
Scott Prive Avatar answered Nov 03 '22 01:11

Scott Prive


I have a MUD I wrote and maintained during college, back in 1990-1993. All C. It was a derivation of Diku MUD called SillyMUD, and it was my pride and joy at the time.

You can still find the code on the Intertubes, here and there.

like image 32
johnbr Avatar answered Nov 03 '22 00:11

johnbr