Jump to content



0

dasm include problem


1 reply to this topic

#1 derekjmorris OFFLINE  

derekjmorris

    Combat Commando

  • 2 posts
  • Location:UK

Posted Sun Aug 5, 2007 7:20 AM

I'm drawing an asym. playfield and have the following setup :-

...

#if 0 ; switch between using include file and using the data directly

include "data.h" ; Include the playfield data

#else

PFData_0a

.byte #%11110000
.byte #%11110000
.byte #%11110000
.byte #%11110000
.byte #%11110000
.byte #%11110000
.byte #%11110000
.byte #%11110000
.byte #%11110000

etc etc

#endif

...

I copy & pasted the data from the data.h file into the above code so it's identical.
If I use the include, I get no display and wierd audio (ie goes completely screwy).
If I use the code directly it works fine.
I checked the format of the include file and it seems the same as vcs.h.

(btw. the include and the .byte above are indented, they didn't seem to be in this post)


Any ideas on what could be happening ?

#2 derekjmorris OFFLINE  

derekjmorris

    Combat Commando

  • 2 posts
  • Location:UK

Posted Sun Aug 5, 2007 10:22 AM

Found it. I had one extra space in my included file in front of the first label.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users