Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Badass - New 6502 Assembler
2020-06-28 17:47
Sasq

Registered: Apr 2004
Posts: 155
Badass - New 6502 Assembler

The last couple of months I've created a new 6502 Assembler called bass (or Badass).

The basic idea is for it to be as advanced as Kickassembler, but with a less complex, more unified syntax.

And it also has unit tests in an internal emulator.

You can find it at https://github.com/sasq64/bass

I've started a tutorial here: http://apone.org/bass/part1.html

Here is an example C64 source http://apone.org/bass/example.asm.html
 
... 106 posts hidden. Click here to view all posts....
 
2020-09-17 22:36
Mr. SID

Registered: Jan 2003
Posts: 419
Yeah, you can do stuff like that with k2asm and Python too. Some of it is useful and other things are masturbatory coding... :)
2020-09-17 22:40
Sasq

Registered: Apr 2004
Posts: 155
Does k2asm also contain an emulator?
Otherwise I can't see how it can do this.
2020-09-17 23:49
Mr. SID

Registered: Jan 2003
Posts: 419
No, but you can do pretty much anything in Python these days: https://github.com/docmarionum1/py65emu
2020-09-18 22:38
Compyx

Registered: Jan 2005
Posts: 631
Hot damn, there's PLA in play*. An actual mnemonic in a shitload of 'code'.
2020-12-11 16:16
Sasq

Registered: Apr 2004
Posts: 155
I have done several improvements now, including a built in "fantasy" text mode 6502 system.

This allows you to prototype program to run directly in the terminal.

Made a short & ugly screencast about it:

https://youtu.be/g1uuhz7Qupw

Manual is also coming along, and the "hardware" of the text mode system is documented at the end:

http://apone.org/bass/
2021-04-13 13:17
Krill

Registered: Apr 2002
Posts: 2804
Just came across something which might or might not be a sensible and valuable feature for a 6502 assembler:

Interleaving code.

Sometimes, you really want to mix two "unrelated" sources at build time, with various constraints.

E.g., intermingling multispeed/sample-replay with VIC raster stuff and other (branch-less unrolled) code as to minimise context-switching overhead.

Or, putting little NMI handlers into pages which also happen to hold some other (fully branching) code.

The question would be, should an assembler handle that (instead of some higher-level compiler-like thing), and how to formalise/formulate the constraints.
2021-04-13 13:18
chatGPZ

Registered: Dec 2001
Posts: 11088
support for interleave code with fpp data? yes please :)
2021-04-13 13:23
Krill

Registered: Apr 2002
Posts: 2804
Quoting Groepaz
support for interleave code with fpp data? yes please :)
Indeed, mixing executable code with other data is also something you need here and there. :)
2021-04-13 14:35
map

Registered: Feb 2002
Posts: 27
'Some higher-level compiler-like thing' for this problem seems to be invented it seems.
At least according to Raistlins comment here:
https://csdb.dk/release/?id=195841&show=notes#notes

Quoting name
**Raistlin’s Code Generator**
Note that most of Raistlin’s parts used his C++ tool for generating highly optimised/unrolled ASM. It’s able to neatly interleave any “grunt” code (such as bitmap/char/sprite plotting) into accurately timed IRQ code (eg. For border opening). With this, opening borders and such is very simple - allowing the coder to concentrate on optimising the plotting algorithms. Without the tool, we shudder to think how someone might go about achieving some of the things we made for this demo ;-)


Actually I'm wondering if Raistlin would like to share that tool, or at least some more details. :-)
2021-04-13 14:39
JackAsser

Registered: Jun 2002
Posts: 1987
See S:T Lars Meeting III - Invite source
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Guests online: 367
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 No Bounds  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 Party Elk 2  (9.7)
2 Cubic Dream  (9.6)
3 Copper Booze  (9.5)
4 Rainbow Connection  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Onscreen 5k  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Nostalgia  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Antitrack  (9.8)
5 OTD  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.051 sec.