Re: Rocket Racer Source Code Found!

From: Chris Bartz <csbartz_at_comcast.net>
Date: Tue Mar 16 2004 - 10:37:48 EST

> > Yes, OCR is what I meant, not scan. It will take a while -- there are
> > at least a hundred pages and the paper is 20 years old and showing
> > it's age a bit.
>
> I would be very careful about OCRing the pages of code. You will
> invariably have to go line by line to make sure the OCR engine has
> translated the text properly. Might be easier (?) to get a small group
> of people to manually type in three or four pages each.

As predicted, OCR was a bust -- well, at least I got fed up after 15
minutes of it trying to recognize dot matrix characters so I've
taken to typing it in. As a plus, I get to read all of the little
nuggets in the comments like:

>From the Z-80 code...

1$: LD HL,1250 ; IF NEGATIVE PUT THIS ENEMY BACK AT
1000Z
                                ; THIS IS WHERE PASSING TEST WILL BE

2$: LD (OPPO3Z),HL
                                ; THATS IT FOR UPDATING THE Z SHIT
        BIT 7,H ; IF Z IS NEGATIVE DON'T DRAW
        JP NZ,3$

        LD A,(STATUS+1)
        BIT 5,A
        JP NZ,3$ ; ALSO LEAVE IF ENEMY IS HIT

        LD A,H
        CP 4
        JP P,3$ ; OR IF IT IS OVER 1000

        EX DE,HL ; THIS DOES THE EVASIVE ACTION SHIT

        LD BC,32 ; HOW MANY OBJECTS WILL BE TESTED
        LD HL,444FH ; TH LAST LOC. FR BCKWRDS TST

...and this...

;****************************************************************
; INTER THIS INTERRUPTS THE Z-80 WHEN THE CTC
; DETERMINES THE FRAME TIME. IT IS CALLED WHEN THE DOWN
; COUNT IS REACHED AND IT THEN FLIPS MEMORIES AND RESTARTS
; THE 2076 BY PULSING MEMORY LOC 7XXX HEX.
; IT ALSO INCREMENTS A CLOCK LOCATION AT CLOCK AS WELL AS
; STORING THE INTERRUPTED ADDRESS AT LSTADR
; THIS ALSO LOADS THE LAST SHARED RAM LOCATIONS WITH 255
; TO SIGNIFY THE END OF DRAWING DATA.
;****************************************************************

...and from the 2076 code:

FIGR1: LDAI 4 ; START BEAM TWOARD CENTER TO AVOID BEAM PULL
IF
        SSA ; THE LAST SPRITE WAS VERY FAR AWAY
        LDAI 3
        SHRB
        IV

        LOOKUP INDEX ; IF THIS IS THE FIRST TIME THRU SET THE
COLOR
        STA TEMP ; AND X AND Y AND ALL THE REST
        LDAI 0
        A4I 1
        OUT 6
        SSA
        LDA TEMP
        IV
        LDAI 0
        OUT 6
        LOOKUP INDEX ; THIS IS THE X,Y STUFF
        STA TEMP
        LOOKUP INDEX
        SHL
        SHL
        ADD TEMP ; ADJUST FOR 10 BIT
        SETP 1
        STA XOFF
        LOOKUP INDEX
        STA TEMP
        LOOKUP INDEX
        SHL
        SHL
        ADD TEMP
        SETP 1
        STA YOFF
        
        LDA XOFF ; START LINE TWOARDS LOCATION
        SSA
        LDA YOFF
        IV

Pretty cool stuff

Chris

---------------------------------------------------------------------------
** Unsubscribe, subscribe, or view the archives at http://www.vectorlist.org
** Please direct other questions, comments, or problems to chris@westnet.com
Received on Tue Mar 16 10:36:50 2004

This archive was generated by hypermail 2.1.8 : Tue Mar 16 2004 - 21:50:01 EST