Jump to content



0

DASM problems with programming


5 replies to this topic

#1 Pantherman OFFLINE  

Pantherman

    Combat Commando

  • 3 posts

Posted Tue Oct 21, 2003 8:25 AM

I enter this code as descreibed in the tutorial:

; 192 scanlines of picture...
ldx #0
ldy #0
REPEAT 192 ; scanlines
inx
stx COLUBK
nop
nop
nop
dey
sty COLUBK
sta WSYNC
REPEND


I entered it (including the indentation) (Seems that the post doesn't want to keep the indentation that I gave it) and I tried everything including including processor 6502 and the include "marco.h" and include "vcs.h"

and the dasm goes through 3 passes, each time saying that there is 1 event that requires another assembler pass, with obscure reason to be documented later. Howerver at the end of the 3rd pass it claims a Fatal assembley error: Source is not resolvable.

What am I doing wrong?
:?

#2 Thomas Jentzsch OFFLINE  

Thomas Jentzsch

    Thrust, Jammed, SWOOPS!

  • 16,745 posts
  • Always left from right here!
  • Location:Düsseldorf, Germany

Posted Tue Oct 21, 2003 8:28 AM

The code looks ok (though you should use
...
to keep the spaces), maybe the order of the include files is a problem(vcs.h should be the 1st one).

If that doesn't help, post the source code file(s).

#3 Pantherman OFFLINE  

Pantherman

    Combat Commando

  • 3 posts

Posted Tue Oct 21, 2003 9:42 AM

Ok, here it is


  processor 6502

  include "vcs.h"

  include "macro.h"



; 192 scanlines of picture...

 ldx #0

 ldy #0

 REPEAT 192; scanlines

  inx

  stx COLUBK

  nop

  nop

  nop

  dey

  sty COLUBK

  sta WSYNC

 REPEND

I have included the files vcs.h and marco.h as a ZIP

Attached Files



#4 Serguei2 OFFLINE  

Serguei2

    Moonsweeper

  • 284 posts
  • Location:Canada

Posted Tue Oct 21, 2003 10:13 AM

I got

Quote

Fatal assembly error: Source is not resolvable.
when trying to compile.


Serguei

#5 Cybergoth ONLINE  

Cybergoth

    Quadrunner

  • 8,207 posts
  • This is Sparta!
  • Location:Bavaria

Posted Tue Oct 21, 2003 10:17 AM

Hi there!


  processor 6502

  include "vcs.h"

  include "macro.h"



; 192 scanlines of picture...

 ldx #0

 ldy #0

 REPEAT 192; scanlines

  inx

  stx COLUBK

  nop

  nop

  nop

  dey

  sty COLUBK

  sta WSYNC

 REPEND


The first ldx/ldy need to be tabed. At the beginning of the line(as is), they'll be misinterpreted as labels.
The whole rest of the kernel is missing, you need to do a complete TV frame, this snippet does only the visible part of the screen.
And finally, with this REPEAT/REPEND you're wasting 192*X bytes, so you shouldn't experiment too much here...

Greetings,
Manuel

#6 Cybergoth ONLINE  

Cybergoth

    Quadrunner

  • 8,207 posts
  • This is Sparta!
  • Location:Bavaria

Posted Tue Oct 21, 2003 10:19 AM

Hi there!

Serguei2 said:

I got

Quote

Fatal assembly error: Source is not resolvable.
when trying to compile.

Fine. That's exactly what he said it does. :)

Greetings,
Manuel




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users