Page 2 of 3

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 8:58 pm
by mrtinb
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.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 9:27 pm
by Moggy
Downloaded and trying them now.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 9:40 pm
by Moggy
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.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 10:17 pm
by mrtinb
I needed the features myself.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 10:20 pm
by Moggy
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.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 10:45 pm
by Moggy
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:

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 10:46 pm
by mrtinb
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.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 10:49 pm
by Moggy
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.

Re: Memotech Z80 Assembler question

Posted: Wed Apr 17, 2019 10:58 pm
by mrtinb
It’s to keep the patch small an simple (and not too slow, as it’s running for every key press).

Re: Memotech Z80 Assembler question

Posted: Fri Apr 19, 2019 10:06 am
by mrtinb
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.