Memotech Z80 Assembler question

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

Re: Memotech Z80 Assembler question

Post by mrtinb » Wed Apr 17, 2019 8:58 pm

I've made an update.

This is even more automatic.

It automatically disables auto-new-line, when it reaches the empty line at the end.
Attachments
Z80ASP2K.P
(89 Bytes) Downloaded 38 times
Z80ASP2J.P
(3 Bytes) Downloaded 40 times
Z80ASP2L.P
(1.03 KiB) Downloaded 37 times
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

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

Re: Memotech Z80 Assembler question

Post by Moggy » Wed Apr 17, 2019 9:27 pm

Downloaded and trying them now.

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

Re: Memotech Z80 Assembler question

Post by Moggy » Wed Apr 17, 2019 9:40 pm

This is great work Martin. :ugeek:

This assembler has just become much better.

Many thanks for the time you have given to this, Martin I much appreciate it.

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

Re: Memotech Z80 Assembler question

Post by mrtinb » Wed Apr 17, 2019 10:17 pm

I needed the features myself.
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

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

Re: Memotech Z80 Assembler question

Post by Moggy » Wed Apr 17, 2019 10:20 pm

I noticed that if a comment is added to the listing without space after the semi colon then the auto list works ok.

But if a space is typed after the semi colon used for comments then this seems to stop the auto list but I shall experiment more before reaching a conclusion.


EXAMPLE

1 ORG 16514
2 POS 16514
3 LD A,128
4 RST 16
5 ; THIS MAY STOP
6 ;THIS MAY NOT
7 RET
8 END

EDIT.

Yes having checked again it seems that when adding comments do not leave a space after the semi colon and the auto list will work ok.

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

Re: Memotech Z80 Assembler question

Post by Moggy » Wed Apr 17, 2019 10:45 pm

I have edited my previous post many times for which I apologise as I tend to write/test as I go along hence the many edits. :oops:

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

Re: Memotech Z80 Assembler question

Post by mrtinb » Wed Apr 17, 2019 10:46 pm

Nope.

It’s because I don’t check whether the whole line is empty.

I only check the first char of the mnemonic. So some comments will be seen as empty lines. This is why an added space early on the line, pushes a char into the first char of the mnemonic place.
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

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

Re: Memotech Z80 Assembler question

Post by Moggy » Wed Apr 17, 2019 10:49 pm

If you read again my edited post, Martin you will see that I have come to the conclusion that all that is required is to not leave a space after the semi colon and all is ok. :D

Again this is excellent work.

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

Re: Memotech Z80 Assembler question

Post by mrtinb » Wed Apr 17, 2019 10:58 pm

It’s to keep the patch small an simple (and not too slow, as it’s running for every key press).
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

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

Re: Memotech Z80 Assembler question

Post by mrtinb » Fri Apr 19, 2019 10:06 am

Now there's a patch, that detects empty lines better. Before, it detected empty line with space in column 7. Now it tests for space both in column 1 and 7.

And there's an extra easter gift. Shift-T will enable/disable [.] period-key to work as tabulator as well. Then you don't need to press two keys e.g. Shift-Z for tabulator.

(Somehow you need to activate Shift-T to activate Shift-NL.)

Edit: Load Z80ASP3L, and it will load the other files.
Attachments
Z80ASP3K.P
(170 Bytes) Downloaded 42 times
Z80ASP3J.P
(3 Bytes) Downloaded 42 times
Z80ASP3L.P
(1.28 KiB) Downloaded 41 times
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube

Post Reply