News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_krusty_benediction

ORGams compatible crossdev-assembler. BUG reports expected

Started by krusty_benediction, 20:58, 15 January 24

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

krusty_benediction

I'm using my own assembler since a while and pushing its updates here https://www.cpcwiki.eu/forum/programming/basm-best-assembler-in-my-desk-room/

In this thread, I'd like to discuss of a new feature, and only this feature: orgams compatibility mode.
Of course, regular orgams users will probably not be interested in such a project, but it will ease project sharing and tests with other users.

I have added a minimal support to assemble ORGAMS projects. It has not been deeply tested yet (only on a single demo effect source code I have not written myself) and I know it cannot build all existing projects. I have no idea at which point it is limited in regards of existing source code in the wild. That's why I need your help to validate if it works with your sources.

Here are the current limitations I'm aware of:

- It parses orgams source code written in ASCII only. .o files are not editable with a standard text editor, but I can still add .o parsing if there are enough users of such functionality
- It does not respect orgams labels visibility rules. As I like the idea, i will probably implement it soon and backport it to the normal flavor of basm
- Content inside IF/ELSE blocs need to be valid ASM source code (maybe it is the case of orgams, i'm not 100% sure. )
- Numbers are not represented the same internally. Maybe there are errors in expression computations


If anyone is interested in a better support, I can improve the compatibility starting from next month.
Feel free to test and give bug reports in this thread or the github project https://github.com/cpcsdk/rust.cpclib/issues


basm.exe is available here https://github.com/cpcsdk/rust.cpclib/releases
Here is an example of using it in orgams mode to create the amsdos file test.bin :
basm --orgams ./tests/asm/orgams_good_repeat.asm  -o test.bin --binary


The main difference with a regular use of basm consists only in adding --orgams flag


Cwiiis

This is great - I'd love to be able to easily assemble Orgams code on the desktop, it'd be ideal for small fixes/changes where I don't necessarily want to get going on the actual machine. Would also be neat possibly for automation too, though who am I kidding, I'm not going to bother with that ;)

Powered by SMFPacks Menu Editor Mod