meshounah Posted July 17, 2007 Share Posted July 17, 2007 (edited) 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 July 23, 2007 by meshounah Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted July 18, 2007 Share Posted July 18, 2007 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 Quote Link to comment Share on other sites More sharing options...
meshounah Posted July 18, 2007 Author Share Posted July 18, 2007 (edited) ok I'll try that i put "processor 6502" does it have to be capitals? EDIT: i got it thankyou Edited July 18, 2007 by meshounah Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.