...There may be another issue involving DP (direct page pointer) when it is set to something other than the default $0000, but I haven’t yet determined if it is a bug in my code or a bug in the simulator’s code. It has to do with temporarily pointing DP to SP+1 in functions (subroutines).
Kowalski Simulator Updates
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
BigDumbDinosaur wrote:
8BIT wrote:
I will work on these 2 items as time permits...
...There may be another issue involving DP (direct page pointer) when it is set to something other than the default $0000, but I haven’t yet determined if it is a bug in my code or a bug in the simulator’s code. It has to do with temporarily pointing DP to SP+1 in functions (subroutines).
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Kowalski Simulator Updates
I have fixed a bug with macro names and the case-insensitive configuration. Thanks to gregorio for pointing it out.
Version 1.4.1.0 is now on my website. https://sbc.rictor.org/kowalski.html
BDD, I know you use macros extensively so please let me know if you find any issues with this fix. Also, I have not forgotten the memory display bugs...they are just more extensive, and I'll have to re-write several whole routines to fix it. I will get to them eventually.
Daryl
Version 1.4.1.0 is now on my website. https://sbc.rictor.org/kowalski.html
BDD, I know you use macros extensively so please let me know if you find any issues with this fix. Also, I have not forgotten the memory display bugs...they are just more extensive, and I'll have to re-write several whole routines to fix it. I will get to them eventually.
Daryl
Please visit my website -> https://sbc.rictor.org/
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
8BIT wrote:
I have fixed a bug with macro names and the case-insensitive configuration. Thanks to gregorio for pointing it out...BDD, I know you use macros extensively so please let me know if you find any issues with this fix.
Quote:
Also, I have not forgotten the memory display bugs...they are just more extensive, and I'll have to re-write several whole routines to fix it. I will get to them eventually.
x86? We ain't got no x86. We don't NEED no stinking x86!
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
It appears the file 6502.htm is missing from the 1.4.1.0 distribution.
Macros with mixed-case names now appear to be acceptable.
Macros with mixed-case names now appear to be acceptable.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Kowalski Simulator Updates
Quote:
It appears the file 6502.htm is missing from the 1.4.1.0 distribution.
Please visit my website -> https://sbc.rictor.org/
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
8BIT wrote:
Quote:
It appears the file 6502.htm is missing from the 1.4.1.0 distribution.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Kowalski Simulator Updates
This is a good fix. I have also fixed the download file so 6502.htm is included. I went through the Windows 11 migration and my dev files are not quite put back yet... I got the html folder but missed 6502.htm. Fixed now.
Please visit my website -> https://sbc.rictor.org/
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
8BIT wrote:
This is a good fix.
Quote:
I have also fixed the download file so 6502.htm is included.
Quote:
I went through the Windows 11 migration and my dev files are not quite put back yet... I got the html folder but missed 6502.htm. Fixed now.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Kowalski Simulator Updates
Thanks for the fix. It seems to be working now.
I suggest ignoring at least the first tab character in labels. In my opinion, this would improve the readability of user-generated source code and reduce the number of frustrating errors.
I suggest ignoring at least the first tab character in labels. In my opinion, this would improve the readability of user-generated source code and reduce the number of frustrating errors.
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
gregorio wrote:
I suggest ignoring at least the first tab character in labels. In my opinion, this would improve the readability of user-generated source code and reduce the number of frustrating errors.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Kowalski Simulator Updates
In my opinion, this example source code is more readable, and I can locate important fragments more quickly than
the next one. Especially if it's extensive.
Unfortunately, for the assembler in Kowalski Sym. the first one is unacceptable even though I can create it in its editor,
Unfortunately, for the assembler in Kowalski Sym. the first one is unacceptable even though I can create it in its editor,
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
gregorio wrote:
In my opinion, this example source code is more readable...
Something that threw me when I first read that was the lack of a blank line between the end of subroutine BLABL and the start of subroutine BLAB2. It appeared that they were one sub...so much for readability. After realizing that BLAB2 was not part of BLABL, I noticed that the former has a little bug in it waiting to bite you.
BTW, just about every assembler I have used required that symbols and labels be started in the first column—and these weren’t just 65xx assemblers. In theory, it should be possible to efface leading whitespace by scanning each source line to find the first non-whitespace character. However, doing so will add processing overhead, especially when assembling many INCLUDE files, without contributing anything to the overall task of generating code.
If you are looking to indent sections to help visualize program flow in loops, you should only indent the mnemonics, operands and comments. Garth has some good illustrations of that on his website. I don’t indent things such as loop bodies in my source, but if I did, I would be using a model such as his.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Kowalski Simulator Updates
It's not just a question of removing leading spaces; with the requirement that labels start in column one, if it starts in column one, it's a label. Otherwise either you have to first check that it's not a mnemonic or a pseudo-op and only then assume it's a label, or you have to insist on, and test for, a terminating colon.
Which doesn't work if e.g. you use a colon for labels and nothing for 'equ' and similar...
Neil
Which doesn't work if e.g. you use a colon for labels and nothing for 'equ' and similar...
Neil
Re: Kowalski Simulator Updates
I notice both BDD and gregorio are explicitly saying how things appear to them. That's good. Neither is saying this is the only way to go.
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Kowalski Simulator Updates
barnacle wrote:
It's not just a question of removing leading spaces; with the requirement that labels start in column one, if it starts in column one, it's a label. Otherwise either you have to first check that it's not a mnemonic or a pseudo-op and only then assume it's a label, or you have to insist on, and test for, a terminating colon.
Which doesn't work if e.g. you use a colon for labels and nothing for 'equ' and similar...
Which doesn't work if e.g. you use a colon for labels and nothing for 'equ' and similar...
x86? We ain't got no x86. We don't NEED no stinking x86!