A89: Distubing assembler error


[Prev][Next][Index][Thread]

A89: Distubing assembler error





I hope this helps some of you new programmers, I wasted a lot of time
figuring it out.  

The first assembly program I tried to compile gave me a bunch of
errors indicating that it didn't recognize certain instructions (I
think).  The way I finally fixed the problem was to indent certain
lines!  This seemed crazy to me, so go ahead and call me a lunatic if
you want (or explain these odd indentation rules that I've never seen
in any of the tutorials).

Orignal code:

sprites:
dc.b %11001100
dc.b %11100111
 <and so on...>

Code that compiled: (only change was in indentation)

sprites:
   dc.b %11001100
   dc.b %11100111
 <and so on...>






==
                                    -gunnm

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com