Page 1 of 3

Memotech Z80 Assembler question

Posted: Sun Apr 14, 2019 5:41 pm
by mrtinb
I know Moggy is using Memotech's Z80 Assembler, and maybe others.

It seems like a great editor.

One thing that bugs me is that when you load source and enter Z80 Assembler, you need to add every single line with Newline, before the source is accessable to the Z80 Assembler again.

Is there any way around this? This takes too much time, when the source is 120 lines.

Maybe the "ROM" (loaded to RAM with ZXpand) could be hacked.

Re: Memotech Z80 Assembler question

Posted: Sun Apr 14, 2019 11:22 pm
by Moggy
I have noticed this weakness in the assembler too.
I have an external keyboard with auto repeat so I just hold down the enter key instead of individual keypresses whilst it reloads each line but I have to admit it is annoying.

A keypress repeat hack for a standard zeddy would help a little I suppose.

Re: Memotech Z80 Assembler question

Posted: Mon Apr 15, 2019 9:42 pm
by mrtinb
I have looked at the disassembled ML for several hours today.

Maybe I could hack the code a little.

Re: Memotech Z80 Assembler question

Posted: Tue Apr 16, 2019 12:25 am
by XavSnap
Hi Martin,
Your want to enter a "Text" (mnemonics) in a 'P' file, and call the assembleur in the ROM ?

Re: Memotech Z80 Assembler question

Posted: Tue Apr 16, 2019 3:39 pm
by Moggy
mrtinb wrote: Mon Apr 15, 2019 9:42 pm I have looked at the disassembled ML for several hours today.

Maybe I could hack the code a little.
This would be very useful Martin as it would make the assembler much more usable.

Re: Memotech Z80 Assembler question

Posted: Tue Apr 16, 2019 5:38 pm
by mrtinb
XavSnap wrote: Tue Apr 16, 2019 12:25 am Hi Martin,
Your want to enter a "Text" (mnemonics) in a 'P' file, and call the assembleur in the ROM ?
If you try the assembler with the instructions in the manual (create string array), and go back to basic to save the source, it all works fine.

But when you later load the source and enter the assembler, the editor is empty. You enter a new line in the editor, and the first line of the source is shown to you, and you accept with newline. Then the second line is shown to you and you accept with newline etc. So it is a very slow process to accept every single line from loaded source with a newline on every line. Only after that you can assemble or edit your source again.

You will understand if you try. The manual does not describe this.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 12:57 am
by mrtinb
Working on it yesterday and all day today.

Load Z80ASPTL.P, and it will load the two patches for Memotech Z80 Assembler.

Now Shift-NewLine activates auto-newline, and Shift-NewLine deactivates it again.

This will only work with Z80 Assembler in RAM, and not the original one. Requires ZXpand load-at-address feature.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 2:06 pm
by Moggy
Dette har netop gjort livet meget lettere.

Fantastisk arbejde, Martin

Why didn't Memotech do this!?

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 2:28 pm
by mrtinb
Cool.

Øh? Danish? I thought you were English?

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 2:39 pm
by Moggy
mrtinb wrote: Wed Apr 17, 2019 2:28 pm Cool.

Øh? Danish? I thought you were English?
I am English but thought it would be nice to thank you in your own language. :D