Jump to content



0

another compiling question


2 replies to this topic

#1 meshounah OFFLINE  

meshounah

    Space Invader

  • 23 posts
  • life is good
  • Location:springfield

Posted Tue Jul 17, 2007 5:15 PM

first off i set dasm in my path so i could compile anywhere next i put the tutorial code in a directory with the files kernel.s, macro.h, vcs.h, and make.bat and when i compile it i get lots of unknown Mnemonics such as sta, lda, and stx... what could be the problem?


EDIT: i have another question and i don't want to create another thread so i reused this... what is the proper syntax for compiling? i tried "dasm kernel.s" but that doesn't work for me. ;)

Edited by meshounah, Mon Jul 23, 2007 10:22 AM.


#2 SeaGtGruff OFFLINE  

SeaGtGruff

    River Patroller

  • 4,543 posts
  • Location:Georgia, USA

Posted Tue Jul 17, 2007 8:57 PM

View Postmeshounah, on Tue Jul 17, 2007 7:15 PM, said:

first off i set dasm in my path so i could compile anywhere next i put the tutorial code in a directory with the files kernel.s, macro.h, vcs.h, and make.bat and when i compile it i get lots of unknown Mnemonics such as sta, lda, and stx... what could be the problem?
If it can't recognize the mnemonics, perhaps it doesn't know which CPU you're compiling for? Is the "PROCESSOR 6502" line in the source code? Or if that isn't the problem, are your code lines indented by at least one space? You can't put the opcodes at the left margin, they need at least one space in front of them. Copying and pasting code from a web page into a text file and then compiling it can be problematic that way-- if the copy-and-paste doesn't put at least one space or one tab in front of the opcodes, then DASM tries to treat the opcodes as if they're labels.

Michael

#3 meshounah OFFLINE  

meshounah

    Space Invader

  • 23 posts
  • life is good
  • Location:springfield

Posted Wed Jul 18, 2007 9:00 AM

ok I'll try that i put "processor 6502" does it have to be capitals?

EDIT: i got it thankyou

Edited by meshounah, Wed Jul 18, 2007 9:03 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users