Memotech Z80 Assembler question
Re: Memotech Z80 Assembler question
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.
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 37 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
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Re: Memotech Z80 Assembler question
Downloaded and trying them now.
Re: Memotech Z80 Assembler question
This is great work Martin.
This assembler has just become much better.
Many thanks for the time you have given to this, Martin I much appreciate it.

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
I needed the features myself.
Martin
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Re: Memotech Z80 Assembler question
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.
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
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. 

Re: Memotech Z80 Assembler question
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.
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
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Re: Memotech Z80 Assembler question
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. 
Again this is excellent work.

Again this is excellent work.
Re: Memotech Z80 Assembler question
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
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Re: Memotech Z80 Assembler question
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.
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
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube