Jump to content
IGNORED

another compiling question


Recommended Posts

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
Link to comment
Share on other sites

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

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