|
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 .....
|