FAQ  •  Register  •  Login

Fill Routine

<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Thu Jun 14, 2012 8:45 pm

Re: HOWTO: Put BeepFX Sound into ZXB code

boriel wrote:
  Code:
#include <SP/Fill.bas>
SPFill(127,87, USR "a") : REM Fills with UDG "a"

Update: It comes included in the 1.2.9s861

Tested:
  Code:
#Include <SP/Fill.bas>
paper 7:border 7:bright 0:cls
circle 128,87,20
SPFill(128,87,200)

Got following:
"Fill.bas:10: warning: SUB 'SPFill' declared as FASTCALL with 3 parameters. Compilation successfull"
So Including of SPFill was successfull, but got only a empty circle, but it should get the pattern stored in ROM at address 200, which is:
  Code:
206,67,79,211,84,65,206,65
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Thu Jun 14, 2012 9:39 pm

Re: HOWTO: Put BeepFX Sound into ZXB code

Okay. This is totally thread hijacking at this point!

(I see this all got moved, so Boriel makes me look like a crazy person!)
Last edited by britlion on Thu Jun 14, 2012 10:04 pm, edited 1 time in total.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Jun 14, 2012 9:39 pm

Re: HOWTO: Put BeepFX Sound into ZXB code

:?: :?: :?:
Don't know what happens. It's effectively failing. It seems I messed up something while packaging it :oops:
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Thu Jun 14, 2012 9:59 pm

Re: HOWTO: Put BeepFX Sound into ZXB code

britlion wrote:Okay. This is totally thread hijacking at this point!

True! :D Seems LCD got confused, and I answered him here. Let me see if I can merge these last posts with the SPFill thread...

Update: Done! :-)
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Thu Jun 14, 2012 11:58 pm

Re: HOWTO: Put BeepFX Sound into ZXB code

boriel wrote:
britlion wrote:Okay. This is totally thread hijacking at this point!

True! :D Seems LCD got confused, and I answered him here. Let me see if I can merge these last posts with the SPFill thread...

Update: Done! :-)

LCD used the search function to search for "SPFill" in Forum and found this, where usage was explained. LCD posted that it fails. LCD failed! :wink:.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun Jun 17, 2012 9:15 pm

Re: Fill Routine

It seems my modification to use the ROM Pixel Address does not work: this routine returns pixel bit-mask position in A, whilst SPFill needs the bitmask already. I can unroll it, but I think it does not worth the hassle.

Please download version 1.2.9s882. It addresses many bugs (this being one of them).
Please, try it and tell me. :roll:
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Sun Jun 17, 2012 11:33 pm

Re: Fill Routine

Cool! Works now, setting starting adress of 25000 or higher is a good idea.
Thanks!
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Previous

Return to How-To & Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

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

phpBB SEO