Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:10 02 May 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Assembler on CMM2

Author Message
joker

Regular Member

Joined: 06/02/2024
Location: Germany
Posts: 41
Posted: 06:24pm 01 May 2026
Copy link to clipboard 
Print this post

Hello,
Do you remember that we talked quite a while ago about an ARM Assembler in Basic?

After finishing some other projects I gave it a second thought and this time it worked. I created an assembler suite containing a
 - a Thumb/Thumb-2 assembler for a cortex-M7
 - a disassembler to view CSUB code
 - file format converters from
   - bin to CSUB
   - CSUB to bin
   - ELF to CSUB
 - an assembler include file for the MMBasic API

Maybe this is the most useless programm since the book "How to learn French" was translated to French, but to my surprise you can do real work with it.  

It is a 1.5 pass assembler, which uses some private arrays to encode forward references without a second pass. As a result, it needs some help with some encodings once in a while. It only supports Thumb (16 and 32-bit), one processor (cortex-M7) and only a limited set of assembler directives. It cannot live up to the arm-non-eabi-as or the gcc but it works.

You can find the code on github.com: CMM2 Assembler Wiki

Tell me what you think.

Cheers
 Matthias
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1871
Posted: 07:57pm 01 May 2026
Copy link to clipboard 
Print this post

Does this mean the possibility of mere mortals being able to create CSUBS?
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026