6502 assembler for Windows/Linux

bbc/electron apps, languages, utils, educational progs, demos + more
Post Reply
iwasjafa
Posts: 77
Joined: Fri Nov 01, 2019 6:50 pm
Contact:

6502 assembler for Windows/Linux

Post by iwasjafa » Tue Nov 12, 2019 5:34 pm

Does anyone know of a 6502 assembler for Windows 10 or Linux that can produce a code file for blowing into a Sideways ROM. The BBC BASIC programs that I can find seem to be producing code for an Intel or ARM environment, unless I have misread the information. It would be possible to use beebem, but editing is painful and it seems to need to produce intermediate bbc disk files.

What I want is a program that uses the windows or linux screen editing facilities and produces a 6502 rom file for blowing with an eprom programmer.

Does anyone know the best route to take?

Regards,
John

User avatar
geraldholdsworth
Posts: 642
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: 6502 assembler for Windows/Linux

Post by geraldholdsworth » Tue Nov 12, 2019 5:43 pm

BeebASM.

Edit the code in a text editor, then run it through BeebASM as a command line prompt...I do believe. Haven't actually used it myself.
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

duikkie
Posts: 2987
Joined: Fri Feb 07, 2014 3:28 pm
Contact:

Re: 6502 assembler for Windows/Linux

Post by duikkie » Tue Nov 12, 2019 7:15 pm

why ? programming on a beeb more fun and so easy =D>

User avatar
1024MAK
Posts: 10292
Joined: Mon Apr 18, 2011 5:46 pm
Location: Looking forward to summer in Somerset, UK...
Contact:

Re: 6502 assembler for Windows/Linux

Post by 1024MAK » Tue Nov 12, 2019 7:26 pm

Have a look at the tools linked on this page ;-)

Mark

bprosman
Posts: 441
Joined: Sun Mar 29, 2015 11:27 pm
Contact:

Re: 6502 assembler for Windows/Linux

Post by bprosman » Tue Nov 12, 2019 8:19 pm

The latest TASM works perfectly in a DOS box under Windows 10.
https://www.retrocomputing.nl/elektors- ... -jm-eprom/

User avatar
sydney
Posts: 2722
Joined: Wed May 18, 2005 10:09 am
Location: Newcastle upon Tyne
Contact:

Re: 6502 assembler for Windows/Linux

Post by sydney » Tue Nov 12, 2019 8:53 pm

Another vote for beebasm here.

User avatar
jms2
Posts: 2678
Joined: Mon Jan 08, 2007 6:38 am
Location: Derby, UK
Contact:

Re: 6502 assembler for Windows/Linux

Post by jms2 » Tue Nov 12, 2019 9:06 pm

I'm using BeebAsm John. One of the great attractions of this is that you can use BeebDis to disassemble existing code straight into the format recognised by BeebAsm, then comment the code and rebuild it. This is the technique I used to reverse engineer your E2P code.

iwasjafa
Posts: 77
Joined: Fri Nov 01, 2019 6:50 pm
Contact:

Re: 6502 assembler for Windows/Linux

Post by iwasjafa » Tue Nov 12, 2019 11:29 pm

Thanks for the suggestions. I will give beebasm a try!

User avatar
tricky
Posts: 4675
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: 6502 assembler for Windows/Linux

Post by tricky » Wed Nov 13, 2019 7:54 am

I use beebasm for all my beeb asm ;)

Coeus
Posts: 1821
Joined: Mon Jul 25, 2016 12:05 pm
Contact:

Re: 6502 assembler for Windows/Linux

Post by Coeus » Mon Nov 25, 2019 10:12 pm

It depends on whether you do a lot of assembler for other microprocessors and want to use the same tool for both. If that's the case one of the multi-processor assemblers might be the answer.

For Beeb only then BeebAsm is a really good choice. It runs on both Windows and Linux and has the closest syntax to the built-in assembler in BBC BASIC including a selection of BASIC functions. It can write to native files on the Windows or Linux host in raw binary format or into a file on an SSD image ready to transfer to a real BBC micro or run in an emulator for testing. It's also an official stardot project with a home on the StarDot github: https://github.com/stardot/beebasm

User avatar
JudgeBeeb
Posts: 1110
Joined: Thu Sep 10, 2015 9:56 pm
Contact:

Re: 6502 assembler for Windows/Linux

Post by JudgeBeeb » Wed Nov 27, 2019 9:56 am

Another vote for BeebAsm. As well as Linux and Windows, it is also very easy to build it for macOS. And there are plenty of good quality text editors which offer appropriate syntax highlighting such as Notepad++ and Visual Studio Code.

EDIT: Just realised that my comment about macOS is irrelevant given the subject heading.
Last edited by JudgeBeeb on Wed Nov 27, 2019 11:00 am, edited 1 time in total.
There is so much wonder in the universe; why should you want to imagine that there is more?

User avatar
roland
Posts: 4050
Joined: Thu Aug 29, 2013 9:29 pm
Location: Born (NL)
Contact:

Re: 6502 assembler for Windows/Linux

Post by roland » Wed Nov 27, 2019 10:42 am

I use both BeebASM and CA65 (part of the CC65 suite) and both work fine for me. The Beeb-part concerns the syntax of the assembler which is much like the Beeb's assembler and the output is just generic 6502 code. I use it a lot for my Atom programs. If you want a more generic source code syntax then CA65 might be a better choice.

Both are open source and free to use, so I advice to try both and pick the one you like the most :D
FPGAtom: 512 KB RAM, Real Time Clock and 64 colours
MAN WOMAN :shock:

fuzzel
Posts: 660
Joined: Sun Jan 02, 2005 1:16 pm
Location: Cullercoats, North Tyneside
Contact:

Re: 6502 assembler for Windows/Linux

Post by fuzzel » Wed Nov 27, 2019 3:15 pm

Beebasm is fantastic. It's especially useful for large programs where it's difficult to fit the assembled code into a standard beeb's memory because the code has to share memory with the basic program containing your program so you're effectively doubling up on memory usage. With beebasm you get the full PAGE to HIMEM space all to your assembly program.
Also, writing it in notepad for example, you can very quickly make amendments or use search and replace and have the re-assembled code ready in seconds (via the program which runs in a DOS command prompt).

User avatar
jms2
Posts: 2678
Joined: Mon Jan 08, 2007 6:38 am
Location: Derby, UK
Contact:

Re: 6502 assembler for Windows/Linux

Post by jms2 » Wed Nov 27, 2019 3:40 pm

fuzzel wrote:
Wed Nov 27, 2019 3:15 pm
With beebasm you get the full PAGE to HIMEM space all to your assembly program.
It’s even better than that actually! :D you can assemble from &0000 to &FFFF, the only limit is whether your beeb can run it. This is mostly relevant for second processor setups.

Post Reply

Return to “8-bit acorn software: other”