[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

5109.0. "Determining Which Kickstart" by VERGA::MACDONALD (Home of Digital Realtime Pubs) Tue Oct 08 1991 13:18

    Is there a way to check for a version of Kickstart from within the
    startup-sequence and branch from there? For example, if Kickstart V2 is
    loaded, go to one StartupII file, but if Kickstart V1.3 is loaded, go
    to a different StartupII file. 
T.RTitleUserPersonal
Name
DateLines
5109.1YESARRODS::GOLDSTEINSteve G DTN: 847-5416/5455Tue Oct 08 1991 18:0412
    
    	YES,
    
    	The way if memory servers me correctly is
    
    	version graphic.library 
    
    then check the value comparied to one expected...
    
    
    I cann't remember the correct format BUT there is a sample in the
    Workbench 2 
5109.2Here is a working exampleVSSCAD::GATULISFrank Gatulis 226-6140Tue Oct 08 1991 21:1838
    
    
    
    
    
    
    
    
    
    
    
    Here is a crude example of branching based on the version of the
    graphics library (and it works).
    
    
;**********************************************************************
;First test for 1.3/1.2 boot ?
;**********************************************************************
dh0:c/version > NIL: graphics.library 36
dh0:c/IF NOT WARN
   ; here means we're booting 2.0, execute 2.0 startup-sequence then quit
   dh0:c/execute dh1:wb/s/startup-sequence
   quit
  ELSE
   ; here means we're booting 1.3, just fall through
  ENDIF
;**********************************************************************
;From here on is normal 1.3 startup 
;**********************************************************************
dh0:c/BindDrivers
dh0:c/SetPatch > nil:                  ;patch system functions
dh0:System/FastMemFirst                ;move chip memory to last in list
dh0:system/mergemem > nil:             ;merge fast memory segments
dh0:c/SetClock load                    ;get clock data
dh0:c/echo "" 
dh0:c/echo "BOOT - Workbench 1.3.3 (34.34)     Kickstart (34.5)"
    ... etc .....