Memotech Z80 Assembler question

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

Memotech Z80 Assembler question

Post by mrtinb » Sun Apr 14, 2019 5:41 pm

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
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

Moggy
Posts: 1771
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post by Moggy » Sun Apr 14, 2019 11:22 pm

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: 948
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post by mrtinb » 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.
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

User avatar
XavSnap
Posts: 622
Joined: Sat May 10, 2008 4:23 pm

Re: Memotech Z80 Assembler question

Post by XavSnap » 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 ?

Moggy
Posts: 1771
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post by Moggy » Tue Apr 16, 2019 3:39 pm

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: 948
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post by mrtinb » Tue Apr 16, 2019 5:38 pm

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
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

User avatar
mrtinb
Posts: 948
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post by mrtinb » Wed Apr 17, 2019 12:57 am

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 24 times
Z80ASPT2.P
(3 Bytes) Downloaded 24 times
Z80ASPTL.P
(1 KiB) Downloaded 24 times
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

Moggy
Posts: 1771
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post by Moggy » Wed Apr 17, 2019 2:06 pm

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 545 times

User avatar
mrtinb
Posts: 948
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Memotech Z80 Assembler question

Post by mrtinb » Wed Apr 17, 2019 2:28 pm

Cool.

Øh? Danish? I thought you were English?
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

Moggy
Posts: 1771
Joined: Wed Jun 18, 2008 2:00 pm

Re: Memotech Z80 Assembler question

Post by Moggy » Wed Apr 17, 2019 2:39 pm

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