Jump to content



0

Ok, last DASM question for awhile (Kernel probelm in code)


1 reply to this topic

#1 Pantherman OFFLINE  

Pantherman

    Combat Commando

  • 3 posts

Posted Tue Oct 21, 2003 10:58 AM

I got the code for the Kernel this is supposed to display an image:


 processor 6502

 include "vcs.h"

 include "macro.h"

 

 SEG

 ORG $F000

 

 Reset

 StartOfFrame

 

; Start of vertical blank processing

 

 lda #0

 sta VBLANK

 

 lda #2

 sta VSYNC

 

; 3 scanlines of VSYNCH signal...

 

 sta WSYNC

 sta WSYNC

 sta WSYNC

 lda #0

 sta VSYNC

  

; 37 scanlines of vertical blank...

 

 REPEAT 37; scanlines

  

 sta WSYNC

 

 REPEND

   

; 192 scanlines of picture...

 

 ldx #1

 REPEAT 192; scanlines

 inx

 stx COLUBK

 sta WSYNC

 

 REPEND

 

 lda #%01000010

 sta VBLANK; end of screen - enter blanking

 

; 30 scanlines of overscan...

 

 REPEAT 30

 sta WSYNC

 

 REPEND

 

 jmp StartOfFrame

 

 ORG $FFFA

 

 .word Reset; NMI

 .word Reset; RESET

 .word Reset; IRQ



 END

it creates the BIN file, and it ends up invalid with Stella saying that I might have an invalid ROM file, also DASM states that StartOfFrame and Reset are unresolvable and aborts, though it creates the file.
:?: :?: is it becasue the code's not indendted in my PDF file that I'm readingthis from?

#2 DEBRO OFFLINE  

DEBRO

    Stargunner

  • 1,862 posts
  • Location:Atlanta, GA

Posted Tue Oct 21, 2003 11:30 AM

Pantherman said:

:?:  :?: is it becasue the code's not indendted in my PDF file that I'm readingthis from?
I got it to compile fine once I indented the code. Everything needs to be indented except Reset and StartOfFrame.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users