It is currently Tue Oct 17, 2017 7:12 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: gbbasic
PostPosted: Sun Mar 07, 2010 7:27 am 
Offline

Joined: Sun Mar 07, 2010 7:15 am
Posts: 45
Location: Kitee, North Karelia, Finland
Hi all,

Anyone heard of GBBASIC, a ROM-based BASIC interpreter ? It offers a possibility to program straight from GB, a slow process but works. For quicker editing it is possible use program GBBC to convert text file to GBBASIC's "save" format (GBBASIC.sav). However, that doesn't work, anything I try just gives a message "Corrupt program", even if I convert original .sav to text and back to .sav using same GBBC program.

My question, does anyone have more information of this, how to fix the problem or anything.

Thanks for advance !

[/url]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2010 10:12 am 
Offline

Joined: Wed Mar 10, 2010 8:43 am
Posts: 4
Alright, I've managed to get the sine wave demo that was included with GBBC to both convert and run.
So you know, I'm using "GBB108.GB"

Here's about how the file is laid out (as converted from text by GBBC):
Quote:
- $00-02: Magic number (ASCII) 'BF0' (last character is the number zero)
- $03-03: Single byte that should not be here.
- $04-05: A 16-bit checksum of both the code data and its terminator. This should be at $03, and is what causes the 'corrupt' error message.
- $06-07: Two bytes that should not be here.
- $08-09: The length of the code data (in bytes). This includes the terminating $01.
- $0A-0B: These two bytes should not be here either.
- $0C-??: The code data, terminated by $01.


So if you remove bytes $0A-0B, $06-07, and finally $03, then it will load properly.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2010 5:38 pm 
Offline

Joined: Wed Mar 10, 2010 8:43 am
Posts: 4
Here's a fixed version of GBBC that I made: Download

It's kind of a buggy program, but that's not really my fault.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2010 11:59 pm 
Offline

Joined: Sun Mar 07, 2010 7:15 am
Posts: 45
Location: Kitee, North Karelia, Finland
Excellent, thanks very much Shiny, I tried and it works perfectly with 1.08 version GBBASIC ! I still need an answer (which should be much easier than this) to one question but I will write a new topic about it.

Thanks !


-Jukka


Shiny_ wrote:
Here's a fixed version of GBBC that I made: Download

It's kind of a buggy program, but that's not really my fault.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 11, 2010 10:13 am 
Offline

Joined: Wed Mar 10, 2010 8:43 am
Posts: 4
I fixed the bug where it would crash on empty lines, so now TESTIT.BAS works without modification.

I haven't been able to get SHAPES.BAS to work at all, though.
It produces a syntax error on line 60.

Download


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 13, 2010 12:06 am 
Offline

Joined: Sun Mar 07, 2010 7:15 am
Posts: 45
Location: Kitee, North Karelia, Finland
Thanks Shiny, this is excellent job, helps anyone to use the GBBASIC.
I've still one request but I will write a new topic about it.

Shiny_ wrote:
I fixed the bug where it would crash on empty lines, so now TESTIT.BAS works without modification.

I haven't been able to get SHAPES.BAS to work at all, though.
It produces a syntax error on line 60.

Download


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group