6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 09, 2024 1:59 pm

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Sep 19, 2022 3:46 pm 
Offline
User avatar

Joined: Thu Oct 12, 2017 10:51 pm
Posts: 87
Does anyone know a reasonably good (and properly licensed) 6502 assembler written in actual machine code, which I can run _on_ a 6502 machine? I'm looking for something simple that will just read a text file of some kind of file system, assemble it, write something back, and terminate. No editor or debugging support required.


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 19, 2022 3:54 pm 
Offline

Joined: Thu Mar 03, 2011 5:56 pm
Posts: 277
http://thewessens.net/collection/apple1/Krusader.htm, perhaps?


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 19, 2022 6:42 pm 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 993
Location: near Heidelberg, Germany
@ass maybe? http://www.6502.org/users/andre/misc/

_________________
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content: http://6502.org/users/andre/


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 07, 2022 6:33 pm 
Offline

Joined: Sat Sep 05, 2020 3:12 pm
Posts: 22
A few related prior discussions:

viewtopic.php?f=2&t=6475 where Gragathaz talks about his Editor Not Included Assembler - currently inaccessibly stuffed away is a storage.

https://atariwiki.org/wiki/Wiki.jsp?page=BiboAssembler - an Atari 8-bit assembler

https://www.commanderx16.com/forum/inde ... mment-7183


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 07, 2022 8:16 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1373
Rich Leary wrote one for his DOS/65 system. I recently ported it over to WDC Tools and have it running on my C02 Pocket SBC (under DOS/65 of course).

I used it assemble several of the DOS/65 tools and utilities, like the basic compiler, runtime, editor, etc.

According to the source file, this was written by Rich and nobody else. His license for DOS/65 is pretty simple.

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 07, 2022 9:23 pm 
Offline
User avatar

Joined: Thu Oct 12, 2017 10:51 pm
Posts: 87
I've looked at the DOS/65 assembler --- it'd be ideal if it weren't for the no-commercial-use license license...


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 07, 2022 10:10 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8177
Location: Midwestern USA
hjalfi wrote:
I've looked at the DOS/65 assembler --- it'd be ideal if it weren't for the no-commercial-use license license...

Sounds like a good reason to write your own assembler. :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 07, 2022 11:31 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1373
Hmmm... I went back to all of the documentation and code that Richard sent me last year. In his Version 2.1 documentation, he specifically states:

Quote:
This documentation and the associated software is not public domain, freeware, or
shareware. It is still commercial documentation and software.
Permission is granted by Richard A. Leary to distribute this documentation and software
free to individuals for personal, non-commercial use.
This means that you may not sell it. Unless you have obtained permission from Richard
A. Leary, you may not re-distribute it. Please do not abuse this.
CP/M is a trademark of Caldera.


In his more recent V3 ROM version, he's changed to a GNU GPL V3 license and states:

Quote:
The DOS/65 V3 ROM software and all other DOS/65 software are free software; you
can redistribute it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3 of the license, or any
later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with this
program; if not, see <http://www.gnu.org/licenses/>.
CP/M is a trademark of Caldera.


Not sure if the license change helps in this situation, but he does include all other DOS/65 software, so that( would/should/could) include previous versions.

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 07, 2022 7:56 pm 
Offline

Joined: Wed Jan 01, 2003 6:32 pm
Posts: 32
You might have a look at my assembler: https://github.com/Dietrich-L/CPM-65/tree/main/ASM

It was optimized for speed and assembles 35 lines/s or 0,45 kB code/s nearly indepentent of the size of the source on my 1 MHz Elektor Junior Computer. My largest source was 70 kB with 5000 lines resulting in 10 kB code.

Dietrich

_________________
My system: Elektor Junior Computer, GitHub https://github.com/Dietrich-L


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 08, 2022 8:11 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8177
Location: Midwestern USA
Dietrich wrote:
You might have a look at my assembler: https://github.com/Dietrich-L/CPM-65/tree/main/ASM

No support for the 65C02?

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 08, 2022 8:30 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10800
Location: England
(Welcome, Dietrich, you have shown enormous self-control in making your first post nearly 20 years after signing up!)


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 08, 2022 9:13 am 
Offline

Joined: Wed Jan 01, 2003 6:32 pm
Posts: 32
Well, unfortunately no 65C02 support, mainly because I don‘t have one.

With regard to self control - it was more an issue between ignorance, lacking competence and laziness on my part

But if my code is of use for somebody, it is worth any effort

Dietrich

_________________
My system: Elektor Junior Computer, GitHub https://github.com/Dietrich-L


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 08, 2022 10:15 am 
Offline
User avatar

Joined: Thu Oct 12, 2017 10:51 pm
Posts: 87
Dietrich wrote:
You might have a look at my assembler: https://github.com/Dietrich-L/CPM-65/tree/main/ASM


I did not know this project existed! Oh, well, I wasn't using those 45 hours of my life anyway...

There's definitely stuff I can steal here; your BDOS seems to be a lot smaller than mine. It's a little simpler due to not needing to be relocatable but that doesn't account for a lot of it. I think I can do a lot of optimisation.

I've also observed (through an attempt to write my own assembler) that requiring relocatable output makes things much more complicated. It requires tracking the types of expressions so as to know whether they're relocatable addresses or not, as well as needing somewhere to put the relocation table during assembly. I was primarily thinking that would happen via creating an object file and then linking, but this rules out simple assembler-loaders, which is unfortunate. It is possible to assemble the file three times at slightly different addresses and then comparing the results to figure out what needs relocation, but that's really slow and I was hoping not to have to.


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 08, 2022 11:14 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10800
Location: England
Many thanks for sharing your code, Dietrich, and breaking your habit of silence!


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 08, 2022 4:29 pm 
Offline
Site Admin
User avatar

Joined: Fri Aug 30, 2002 1:08 am
Posts: 280
Location: Northern California
BigEd wrote:
(Welcome, Dietrich, you have shown enormous self-control in making your first post nearly 20 years after signing up!)

I'd say it was worth the wait! I've been looking through Dietrich's repository and there is a tremendous amount of work there.

Another open source assembler not mentioned here is the one included in Craig Bruce's ACE operating system, which Craig released as public domain:


_________________
- Mike Naberezny (mike@naberezny.com) http://6502.org


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: