English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 08 March 2011, 00:01   #21
prowler
Global Moderator

prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,263
Yes, I see. Thanks for that detail, Bippy!
prowler is online now  
AdSense AdSense  
Old 08 March 2011, 00:59   #22
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Nottingham, UK
Age: 42
Posts: 8,619
To explain better and not using my phone

Basically Blitz librarioes are allocated an ID number and placed within the deflibs file. The source code then saves the lib number and token for the command offset. When the source is loaded it will check the deflibs at the relevant location and token number and load the command.

The problem arises when the lib number doesn't match within the deflibs and then the token is at a different location. This will give that dreaded ?????? line within the source as the correct command is not there, or if by some fluke the location/offset is correct the command will be wrong.

Always save blitz source as ascii or keep a record of what lib had what ID. I am sure there is more information about this somewhere, this is all from memory and it's been oooh 12 yrs! Still better to be safe than sorry!
BippyM is online now  
Old 08 March 2011, 01:04   #23
prowler
Global Moderator

prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,263
Quote:
Originally Posted by AlfaRomeo View Post
If anyone has the 1st Blitz tutorial from AC Sep 1994 and want to scan it for me so I can finish that tutorial I will be very grateful
Hi Alfa,
I have that magazine and I will add the first part of that Blitz Basic 2 tutorial to the list of other tutorial pages I am in the process of scanning for you.

And thanks for the work you have done on those other Blitz Basic tutorials, mate!
prowler is online now  
Old 08 March 2011, 01:27   #24
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
Quote:
Originally Posted by bippym View Post
The problem with te bb2 file is the libs might not be set to the same is number as the version of deflibs used. If that is the case it can be very difficult to recover some source. Naturally if all deflibs are saved in te correct id number then all is good. Though this is not.always the case. I found this out the hard way.
With BlitzBasic2 I donīt know but the only similar problem I had with AmiBlitz3 was solved adding "all.res" to the compiler settings.
"all.res" contains most of the AmigaOS Structs and Defines.
Also had to have attention with some words that could be used as variables in Blitz2 but that actually are keywords in AmiBlitz3 like "tags", "fsize", "chip" or "Kickversion"

Last edited by AlfaRomeo; 08 March 2011 at 01:51.
AlfaRomeo is offline  
Old 08 March 2011, 13:24   #25
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Nottingham, UK
Age: 42
Posts: 8,619
BB2 also used the .res files for the amigaos structures and the like, I know amiblitz did solve some of the issues with the narrow-minded idea Acid Software had, but alas I could never properly get into Amiblitz
BippyM is online now  
Old 08 March 2011, 13:34   #26
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
Quote:
Originally Posted by bippym View Post
BB2 also used the .res files for the amigaos structures and the like, I know amiblitz did solve some of the issues with the narrow-minded idea Acid Software had, but alas I could never properly get into Amiblitz
If you already know Blitz2 programming you should give AmiBlitz3 a try because istīs more powerful

Another AF Blitz2 tutorial uploaded to the zone.
If someone wants tutorials for Amos, C or Asm I could upload too
AlfaRomeo is offline  
Old 08 March 2011, 13:53   #27
BippyM
Global Moderator

BippyM's Avatar
 
Join Date: Nov 2001
Location: Nottingham, UK
Age: 42
Posts: 8,619
Thanks AlfaRomeo I have used it before. I am only going to learn ASM from now on and that hs been in the works for 6yrs
BippyM is online now  
Old 08 March 2011, 14:10   #28
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
Quote:
Originally Posted by bippym View Post
I am only going to learn ASM from now on and that hs been in the works for 6yrs
yeah, I know how hard it can be, when the time is short we have to pause for a while and restart again and in the meantime we forget some bits
AlfaRomeo is offline  
Old 08 March 2011, 19:35   #29
Lonewolf10
AMOS Extensions Developer
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 38
Posts: 1,917
Quote:
Originally Posted by bippym View Post
To explain better and not using my phone

Basically Blitz librarioes are allocated an ID number and placed within the deflibs file. The source code then saves the lib number and token for the command offset. When the source is loaded it will check the deflibs at the relevant location and token number and load the command.

The problem arises when the lib number doesn't match within the deflibs and then the token is at a different location. This will give that dreaded ?????? line within the source as the correct command is not there, or if by some fluke the location/offset is correct the command will be wrong.
AMOS works in a similar way, but the ID number is set by the extension author and has to be in the range 1-25 (actually 0-24 in the extension).
If the required extension isn't loaded it doesn't show ?????, but "Extension <letter>" where the letter is A (1) to Y (25) instead. This is slightly more helpful than Blitz, but there are multiple extensions for each slot.

