![]() |
Summary of stuff not working [V1.2.4] - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: Summary of stuff not working [V1.2.4] (/showthread.php?tid=151) Pages:
1
2
|
Summary of stuff not working [V1.2.4] - britlion - 02-06-2010 Okay, I've made several posts and it's all getting confusing. Here's what seems to be wrong:
Re: Summary of stuff not working - LCD - 02-06-2010 If I remember correctly: Usually @ is used as label pointer. BASIC and variables pointers are two different kind of labels. If you check the generated ASM file, you will notice that there is something added to the name of BASIC labels, while variable labels do not have this kind of addition. I discussed this in this forum with Boriel, because I wanted something like LD HL,@variable too. So this is not a bug, this is a feature... ;-) I wonder where boriel is. Even on <!-- m --><a class="postlink" href="http://www.speccy.org/foro/viewtopic.php?f=6&t=492&start=510">http://www.speccy.org/foro/viewtopic.ph ... &start=510</a><!-- m --> his last message was from october 2009. Re: Summary of stuff not working - britlion - 02-08-2010 LCD: I hope your collar bone is better! I can't get @ pointers to work with variables - Boriel himself suggested using something along the lines of Code: DIM udg (7) as uByte => {1,2,3,4,5,6,7,8} To set UDGs. I can't get this to work. Using asm and defb as a label works just fine, however. I too am wondering where he is. I really hope he's okay. Haven't heard anything from him on here since last year. I hope he's just tied up with his PHD stuff, and has been too busy to check the boards. Re: Summary of stuff not working - LCD - 02-08-2010 From day to day it causes less pain, so I hope, I can start working again in around three weeks. I hope, Boriel will reappear soon and clear some of the questions. Strange, but I caaot recall, the Variable pointer ever worked here. Re: Summary of stuff not working - britlion - 02-09-2010 LCD Wrote:From day to day it causes less pain, so I hope, I can start working again in around three weeks. I'm glad you are getting better. I used the UDG variable pointer trick before. It's perfectly reasonable to use asm and a label, I suppose - but I think one of the design ideas for the basic compiler was that asm wouldn't actually be needed. It does sort of break the idea to HAVE to go to inline assembly; though that is staggeringly useful for defb based data. And yeah, I'm starting to get worried about Boriel as well. EDIT: I've just found his twitter, and he seems to be tweeting away. Also he put something in the CAPTCH forum in Jan. So, I think he's okay. We're all good. Re: Summary of stuff not working - LCD - 02-09-2010 I cannot check the code at moment, but I never used a pointer to arrays yet. Boriel came back, this is his latest post: <!-- m --><a class="postlink" href="http://www.speccy.org/foro/viewtopic.php?f=6&t=492&sid=4997401720797764cc191ac2883ecbdf&start=510#p19675">http://www.speccy.org/foro/viewtopic.ph ... 510#p19675</a><!-- m --> Re: Summary of stuff not working - boriel - 02-10-2010 Hi, I'm back Sorry for the delay (read the news in the forum, I explain there why: basically, forum notifications were broken and I wasn't aware of your post). First of all, I've been told that as of version 1.2.4 (the latest one) I've reintroduced old bugs :oops: Try your test with version 1.2.3. I've been all this evening fixing the forum, so I couln't check the compiler bugs, but I will be working on it. Thanks to you all, and hope you're okay. Re: Summary of stuff not working - britlion - 02-10-2010 Glad to have you back Boriel. I keep editing the list of items at the start of this thread to keep it up to date. I just found out (after two days of scratching my head at something that didn't work correctly) that type FIXED comparison ">=" always returns true... So added that to the list. I don't know if it notifies you of edits or not, so I thought I'd add a post to say there's a new bug in the list. Re: Summary of stuff not working - boriel - 02-10-2010 britlion Wrote:Glad to have you back Boriel. I think the phorum does not notify editions. But, at least, these new post are being reported :wink: So, here we go! The ">=" bug is very important. I did many relational operator testing, and the compiler was supposed to past them all. Will check it too. Re: Summary of stuff not working - britlion - 02-10-2010 Yes indeed! That's why I wanted to bring that one particularly to your attention. I can work around it by always using < instead and swapping the variables of course. But it took me ages to realize that was the bug, and I had to do quite a bit of testing to get there. (I'm sort of being proud of myself for isolating that). If you try the test program I listed with 1.23 and 1.24 both have the problem. I think not many people have been working with the fixed type - but I decided to try floating point screen pixels for added accuracy. Though given the low resolution of the spectrum, I sorta wish there was a faster, smaller 16 bit float that could do +/- 255 (or even 511 to allow for overflow off screen). Even if it only had 4 bits of floating point (and thus was accurate to about 0.125) it would be ideal for screen work. I suppose I can emulate it by working with an integer and multiplying up co-ordinates for internal storage though. Anyway, back to the original point: Yes, this bug could trip someone badly! Thank you for looking into it. I also have some suspicions about AND and OR not working quite right. Not sure if that was to do with my corrupted compiler or not - I haven't done a definitive test since reinstalling. The compiler is becoming very useful actually. I'm getting into medium sized programs now, and it's holding together very well. And for the most part, it seems to be producing fast code. Thankyou for building it! Re: Summary of stuff not working - boriel - 02-11-2010 Okay, I've fixed the >= and < comparisons. It was a low level (Asm) bug. It was affecting both Fixed and Long types (surprisingly Long types were less prone to fail, but they were bugged either). Yes, the < was also bugged :!: :oops: So this bug is closed. ![]() Note, I've put an exclamation mark on threads being worked on. Once the bug is fixed, I will remove the exclamation mark to indicate this. Re: Summary of stuff not working - britlion - 02-11-2010 Way to go Boriel! I just added a problem with comparisions for type uByte, however. If and when you have a moment, can you check that? I put an example program that fails for me as well. I'm trying to keep the original message current on bugs. I'll retest them all against any new releases, of course. Re: Summary of stuff not working - boriel - 02-11-2010 britlion Wrote:Way to go Boriel! If you're using the .py version (.zip file instead of .msi file), and have also installed SVN or TortoiseSVN you can now update the compiler source and check the fixed an floats comparators. ![]() Re: Summary of stuff not working - britlion - 02-12-2010 Yeah, you've mentioned SVN. It's a tool I've heard about in coding circles once or twice, but never used. I'm not using the .zip version. I tried an msi install, and then thought I could use the .zip to upgrade...but apparently I can't. It has completely different files in it! So I'll either need a tutorial in how to get SVN versioning working or an MSI version I'm afraid :-) No rush - I know there are a few issues that came up in 1.24 that need to be hammered back down. Did the uByte comparison issue show up for you as well, or was it just my strange computer? Re: Summary of stuff not working - boriel - 02-12-2010 Fixed and uByte issues seems to be fixed. And I couln't reproduce the CHR$(n) problems you mentioned. CHR$(n) works ok for me. :?: Try this new version: <!-- m --><a class="postlink" href="http://www.boriel.com/files/zxb/zxbasic-1.2.5beta.msi">http://www.boriel.com/files/zxb/zxbasic-1.2.5beta.msi</a><!-- m --> Installing and repeat your tests. The next bug to fix is the @ operator. It should work with UDG as expected. |