![]() |
BiFrost Multicolour engine. - 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) +--- Thread: BiFrost Multicolour engine. (/showthread.php?tid=441) |
BiFrost Multicolour engine. - britlion - 03-07-2012 Not my work - but Einar Saukas has been tweaking ZXODUS. <!-- m --><a class="postlink" href="http://www.worldofspectrum.org/forums/showthread.php?t=38179">http://www.worldofspectrum.org/forums/s ... hp?t=38179</a><!-- m --> He's managed to shoehorn it working into ZX Basic too ![]() Re: BiFrost Multicolour engine. - boriel - 03-07-2012 ![]() .... O_____O I've already answered. Definitely, I need people like you to directly push changes in the compiler source tree (or at least libraries). I'm thinking in how could it be done. ZX Basic is already in bitbucket.org (a github repository). But I feel a "Community Like" site will work better for this: each one could publish his/her own code in his/her own page (like a blog), with code snippers, +1s, a better (really!) wiki with WYSISWYG editr and so on (this is what I asked in the poll). Re: BiFrost Multicolour engine. - britlion - 03-08-2012 Sicne I appear to have more fun building libraries and writing documentation than writing games to completion (don't ask me why. I have no idea. I keep meaning to finish a big project, and then time gets to me) - I'd probably stick to library functions. But being able to glue those in, and then fix/update them as things go - and have them as a guaranteed base for other functions would be quite useful. Re: BiFrost Multicolour engine. - slenkar - 07-16-2012 the latest version has been released, but what has to be done to allow it to be used in boriels basic? Re: BiFrost Multicolour engine. - boriel - 07-16-2012 slenkar Wrote:the latest version has been released, but what has to be done to allow it to be used in boriels basic?I can help you with that. What do you need? I'm going to download the lastest version and inspect it, ok? Re: BiFrost Multicolour engine. - britlion - 07-16-2012 slenkar Wrote:the latest version has been released, but what has to be done to allow it to be used in boriels basic? Einar Saukas said: "Programmers using the interface libraries (for Boriel's ZX BASIC or z80dk) won't need to do anything at all, it will be enough to download the new interface libraries that I will provide this week." Re: BiFrost Multicolour engine. - boriel - 07-16-2012 I was reading just that. Einar visits this forum, and maintains a library port for ZX BASIC (see demos attached within the zip). ;-) Re: BiFrost Multicolour engine. - slenkar - 07-16-2012 how d'you make pictures and load them in also when i compile the example i get.. 01:01:49 -> bifrost.bas:92: warning: FUNCTION 'BIFROSTfindAttr' declared as FASTCALL with 2 parameters. Compilation failed 01:01:51 -> FAIL: Compiler cannot write output file in directory (Protected Or does Not exist?) when using BorIDE with Windows Vista Also when I compile this with the command line it says 'I FOR without NEXT' on the speccy it says I have to use this loader ' 10 CLEAR 32767 ' 20 LOAD "bifrostdem"CODE ' 30 LOAD "TILES"CODE ' 40 LOAD "BIFROST*"CODE ' 50 RANDOMIZE USR 32768 how do I do this automatically with the emulator? Re: BiFrost Multicolour engine. - LCD - 07-17-2012 slenkar Wrote:how d'you make pictures and load them inIf your output is set to C:/ or system directorys, Vista forbids to write in them unless you start the program in administrator mode. This is meant with "Protected". So check your output directory settings in BorIDE. Usualy warnings do not cause a compilation fail. Warning fail was possible with earlier version of BorIDE (0.4 r03 or earlier). where did you set the start of your compiled code? how long is your program? Maybe it crashes with the interrupt handler of BiFrost? Oh, and Clear 32767 do not protects the compiled code. Re: BiFrost Multicolour engine. - slenkar - 07-17-2012 I tried moving my project to different places and got the same error, I will try starting it in admin mode next I didnt set the start of my code, is that the problem? (does BorIDE allow people to use different loaders?) Re: BiFrost Multicolour engine. - LCD - 07-17-2012 slenkar Wrote:I tried moving my project to different places and got the same error, I will try starting it in admin mode nextIf you did not set the start of code, check what was set by BorIDE. BorIDE uses only own loaders at the moment, but it is planed to add the possibility to use some custom loaders. If nothing works, please send me the project files via e-Mail. Maybe I can find out what is wrong. Re: BiFrost Multicolour engine. - slenkar - 07-18-2012 i havent had access to my boriel PC yet, please download the bifrost engine here: <!-- m --><a class="postlink" href="ftp://ftp.worldofspectrum.org/pub/sinclair/games-extras/BIFROSTENGINEV1.2_BorielZXBasicInterface.zip">ftp://ftp.worldofspectrum.org/pub/sincl ... erface.zip</a><!-- m --> then just try to compile the bifrostdem.bas Re: BiFrost Multicolour engine. - LCD - 07-18-2012 Have you defined a output file? I just defined it and got: Code: 20:46:12 -> bifrost.bas:92: warning: FUNCTION 'BIFROSTfindAttr' declared as FASTCALL with 2 parameters. Compilation successfull Re: BiFrost Multicolour engine. - slenkar - 07-18-2012 OK I ran BorIDE in admin mode on windows vista then it gets a little further: 14:56:07 -> Compilation starts(60 Lines) 14:56:07 -> Source C:\Dropbox\specprojs\bifrost\bifrostdem saved 14:56:07 -> C:\Program Files\Boriel Tm\ZX Basic Compiler\zxb.exe "C:\Dropbox\specprojs\bifrost\temp.bor" -S 24576 -o "output.bin" --heap-size=1000 14:56:10 -> Exit code: 0 14:56:10 -> bifrost.bas:92: warning: FUNCTION 'BIFROSTfindAttr' declared as FASTCALL with 2 parameters. Compilation successfull 14:56:10 -> FAIL: Compiler cannot write output file in directory (Protected Or does Not exist?) 14:56:10 -> Compilation time: 2542ms "C:\Dropbox\specprojs\wars\EmuZWin26\EmuZWin.exe" "output.tzx" how do i set the output file? I saw something on the right that says 'output' so I chose TZX I right-clicked on the folder and it said it was 'read-only' I tried to change it back which it does. Then when I right-click on the folder again it says 'read-only' again! On the microsoft website they even have a command-line thing which doesnt work either: 'attrib -r c:\specprojs' I think you have to insert some code into BorIDE to make it ask for full admin control when it starts. When compiling from the command line I tried adding these 2 lines to replace the loader 10 CLEAR 32767 15 RANDOMIZE 32768 or 10 CLEAR 32767 15 RANDOMIZE USR 32768 but it complains about randomize Re: BiFrost Multicolour engine. - LCD - 07-18-2012 Please use at moment TAP for output. TZX does not write Files in this version yet. Edit: TZX will be added in the next release. |