Author Topic: ORGAMS, the new CPC assembler!  (Read 4938 times)

khaz and 1 Guest are viewing this topic.

Offline trabitboy

  • Supporter
  • CPC664
  • *
  • Posts: 90
  • Country: be
  • Liked: 49
Re: ORGAMS, the new CPC assembler!
« Reply #20 on: 19:37, 09 April 15 »
Thanks a million, this is helpful :)
Try on real hw tonight !!!
( trying the roms on emu right now )

Offline trabitboy

  • Supporter
  • CPC664
  • *
  • Posts: 90
  • Country: be
  • Liked: 49
Re: ORGAMS, the new CPC assembler!
« Reply #21 on: 01:50, 10 April 15 »
Could get it to run on emu successfully; after going through the wiki and trying a few things I have a question: does it import winape sources that have includes? How does this "ide" deal with multiple source?

I can easily concatenate all my sources into one but I don't like it too much, surely somebody else already had a need to work on multi source projects?

Otherwise super sexy, although I am still searching for my xmem in my boxes #shame# #full disclosure# to try it on real hardware.

Offline madram

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 44
Re: ORGAMS, the new CPC assembler!
« Reply #22 on: 03:22, 01 May 16 »
Orgams only handle one file at a time. My work-flow is to assemble separately each source, each with its jump table, and to burn the binaries in ROMs.
So, the main source remains very fast to assemble, without any drive access occurring.

This method has its limitations, thus 'includes' are meant to be included at some point, with a cache mechanism (i.e. included file is only loaded once).

But it's unlikely to happen before Christmas, except:
  • by popular demand.
  • someone's is willing to help in this area.
Oh! In case you've missed it, user guide here: UserGuide - ORGAMS
Feel free to fix remaining anglefish mistakes.

Offline madram

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 44
Re: ORGAMS, the new CPC assembler!
« Reply #23 on: 15:05, 27 June 16 »
Request for comments

The ability to load binaries from source would be handy.
Even in Monogams, it would be better than LOAD from BASIC or HACKIT :
* no buffer/memory issue.
* can load anywhere, up to 64k. Would also work in special configuration (e.g. Bank &c2).
Then, the default would be to use file's loading address.

A contrario, within the source, we likely want to load from current position ($, or $$).
So, what would you prefer :

Code: [Select]
  load "donut.raw",$
or
  include "donut.raw"
or
  better solution yet.

In both cases, we will be able to load only a part of the file (mimicking the size parameter of save command):
Code: [Select]
    load "donut.raw",$,&200  ; first 512 bytes
    load "donut.win",$,-5    ; all but last 5 bytes
« Last Edit: 20:34, 27 June 16 by madram »

Offline madram

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 44
Re: ORGAMS, the new CPC assembler!
« Reply #24 on: 20:42, 27 June 16 »
Here is my comment !

Within the source, I think we need both, since behavior would be different:
  • LOAD to load at an arbitrary address, leaving $ and $$ untouched
  • INCLUDE to load at current $$, adding 'size' to both $ and $$
Put in other way, since LOAD can use an arbitrary address, it doesn't feel right to update $ or $$.
The behavior of LOAD would be exactly the same than the corresponding monitor command.
And of course, INCLUDE would make no sense in monitor.

Offline HAL 6128

  • 464 Plus
  • *****
  • Posts: 379
  • Country: de
    • index.php?action=treasury
  • Liked: 154
Re: ORGAMS, the new CPC assembler!
« Reply #25 on: 23:53, 20 July 16 »
@madram: just a short question: I tried the assembler for the first time. The "ret" command wont be recognized by the editor as a command but as a label? What do I do wrong? (It's too difficult to understand the French user guide correctly.)
...proudly supported Pentomino with GFX

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 797
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 461
Re: ORGAMS, the new CPC assembler!
« Reply #26 on: 11:12, 21 July 16 »
You must put a Space before the ret command as the other z80 opcodes or they Will be taken as label.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline HAL 6128

  • 464 Plus
  • *****
  • Posts: 379
  • Country: de
    • index.php?action=treasury
  • Liked: 154
Re: ORGAMS, the new CPC assembler!
« Reply #27 on: 13:21, 21 July 16 »
...ah, that's easy! :)
Thank you very much for your short hint & help.
...proudly supported Pentomino with GFX

Offline Ast

  • 6128 Plus
  • ******
  • Posts: 797
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 461
Re: ORGAMS, the new CPC assembler!
« Reply #28 on: 13:48, 21 July 16 »
You're welcome.
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"


Amstrad Plus French Forum

All friends are welcomed !

Offline madram

  • CPC664
  • ***
  • Posts: 68
  • Country: fr
  • Liked: 44
Re: ORGAMS, the new CPC assembler!
« Reply #29 on: 05:39, 22 July 16 »
Note: Orgams is very permissive for labels. 'ret' could be a label, not an advisable one for sure. Even 'd' is accepted, handy for quick debugging shortcut (i.e. 'dd' in monitor).

But you don't need any spaces when entered text can't be a label :
Code: [Select]
; Miaou
lda,-1 ; expand to  LD A,-1
exaf,  ; expand to  EX AF,AF


Note2: there is an English user guide, thanks to Shakespearean CPCWiki members: UserGuide - ORGAMS. Will be on disk in the incoming release.
« Last Edit: 05:43, 22 July 16 by madram »