Looking for a specific 6502 Assembler












4















I found some 6502 assembler code for a Commodore 64 program that uses meta commands like #include "foobar", define the address to be assembled to via *=$1234 and define labels without a colon. Comments are marked with a leading ;, and the syntax allows for specifying characters as constants such as in lda #'A'.



Which assembler programs have this kind of syntax and could be used to assemble the file?



I already know that





  • ca65 assembler uses keywords like .import and .export but not #include. And ca65 requires a colon after a label definition


  • dasm assembler files define the start address with the org directive, but not with *=


  • kickass assembler has different comment format


  • 64tass does not know the includekeyword


so it is none of the above (I tried and the build failed).










share|improve this question




















  • 1





    So far it might be safe to assume you're looking fro an 6502 assembler, but what computer?

    – Raffzahn
    3 hours ago






  • 2





    It is for a C64, I added it to the description.

    – Peter B.
    3 hours ago






  • 2





    I suggest ignoring #include and any other C preprocessor like directive, and assume the source code you're looking at meant to handled by passing the source though a C preprocessor before being assembled. The GNU Assembler doesn't support C preprocessing directives, but you'll find a lot of code written for it that uses them anyways.

    – Ross Ridge
    3 hours ago











  • Having used DASM extensively for 15 years, I 'converted' to KickAss a couple of years ago. It's my preferred cross-assembler for 6502 now, and well worth the effort of doing the work necessary to shift from DASM (or other) syntax.

    – Eight-Bit Guru
    3 hours ago











  • Do you know anything about the age of the source? It could narrow down the possibilities. Also comments might give some clues to those who knows the assembler.

    – UncleBod
    2 hours ago
















4















I found some 6502 assembler code for a Commodore 64 program that uses meta commands like #include "foobar", define the address to be assembled to via *=$1234 and define labels without a colon. Comments are marked with a leading ;, and the syntax allows for specifying characters as constants such as in lda #'A'.



Which assembler programs have this kind of syntax and could be used to assemble the file?



I already know that





  • ca65 assembler uses keywords like .import and .export but not #include. And ca65 requires a colon after a label definition


  • dasm assembler files define the start address with the org directive, but not with *=


  • kickass assembler has different comment format


  • 64tass does not know the includekeyword


so it is none of the above (I tried and the build failed).










share|improve this question




















  • 1





    So far it might be safe to assume you're looking fro an 6502 assembler, but what computer?

    – Raffzahn
    3 hours ago






  • 2





    It is for a C64, I added it to the description.

    – Peter B.
    3 hours ago






  • 2





    I suggest ignoring #include and any other C preprocessor like directive, and assume the source code you're looking at meant to handled by passing the source though a C preprocessor before being assembled. The GNU Assembler doesn't support C preprocessing directives, but you'll find a lot of code written for it that uses them anyways.

    – Ross Ridge
    3 hours ago











  • Having used DASM extensively for 15 years, I 'converted' to KickAss a couple of years ago. It's my preferred cross-assembler for 6502 now, and well worth the effort of doing the work necessary to shift from DASM (or other) syntax.

    – Eight-Bit Guru
    3 hours ago











  • Do you know anything about the age of the source? It could narrow down the possibilities. Also comments might give some clues to those who knows the assembler.

    – UncleBod
    2 hours ago














4












4








4








I found some 6502 assembler code for a Commodore 64 program that uses meta commands like #include "foobar", define the address to be assembled to via *=$1234 and define labels without a colon. Comments are marked with a leading ;, and the syntax allows for specifying characters as constants such as in lda #'A'.



Which assembler programs have this kind of syntax and could be used to assemble the file?



I already know that





  • ca65 assembler uses keywords like .import and .export but not #include. And ca65 requires a colon after a label definition


  • dasm assembler files define the start address with the org directive, but not with *=


  • kickass assembler has different comment format


  • 64tass does not know the includekeyword


so it is none of the above (I tried and the build failed).










share|improve this question
















I found some 6502 assembler code for a Commodore 64 program that uses meta commands like #include "foobar", define the address to be assembled to via *=$1234 and define labels without a colon. Comments are marked with a leading ;, and the syntax allows for specifying characters as constants such as in lda #'A'.



Which assembler programs have this kind of syntax and could be used to assemble the file?



I already know that





  • ca65 assembler uses keywords like .import and .export but not #include. And ca65 requires a colon after a label definition


  • dasm assembler files define the start address with the org directive, but not with *=


  • kickass assembler has different comment format


  • 64tass does not know the includekeyword


