English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 04 September 2019, 19:06   #1
BippyM
Registered User

BippyM's Avatar
 
Join Date: Nov 2001
Location: Nottingham, UK
Age: 44
Posts: 8,785
Blitzlibs/Blitz library tokenisation

Does anyone have any info on how Blitz stores token information? I really don't want to reinvent the wheel if someone already knows?
BippyM is offline  
Old 05 September 2019, 10:57   #2
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,191
I don't have anything specific, other than it being a binary representation of the library and token number, so two bytes, which is why source gets mangled if you load into an installation with different library numbers. I assume there's a magic byte as well to differentiate the token from text in a source file, but would need to verify that with a hex editor. I'll check it out when I have a chance.
Daedalus is offline  
Old 05 September 2019, 11:02   #3
BippyM
Registered User

BippyM's Avatar
 
Join Date: Nov 2001
Location: Nottingham, UK
Age: 44
Posts: 8,785
I've already started to figure it out, but wondered if there was any other info already out there
BippyM is offline  
Old 05 September 2019, 12:07   #4
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,880
I think internal commands are tokenised in a different way, but don't ask me for evidence.

Here is some information, including an ARexx program to exercise the Blitz tokeniser and a map of all known commands (in the test directory): https://github.com/grovdata/pyblitz2
idrougge is offline  
Old 05 September 2019, 19:39   #5
BippyM
Registered User

BippyM's Avatar
 
Join Date: Nov 2001
Location: Nottingham, UK
Age: 44
Posts: 8,785
Yeah, I've had a look at this and it is pretty useless to be fair!!



Quote:
Originally Posted by idrougge View Post
I think internal commands are tokenised in a different way, but don't ask me for evidence.

Here is some information, including an ARexx program to exercise the Blitz tokeniser and a map of all known commands (in the test directory): https://github.com/grovdata/pyblitz2
BippyM is offline  
Old 08 September 2019, 19:36   #6
BippyM
Registered User

BippyM's Avatar
 
Join Date: Nov 2001
Location: Nottingham, UK
Age: 44
Posts: 8,785
So I have figured out how the libraries are identified within blitz. What I am struggling with a little is identifying how Blitz knows how many tokens there are within the library. There is nothing obvious stating an offset, or number of commands. The only thing I can see is the following marker which is common to each command

Code:
$FF FF 00 00 00 00 00 00
I am unsure if this is before the command, or after hmmm..
BippyM is offline  
Old 09 September 2019, 14:46   #7
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,880
The FF FF 00 sequence seems to be part of the command name assembly macro as well as part of the "end library" signature.
idrougge is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blitz & Reqtools Library BippyM Coders. Blitz Basic 5 14 December 2018 06:37
[blitz basic] How much amiga-blitz friendly is this? saimon69 Coders. Blitz Basic 104 29 November 2016 20:45
CDXL library for Blitz? earok Coders. Blitz Basic 4 12 October 2016 23:22
How to do AGA copperbars in Blitz using display library Coagulus Coders. Blitz Basic 9 25 January 2016 15:53
HELP: Opus5, KingCON, SysInfo.library (Sysmon.library) triangle Michael support.Apps 6 10 March 2014 14:08

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06560 seconds with 15 queries