Jump to content



1

Not really a newbie, but...


2 replies to this topic

#1 Dragnerok X OFFLINE  

Dragnerok X

    Dragonstomper

  • 741 posts
  • Location:Bend, Oregon U.S.A.

Posted Thu Nov 9, 2006 2:32 PM

...I need some help.

Recently after finishing an atari game/program in Bb a few weeks ago, I decided to take the "plunge" into asm, mostly for more programming power. I've been reading through many different tutorials and have started to create a horendously simple demo with dasm. What I am wondering, is, why won't it compile?

Here's the source code for it.

Attached File  kernel.zip   417bytes   60 downloads

...and in case your wondering, all it's supposed to be is a simple, single-color, screen.

Edited by Dragnerok X, Thu Nov 9, 2006 2:33 PM.


#2 Thomas Jentzsch OFFLINE  

Thomas Jentzsch

    Thrust, Jammed, SWOOPS!

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

Posted Thu Nov 9, 2006 3:51 PM

Two errors that prevent compiling:
1. VBLANK is a reserved constant for a TIA register, so you cannot use it for a label.
2. Reset is undefined. You have to define that label before CLEAN_START.

One more error:
You enable VBLANK, but you don't disable it again. Therefore the screen will be black. Disable VBLANK before PICTURE.

BTW: It is not common to use UPPERCASE for labels. UPPERCASE is reserved for constants. Use MixedCase for labels instead.

#3 Dragnerok X OFFLINE  

Dragnerok X

    Dragonstomper

  • 741 posts
  • Location:Bend, Oregon U.S.A.

Posted Thu Nov 9, 2006 6:35 PM

View PostThomas Jentzsch, on Thu Nov 9, 2006 1:51 PM, said:

Two errors that prevent compiling:
1. VBLANK is a reserved constant for a TIA register, so you cannot use it for a label.
2. Reset is undefined. You have to define that label before CLEAN_START.

One more error:
You enable VBLANK, but you don't disable it again. Therefore the screen will be black. Disable VBLANK before PICTURE.

BTW: It is not common to use UPPERCASE for labels. UPPERCASE is reserved for constants. Use MixedCase for labels instead.

Well, it worked. Not too exciting, but hey, what do you expect! :)

a1b0f4737d65c431d7433727ca22dae8.png

...now time to do something more interesting with this, like add a few sprites or make the background multi-colored.

:ponder: ;)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users