so it is none of the above (I tried and the build failed).







commodore-64 assembly 6502






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 hours ago







Peter B.

















asked 3 hours ago









Peter B.Peter B.

759212




759212








  • 1





    So far it might be safe to assume you're looking fro an 6502 assembler, but what computer?

    – Raffzahn
    3 hours ago






  • 2





    It is for a C64, I added it to the description.

    – Peter B.
    3 hours ago






  • 2





    I suggest ignoring #include and any other C preprocessor like directive, and assume the source code you're looking at meant to handled by passing the source though a C preprocessor before being assembled. The GNU Assembler doesn't support C preprocessing directives, but you'll find a lot of code written for it that uses them anyways.

    – Ross Ridge
    3 hours ago











  • Having used DASM extensively for 15 years, I 'converted' to KickAss a couple of years ago. It's my preferred cross-assembler for 6502 now, and well worth the effort of doing the work necessary to shift from DASM (or other) syntax.

    – Eight-Bit Guru
    3 hours ago











  • Do you know anything about the age of the source? It could narrow down the possibilities. Also comments might give some clues to those who knows the assembler.

    – UncleBod
    2 hours ago














  • 1





    So far it might be safe to assume you're looking fro an 6502 assembler, but what computer?

    – Raffzahn
    3 hours ago






  • 2





    It is for a C64, I added it to the description.

    – Peter B.
    3 hours ago






  • 2





    I suggest ignoring #include and any other C preprocessor like directive, and assume the source code you're looking at meant to handled by passing the source though a C preprocessor before being assembled. The GNU Assembler doesn't support C preprocessing directives, but you'll find a lot of code written for it that uses them anyways.

    – Ross Ridge
    3 hours ago











  • Having used DASM extensively for 15 years, I 'converted' to KickAss a couple of years ago. It's my preferred cross-assembler for 6502 now, and well worth the effort of doing the work necessary to shift from DASM (or other) syntax.

    – Eight-Bit Guru
    3 hours ago











  • Do you know anything about the age of the source? It could narrow down the possibilities. Also comments might give some clues to those who knows the assembler.

    – UncleBod
    2 hours ago








1




1





So far it might be safe to assume you're looking fro an 6502 assembler, but what computer?

– Raffzahn
3 hours ago





So far it might be safe to assume you're looking fro an 6502 assembler, but what computer?

– Raffzahn
3 hours ago




2




2





It is for a C64, I added it to the description.

– Peter B.
3 hours ago





It is for a C64, I added it to the description.

– Peter B.
3 hours ago




2




2





I suggest ignoring #include and any other C preprocessor like directive, and assume the source code you're looking at meant to handled by passing the source though a C preprocessor before being assembled. The GNU Assembler doesn't support C preprocessing directives, but you'll find a lot of code written for it that uses them anyways.

– Ross Ridge
3 hours ago





I suggest ignoring #include and any other C preprocessor like directive, and assume the source code you're looking at meant to handled by passing the source though a C preprocessor before being assembled. The GNU Assembler doesn't support C preprocessing directives, but you'll find a lot of code written for it that uses them anyways.

– Ross Ridge
3 hours ago













Having used DASM extensively for 15 years, I 'converted' to KickAss a couple of years ago. It's my preferred cross-assembler for 6502 now, and well worth the effort of doing the work necessary to shift from DASM (or other) syntax.

– Eight-Bit Guru
3 hours ago





Having used DASM extensively for 15 years, I 'converted' to KickAss a couple of years ago. It's my preferred cross-assembler for 6502 now, and well worth the effort of doing the work necessary to shift from DASM (or other) syntax.

– Eight-Bit Guru
3 hours ago













Do you know anything about the age of the source? It could narrow down the possibilities. Also comments might give some clues to those who knows the assembler.

– UncleBod
2 hours ago





Do you know anything about the age of the source? It could narrow down the possibilities. Also comments might give some clues to those who knows the assembler.

– UncleBod
2 hours ago










1 Answer
1






active

oldest

votes


















4














I think it's xa (xa65):




  • #include "foobar"

  • define the address to be assembled to via *=$1234

  • define labels without a colon

  • Comments are marked with a leading ;

  • specifying characters as constants such as in lda #'A' — the example given in the manual uses double quotes (lda #"A"): is that a disqualifier?






