General Category > Programming

BASM: Best ASseMbler in my desk room.

<< < (2/6) > >>

krusty_benediction:

--- Quote from: Targhan on 23:57, 06 October 21 ---Cool. But I don't think I would switch to yet another assembler... unless you can show me things you can do better than Rasm!

--- End quote ---
I do not know what to answer ;)If you are happy of your workflow with rasm, there is no reason to change.
If you want to use additional features, such as those I presented in the first post, there is an interest to use basm.

krusty_benediction:

--- Quote from: Sid_ on 11:43, 07 October 21 ---
Hi Krusty,
where can I find the sources to compile it on macOS and linux ?

--- End quote ---

At the moment, basm is buried in my CPC toolbox. I may change that later and ease the installation procedure.
So you just need to clone the repository https://github.com/cpcsdk/rust.cpclib and use the command line of first post


See https://www.cpcwiki.eu/forum/programming/basm-best-assembler-in-my-desk-room/msg207962/#msg207962

Targhan:
The Section looks interesting, though I don't think I would ever use it (doesn't it clutter the code?).

krusty_benediction:

--- Quote from: Targhan on 00:38, 08 October 21 ---The Section looks interesting, though I don't think I would ever use it (doesn't it clutter the code?).

--- End quote ---
I think it is clean and nice for moderated size projects as you can provide some kind of semantic to your memory area in one place instead of relying on assertions to manually check if you write code in forbidden zones (and I am pretty sure it would be more unreadable for assertions in some code I have in mind).
I think it is wonderful for generated code where data and code are interleaved (think about a demo effect that use 100÷ of line to line splitting memory area and the rest for the demo effect). You can simplify the generator by letting basm doing the checks (instead of the generator that would have to know the size of generated code) and by generating separately data source and code source wheras thé would be mixed once assembled.
Finally it can ease writing a some ugly stuff that would have been useful for me when writing crtc (for example to have some code in an effect source code injected in the demo system area, instead of putting it in the demo system source)
I have not yet intensively tested this directive, but I will surely use it intensively in my next project

krusty_benediction:

--- Quote from: Sid_ on 11:43, 07 October 21 ---Hi Krusty,
where can I find the sources to compile it on macOS and linux ?

--- End quote ---
Hi have updated a bit the repo; so the previous answer is no more correct. Here is the new one:
git clone https://github.com/cpcsdk/rust.cpclib.git
cd rust.cpclib/basm && cargo install --path=. --bin=basm

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version
Powered by SMFPacks Reactions Mod
Powered by SMFPacks Alerts Pro Mod
Powered by SMFPacks Mentions Pro Mod