Re: [stella] Hi, and typical newbie shtick

Subject: Re: [stella] Hi, and typical newbie shtick
From: Chris Wilkson <ecwilkso@xxxxxxx>
Date: Sat, 22 Jun 2002 02:37:33 -0400 (EDT)
Hi Kirk, and welcome!!!  Bought time you made it over here!

Yes, your message came through...the Stella list is notoriously sporadic.
:)

Hmmm...I haven't been to the dig in a while, so I don't know what works,
what's broken, or why.  But try compiling the attached .bin using DASM.
It's a test program that I use that is very slightly modified from Nick
Bensema's original "how to draw a playfield" demo.  The command line
should look like the following:

dasm batdemo.asm -f3 -obatdemo.bin

You can use z26 (best emulation, IMHO) or stellax (better developer
tools, maybe) for developing against.  Are you still in the Boston
area?  If so, I can lend a hand when you need to run with real hardware.

Take care,
-Chris


On 22 Jun 2002 KirkIsrael@xxxxxxxxxxxxx wrote:

>
> Hi there...
> Just signed up...some might recognize me from rec.games.video.clasic.
>
> I've decided I'd really like to try to port JoustPong to the 2600.
> It should be (relatively) easy: 2 players, one ball, no background
> to speak of.
>
> (I've already written it in VB, Java, and PocketC for Palm.)
>
> So I'm a pretty experienced high-level programmer, but without
> a lot of low level experience (except from when I used to pour
> over corewar...)
>
> My very baby steps haven't been going so well.
> I found a copy of DASM 2.12 (why are so many "dig" links busted?)
> but have yet to compile a working BIN...I'm not sure if I have
> the most proper vcs.h file or not.
>
> And I've noticed that a lot of the Dig's Bin's don't work at all
> on some emulators, like Cracker's "another"...is there any opinion
> on which is the safest one to develop against? (I suppose at some point I should give in and get the hardware that'll let me dump to an actual VCS)
>
> Finally, I haven't received any messages this evening...has it been
> quiet, or did I not subscribe as well as I'd hoped? (I hope this gets
> through...)
>
> Thanks,
> Kirk
> --
> KirkIsrael@xxxxxxxxxxxxx    http://kisrael.com
> "I believe that Ronald Reagan will someday make this country
>  what it once was. . . an artic wilderness."  --Steve Martin
>
>
> ----------------------------------------------------------------------------------------------
> Archives (includes files) at http://www.biglist.com/lists/stella/archives/
> Unsub & more at http://www.biglist.com/lists/stella/
>
>
; Disassembly of ..\stellax\roms\batdemo.bin

; Disassembled Tue Apr 30 23:36:39 2002

; Using DiStella v2.0

;

; Command Line: C:\DOCUME~1\CHRISW~1\MYDOCU~1\ATARI_~1\TOOLS\DISTELLA.EXE ..\stellax\roms\batdemo.bin 

;

        processor 6502

        include vcs.h



VSYNC   =  $00

VBLANK  =  $01

WSYNC   =  $02

COLUPF  =  $08

COLUBK  =  $09

CTRLPF  =  $0A

PF0     =  $0D

PF1     =  $0E

PF2     =  $0F

CXCLR   =  $2C

SWCHB   =  $0282

INTIM   =  $0284

TIM64T  =  $0296



       ORG $F800



START:

       SEI            

       CLD            

       LDX    #$FF    

       TXS            

       LDA    #$00    

LF807: STA    VSYNC,X 

       DEX            

       BNE    LF807   

LF80C: JSR    LF82A   

       JSR    LF81B   

       JSR    LF848   

       JSR    LF88A   

       JMP    LF80C   

LF81B: LDA    $83     

       STA    COLUPF  

       LDA    $80     

       STA    $81     

       STA    COLUBK  

       LDA    #$01    

       STA    CTRLPF  

       RTS            



LF82A: LDX    #$00    

       LDA    #$02    

       STA    WSYNC   

       STA    WSYNC   

       STA    WSYNC   

       STA    VSYNC   

       STA    WSYNC   

       STA    WSYNC   

       LDA    #$2C    

       STA    TIM64T  

       LDA    #$00    

       STA    CXCLR   

       STA    WSYNC   

       STA    VSYNC   

       RTS            



LF848: LDA    INTIM   

       BNE    LF848   

       STA    WSYNC   

       STA    VBLANK  

       LDY    #$08    

       LDX    #$17    

LF855: LDA    LFF00,X 

       STA    PF0     

       LDA    LFF18,X 

       STA    PF1     

       LDA    LFF30,X 

       STA    PF2     

LF864: INC    $81     

       INC    $81     

       LDA    $81     

       STA    WSYNC   

       STA    COLUBK  

       DEY            

       BEQ    LF874   

       JMP    LF864   

LF874: TXA            

       BEQ    LF87D   

       DEX            

       LDY    #$08    

       JMP    LF855   

LF87D: LDA    #$02    

       STA    WSYNC   

       STA    VBLANK  

       LDX    PF0     

       LDX    PF1     

       LDX    PF2     

       RTS            



LF88A: LDX    #$1D    

       STA    WSYNC   

       LDA    SWCHB   

       AND    #$08    

       BNE    LF8A5   

       DEC    $82     

       BPL    LF89F   

       LDA    #$02    

       STA    $82     

       DEC    $83     

LF89F: STA    WSYNC   

       DEX            

       BNE    LF89F   

       RTS            



LF8A5: INC    $80     

       LDA    SWCHB   

       AND    #$01    

       BNE    LF89F   

       LDA    #$00    

       STA    $83     

       JMP    LF89F   

LF8B5: .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

LFF00: .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$20,$20,$70,$F0,$F0

       .byte $F0,$E0,$E0,$C0,$80,$00,$00,$00

LFF18: .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$10,$10,$11,$3B,$7B,$FF

       .byte $FF,$FF,$FF,$FF,$FF,$FF,$7C,$30

LFF30: .byte $00,$00,$80,$80,$C0,$C0,$C0,$E2,$E2,$F2,$FA,$FF,$FF,$FF,$3F,$9F

       .byte $DF,$CF,$AF,$93,$71,$38,$0C,$04,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00

       .byte $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$F8,$00,$F8

Current Thread