share|improve this answer
























  • I just had a chat with André Fachat, the original author, and he's pretty sure that xa65 makes a good match - including the single quote part, which he double checked in source. So I guess Scruss hit it.

    – Raffzahn
    1 hour ago













  • I tried xa and it threw an error on a command ".pet". Googling that led me to the right assembler, it was DreamAss. Thanks a lot for the idea with xa helped me find it!

    – Peter B.
    1 hour ago













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "648"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9267%2flooking-for-a-specific-6502-assembler%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














I think it's xa (xa65):




  • #include "foobar"

  • define the address to be assembled to via *=$1234

  • define labels without a colon

  • Comments are marked with a leading ;

  • specifying characters as constants such as in lda #'A' — the example given in the manual uses double quotes (lda #"A"): is that a disqualifier?






share|improve this answer
























  • I just had a chat with André Fachat, the original author, and he's pretty sure that xa65 makes a good match - including the single quote part, which he double checked in source. So I guess Scruss hit it.

    – Raffzahn
    1 hour ago













  • I tried xa and it threw an error on a command ".pet". Googling that led me to the right assembler, it was DreamAss. Thanks a lot for the idea with xa helped me find it!

    – Peter B.
    1 hour ago


















4














I think it's xa (xa65):




  • #include "foobar"

  • define the address to be assembled to via *=$1234

  • define labels without a colon

  • Comments are marked with a leading ;

  • specifying characters as constants such as in lda #'A' — the example given in the manual uses double quotes (lda #"A"): is that a disqualifier?






share|improve this answer
























  • I just had a chat with André Fachat, the original author, and he's pretty sure that xa65 makes a good match - including the single quote part, which he double checked in source. So I guess Scruss hit it.

    – Raffzahn
    1 hour ago













  • I tried xa and it threw an error on a command ".pet". Googling that led me to the right assembler, it was DreamAss. Thanks a lot for the idea with xa helped me find it!

    – Peter B.
    1 hour ago
















4












4








4







I think it's xa (xa65):




  • #include "foobar"

  • define the address to be assembled to via *=$1234

  • define labels without a colon

  • Comments are marked with a leading ;

  • specifying characters as constants such as in lda #'A' — the example given in the manual uses double quotes (lda #"A"): is that a disqualifier?






share|improve this answer













I think it's xa (xa65):




  • #include "foobar"

  • define the address to be assembled to via *=$1234

  • define labels without a colon

  • Comments are marked with a leading ;

  • specifying characters as constants such as in lda #'A' — the example given in the manual uses double quotes (lda #"A"): is that a disqualifier?







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 hours ago









scrussscruss

6,92111247




6,92111247













  • I just had a chat with André Fachat, the original author, and he's pretty sure that xa65 makes a good match - including the single quote part, which he double checked in source. So I guess Scruss hit it.

    – Raffzahn
    1 hour ago













  • I tried xa and it threw an error on a command ".pet". Googling that led me to the right assembler, it was DreamAss. Thanks a lot for the idea with xa helped me find it!

    – Peter B.
    1 hour ago





















  • I just had a chat with André Fachat, the original author, and he's pretty sure that xa65 makes a good match - including the single quote part, which he double checked in source. So I guess Scruss hit it.

    – Raffzahn
    1 hour ago













  • I tried xa and it threw an error on a command ".pet". Googling that led me to the right assembler, it was DreamAss. Thanks a lot for the idea with xa helped me find it!

    – Peter B.
    1 hour ago



















I just had a chat with André Fachat, the original author, and he's pretty sure that xa65 makes a good match - including the single quote part, which he double checked in source. So I guess Scruss hit it.

– Raffzahn
1 hour ago







I just had a chat with André Fachat, the original author, and he's pretty sure that xa65 makes a good match - including the single quote part, which he double checked in source. So I guess Scruss hit it.

– Raffzahn
1 hour ago















I tried xa and it threw an error on a command ".pet". Googling that led me to the right assembler, it was DreamAss. Thanks a lot for the idea with xa helped me find it!

– Peter B.
1 hour ago







I tried xa and it threw an error on a command ".pet". Googling that led me to the right assembler, it was DreamAss. Thanks a lot for the idea with xa helped me find it!

– Peter B.
1 hour ago




















draft saved

draft discarded




















































Thanks for contributing an answer to Retrocomputing Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9267%2flooking-for-a-specific-6502-assembler%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to label and detect the document text images

Vallis Paradisi

Tabula Rosettana