Jump to content
IGNORED

DASM problems with programming


Recommended Posts

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?

:?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...