Subject: [stella] What am I screwing up? From: crackers@xxxxxxxxxxxxxxxxxxxxxx Date: Sat, 8 Mar 1997 04:51:44 -0500 (EST) |
The problem is probably due to the fact that it's almost 5 o'clock in the morning right now but for some reason I can't get my freaking source code to compile with DASM. I used the command dasm exp1.asm -oexp1.bin -f3 What it tells me is "error: source is not resolvable" So what have I done wrong? Anyways, I'm hoping that when I can figure out what the heck is keeping the code from compiling, it will run alright and draw me a picture on the screen using playfield graphics that are 8 lines high. I studied Nick Bensema's "How To Draw A Playfield" code and used it as a guide. Any ideas, comments, or questions? Here's the code... ----------------------------------------------------------------------------- processor 6502 VSYNC = $00 VBLANK = $01 WSYNC = $02 COLUPF = $08 COLUBK = $09 CTRLPF = $0A PF0 = $0D PF1 = $0E PF2 = $0F CXCLR = $2C INTIM = $284 TIM64T = $296 org $f000 start SEI CLD LDX #$FF TXS LDA #$00 zero STA $00,X DEX BNE zero main JSR vertb JSR scrnvar JSR draw JSR oscan JMP main scrnvar LDA #$00 STA COLUPF LDA #$4F STA COLUBK LDA #$02 STA CTRLPF RTS vertb LDX #$00 LDA #$02 STA WSYNC STA WSYNC STA WSYNC STA WSYNC STA WSYNC STA WSYNC LDA #$2C STA TIM64T LDA #$00 STA CXCLR STA WSYNC STA WSYNC RTS draw LDA INTIM BNE draw STA WSYNC STA VBLANK LDY #$08 LDX #$13 load LDA playf0,X STA PF0 LDA playf1,X STA PF1 LDA playf2,X STA PF2 grfx STA WSYNC DEY BEQ block JMP grfx block LDA X BEQ clear DEX LDY #$08 JMP load clear LDA #$02 STA WSYNC STA VBLANK LDX PF0 LDX PF1 LDX PF2 RTS oscan LDX #$1E waste STA WSYNC DEX BNE waste RTS org $FFC0 playf0 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $20 .byte $20 .byte $70 .byte $f0 .byte $f0 .byte $f0 .byte $e0 .byte $e0 .byte $c0 .byte $80 .byte $00 .byte $00 .byte $00 playf1 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $00 .byte $10 .byte $10 .byte $11 .byte $3b .byte $7b .byte $ff .byte $ff .byte $ff .byte $ff .byte $ff .byte $ff .byte $ff .byte $7c .byte $30 playf2 .byte $00 .byte $00 .byte $80 .byte $80 .byte $c0 .byte $c0 .byte $c0 .byte $e2 .byte $e2 .byte $f2 .byte $fa .byte $ff .byte $1f .byte $5f .byte $5f .byte $9f .byte $df .byte $cd .byte $af .byte $93 .byte $71 .byte $38 .byte $0c .byte $04 org $FFFC .word start .word start ----------------------------------------------------------------------------- So can anyone figure out why the damn thing won't compile? I'm going to bed now... nighty night. CRACKERS (Disappointed from hell!!!) -- Accordionist - Wethifl Musician - Atari 2600 Collector | /\/\ http://www.freenet.hamilton.on.ca/~ad329/Profile.html | \^^/ Bira Bira Devotee - FES Member - Samurai Pizza Cats Fan| =\/= -- To unsubscribe, send the word UNSUBSCRIBE in the body of a message to stella-request@xxxxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] Table of Note Values?, Glenn Saunders | Thread | Re: [stella] What am I screwing up?, Nick S Bensema |
Re: [stella] Two triple-copy sprite, Nick S Bensema | Date | Re: [stella] Carts vs Tapes vs CDs , crackers |
Month |