You do have to manually set the extensions filename within AMOS and in the correct slot. Failing to do so means that AMOS fails to load. I always have multiple setups saved just incase I mess up, which I have done several times before.


Regards,
Lonewolf10
Lonewolf10 is offline  
Old 08 March 2011, 21:38   #30
robheaton
Amazing Bloke!
robheaton's Avatar
 
Join Date: Jun 2009
Location: Ormskirk, UK
Age: 36
Posts: 29
Quote:
Originally Posted by AlfaRomeo View Post
If someone wants tutorials for Amos, C or Asm I could upload too
Thanks again for all the tutorials, if you could upload the tutorials for Amos, C & Asm that would be ace!

I don't need them right now, but they may come in handy one day!!

Cheers!
robheaton is offline  
Old 08 March 2011, 23:22   #31
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
Quote:
Originally Posted by robheaton View Post
Thanks again for all the tutorials, if you could upload the tutorials for Amos, C & Asm that would be ace!

I don't need them right now, but they may come in handy one day!!

Cheers!
Ok robheaton, I will upload these tutorials but not all at once since Iīm still scanning and organizing the tutorials and some of them arenīt complete yet, prowler is helping me on this job and will send me some scans to complete it
AlfaRomeo is offline  
Old 08 March 2011, 23:24   #32
robheaton
Amazing Bloke!
robheaton's Avatar
 
Join Date: Jun 2009
Location: Ormskirk, UK
Age: 36
Posts: 29
Great!
No rush, I have plenty to be reading and working on!


Thanks Again!
robheaton is offline  
Old 09 March 2011, 22:23   #33
khph_re
Registered User
 
Join Date: Feb 2008
Location: Northampton/UK
Posts: 245
we need a permanent place to store these tuts. a proper programming resource.
khph_re is offline  
Old 10 March 2011, 02:25   #34
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
Hi guys,

Only to say that there is another "new" AC Asm/C tutorial in the zone. Others will follow
AlfaRomeo is offline  
Old 10 March 2011, 20:26   #35
robheaton
Amazing Bloke!
robheaton's Avatar
 
Join Date: Jun 2009
Location: Ormskirk, UK
Age: 36
Posts: 29
Ace!
robheaton is offline  
Old 11 March 2011, 02:04   #36
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
Another one in the zone
AlfaRomeo is offline  
Old 13 March 2011, 08:45   #37
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
This time itīs an AC C tutorial uploaded. Itīs missing the lesson 3 but prowler will scan it to me and when he do it I will upload the complete version
AlfaRomeo is offline  
Old 16 March 2011, 00:10   #38
jman
Registered User
 
Join Date: Nov 2010
Location: Italy
Posts: 301
Also check this out, stumbled upon it while sorting my Amiga bookmarks:
http://cd.textfiles.com/zoom2/programming/

Don't have the slightest idea what that is, but there's a blitz directory...
jman is offline  
Old 16 March 2011, 07:52   #39
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 775
Quote:
Originally Posted by jman View Post
Also check this out, stumbled upon it while sorting my Amiga bookmarks:
http://cd.textfiles.com/zoom2/programming/

Don't have the slightest idea what that is, but there's a blitz directory...
Thanks man

Another CU tutorial of C for beginners uploaded
AlfaRomeo is offline  
Old 16 March 2011, 22:14   #40
Lonewolf10
AMOS Extensions Developer
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 38
Posts: 1,917
Quote:
Originally Posted by jman View Post
Also check this out, stumbled upon it while sorting my Amiga bookmarks:
http://cd.textfiles.com/zoom2/programming/

Don't have the slightest idea what that is, but there's a blitz directory...
I highly recommend downloading all the mods from the .../zoom2/mods/ directory. I downloaded all of them a few years back - most of them are excellent, infact I am using 2 of them in my demo I am working on

Theres some AMOS stuff in there too (the programming sub-directory)


Regards,
Lonewolf10
Lonewolf10 is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning Amiga Assembly Programming Hewitson Coders. Tutorials 32 09 October 2012 19:25
Beginning data migration/archive project? rlcarr New to Emulation or Amiga scene 13 25 April 2008 21:10
Beginning Amiga programming in C++ zardoz Coders. General 3 17 May 2006 14:14
begin at the beginning? diamond New to Emulation or Amiga scene 8 27 March 2005 00:04

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 20:54.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.36264 seconds with 12 queries