Looking for a specific 6502 Assembler
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
. Andca65
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 theinclude
keyword
so it is none of the above (I tried and the build failed).
commodore-64 assembly 6502
add a comment |
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
. Andca65
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 theinclude
keyword
so it is none of the above (I tried and the build failed).
commodore-64 assembly 6502
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
add a comment |
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
. Andca65
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 theinclude
keyword
so it is none of the above (I tried and the build failed).
commodore-64 assembly 6502
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
. Andca65
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 theinclude
keyword
so it is none of the above (I tried and the build failed).
commodore-64 assembly 6502
commodore-64 assembly 6502
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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?
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 triedxa
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 withxa
helped me find it!
– Peter B.
1 hour ago
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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?
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 triedxa
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 withxa
helped me find it!
– Peter B.
1 hour ago
add a comment |
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?
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 triedxa
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 withxa
helped me find it!
– Peter B.
1 hour ago
add a comment |
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?
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?
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 triedxa
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 withxa
helped me find it!
– Peter B.
1 hour ago
add a comment |
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 triedxa
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 withxa
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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