Search found 2228 matches

by NormanDunbar
Mon Jan 08, 2024 4:20 pm
Forum: Software & Programming
Topic: Bug in string handling in SMSQ/E
Replies: 11
Views: 1158

Re: Bug in string handling in SMSQ/E

I think that attempting to slice a string from the wrong end, as here, should either always return an empty string, or always return an error. This behaviour is not consistent. I discovered this problem in SSB where it uses variables to slice the string, not hard coded values. So: in$ = in$(temp to ...
by NormanDunbar
Mon Jan 08, 2024 3:40 pm
Forum: Software & Programming
Topic: Bug in string handling in SMSQ/E
Replies: 11
Views: 1158

Re: Bug in string handling in SMSQ/E

XorA wrote: Mon Jan 08, 2024 3:25 pm Is it because line 20 is only only one char wide even if you are going the wrong direction?
Dunno!

Line 20 returns an empty string but only if (end_pos - start_pos) = -1. Any other negative difference between start_pos and end_pos results in the error message.

Cheers,
Norm.
by NormanDunbar
Mon Jan 08, 2024 2:54 pm
Forum: Software & Programming
Topic: Bug in string handling in SMSQ/E
Replies: 11
Views: 1158

Re: Bug in string handling in SMSQ/E

Thanks Per. I suggest therefore, that we have a bug!


Cheers,
Norm.
by NormanDunbar
Mon Jan 08, 2024 1:02 pm
Forum: Software & Programming
Topic: Bug in string handling in SMSQ/E
Replies: 11
Views: 1158

Bug in string handling in SMSQ/E

I'm using QPC2, the latest version in case that makes a difference. If I define a string with some contents, then try to take a slice of that string where the start position is one less than the end position, I get the empty string. If the end position is 2 or more less than the start position, I ge...
by NormanDunbar
Sat Jan 06, 2024 3:34 pm
Forum: Software & Programming
Topic: Copy binary file into array in basic
Replies: 18
Views: 1865

Re: Copy binary file into array in basic

I recommend Norman's excellent assembly book (free): https://github.com/NormanDunbar/QLAssemblyLanguageBook/ And lots of links in this thread: https://www.qlforum.co.uk/viewtopic.php?p=35362&hilit=norman+assembler+book I thank you, Sparrowhawk, for the vote of confidence! In addition to the fre...
by NormanDunbar
Thu Jan 04, 2024 11:12 am
Forum: Links to QL Services and Websites
Topic: SBASIC / SuperBASIC Reference Manual Online
Replies: 64
Views: 77392

Re: SBASIC / SuperBASIC Reference Manual Online

Ok, I've submitted a build of the updated docs as version 4.0.2 which has completed successfully. The following commands have been fixed and the escape characters before underscores in code blocks have been removed: DIR, DO. ENV_DEL, EW. FTEST. GT$. KEY_ADD. PARHASH, PTH_ADD. SET_LANGUAGE. Appendix ...
by NormanDunbar
Thu Jan 04, 2024 10:38 am
Forum: Links to QL Services and Websites
Topic: SBASIC / SuperBASIC Reference Manual Online
Replies: 64
Views: 77392

Re: SBASIC / SuperBASIC Reference Manual Online

QLvsJAGUAR wrote: Thu Jan 04, 2024 10:18 am ...I assume those are typos.
Technically, no! ;)

They are escape characters to prevent the underscore from beginning italic text, but they shouldn't have been in the output. I shall have a look and see if I can find these, and more, and fix them all.

Cheers,
Norm.
by NormanDunbar
Thu Jan 04, 2024 7:31 am
Forum: Links to QL Services and Websites
Topic: SBASIC / SuperBASIC Reference Manual Online
Replies: 64
Views: 77392

Re: SBASIC / SuperBASIC Reference Manual Online

I will update the version, when changes are made in future, thanks for the prompt.

I'm afraid that I have no control over the download file names, that's "Read The Docs" , not me. They generate the downloads. Sorry.


Cheers,
Norm.
by NormanDunbar
Mon Jan 01, 2024 8:51 am
Forum: The Welcome Area
Topic: Happy New Year
Replies: 5
Views: 850

Re: Happy New Year

Happy New Year Derek and welcome to the forum.

Feel free to ask away and someone here is bound to be able to help.


Cheers,
Norm.
by NormanDunbar
Fri Dec 29, 2023 11:36 am
Forum: Software & Programming
Topic: QUESTION: Branch Size on QPC2 (68020+)?
Replies: 16
Views: 2380

Re: QUESTION: Branch Size on QPC2 (68020+)?

The GWASS directive "LOW_EA" will produce code fit for the 68000 so there is no need to use GWASL. Of course no 680x0 specific instructions should be present but as GWASL is more strict in the syntax then GWASS I prefer to use the latter. Also, another reasons to use this in GWASS rather ...