Jump to content
IGNORED

Not really a newbie, but...


Recommended Posts

...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.

 

kernel.zip

 

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

Edited by Dragnerok X
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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! :)

 

post-9847-1163118786_thumb.png

 

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

 

:ponder: ;)

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...