Memotech Z80 Assembler question

Discussion about ZX80 / ZX81 Software
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Memotech Z80 Assembler question

Post 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.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post 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.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post by mrtinb »

I have looked at the disassembled ML for several hours today.

Maybe I could hack the code a little.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Memotech Z80 Assembler question

Post by XavSnap »

Hi Martin,
Your want to enter a "Text" (mnemonics) in a 'P' file, and call the assembleur in the ROM ?
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post 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.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post 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.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post 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.
Attachments
Z80ASPTC.P
(77 Bytes) Downloaded 225 times
Z80ASPT2.P
(3 Bytes) Downloaded 226 times
Z80ASPTL.P
(1 KiB) Downloaded 222 times
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post by Moggy »

Dette har netop gjort livet meget lettere.

Fantastisk arbejde, Martin

Why didn't Memotech do this!?
Attachments
thumbsup.jpg
thumbsup.jpg (9.85 KiB) Viewed 4237 times
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post by mrtinb »

Cool.

Øh? Danish? I thought you were English?
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post 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
Post Reply