FAQ  •  Register  •  Login

Used to compile? (*solved*)

<<

britlion

Posts: 677

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Thu Dec 08, 2011 2:08 am

Used to compile? (*solved*)

I think this used to work. Now it just gets a blank screen?

Based on HRPrintFast - as attached in the forum.

zxb --version
zxb 1.2.8-s758

http://dl.dropbox.com/u/4903664/HRPrintFast.zip

(I can't seem to attach this file to the forum either: Could not upload attachment to ./files/292_dbf5619d9a32ca38360a971b2a2970cd.)
<<

boriel

Site Admin

Posts: 1145

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Dec 08, 2011 10:39 am

Re: Used to compile?

Britlion forum attachment were disabled because I changed the forum to my own server.
please, try now :?:

Also 1.2.8 should work.
Note: 1.2.8-s758 is in fact 1.2.9. This is the new version, so let me check it.
I think I accidentally overwrote the 1.2.8 branch with the new release. Let me restore it...
<<

britlion

Posts: 677

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Thu Dec 08, 2011 11:30 pm

Re: Used to compile?

I just downloaded the beta version zxb 1.2.9-s765 and this also compiles to white screen.

The code ought to cls and then print 1 at least, I think ?

(since there's testing code that prints numbers each time it calls a subroutine to see how far it gets. It doesn't print any of them)
<<

britlion

Posts: 677

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Thu Dec 08, 2011 11:35 pm

Re: Used to compile?

Okay. That's VERY strange.

I changed the start of the code to:

cls
print 0
pause 1
pause 0


And it did indeed pause. When I pressed a key, there was gentle sliding over the screen as expected.

So I deleted that code and recompiled. Boom. There was Mr. Gentle again.

I'm baffled by that behaviour...

I'm glad I added the .tzx to that zip file up there (I assume it doesn't do anything on your emulator?)
<<

boriel

Site Admin

Posts: 1145

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Dec 29, 2011 10:28 pm

Re: Used to compile?

I'm trying to reproduce the bug and get the *minimal* code to isolate it.
If you can produce a smaller code, it would be of great help!

BTW Happy New Year! :wink:

Update: It seems your program is crashing due to out of memory. :S Removing the ALIGN 256 seems to solve it. Could be a bug in ALIGN 256 (still debugging).

Update 2: *Confirmed*. It's a bug in byte alignment. :x
<<

boriel

Site Admin

Posts: 1145

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Dec 30, 2011 8:34 pm

Re: Used to compile?

I think I've fixed it. This could be a nasty and *dangerous* bug :!: (thanks).
Please, download 1.2.9-s768 from the download page and tell mi if it works for you.
<<

britlion

Posts: 677

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Sat Dec 31, 2011 2:16 pm

Re: Used to compile?

!

:shock:

What bug did you find?
<<

boriel

Site Admin

Posts: 1145

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Dec 31, 2011 2:31 pm

Re: Used to compile?

Under some circumstances (e.g. Label followed by an ALIGN statement), the program was misaligned, which means label addresses could be miscalculated, so instead of jumping or pokeing at an address, you could be jumping or pokeing at address - <offset error> :!:
I've already uploaded a fix for 1.2.9 (1.2.8 fix still pending).

The nice thing is that the fix is just a line of code.

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO