// BFSTestInit.bcpl // Copyright Xerox Corporation 1979, 1982 // Last modified March 28, 1982 1:24 AM by Boggs get "AltoDefs.d" get "Streams.d" get "SysDefs.d" external [ // outgoing procedures BeforeJuntaInit; AfterJuntaInit // incoming procedures AfterJunta; Junta BlockCheck; uBlockCheck; UpdateTitle CreateKeyboardStream; CreateDisplayStream; ShowDisplayStream InvertLine; GetLinePos; CharWidth; SetLmarg InitializeZone; Allocate; MoveBlock; Zero; MyFrame LoadRam; InitBcplRuntime // outgoing statics sysZone; dsp; label; data; eng; title // incoming statics sysFont; BFSTestMc ] static [ sysZone; dsp; label; data; eng; title lastShownStream ] manifest [ stkLim = 335b black = true white = false dspLines = 20 ] structure String [ length byte; char^1,1 byte ] //---------------------------------------------------------------------------- let BeforeJuntaInit() be //---------------------------------------------------------------------------- [ let ramFlag = LoadRam(BFSTestMc, false) eq 0 if ramFlag then [ InitBcplRuntime() BlockCheck = uBlockCheck ] Junta((ramFlag? levBuffer, levBcpl), AfterJunta) ] //---------------------------------------------------------------------------- and AfterJuntaInit() be //---------------------------------------------------------------------------- [ // get the keyboard going again quickly CreateKeyboardStream() MoveBlock(cursorBitMap, table [ 0; 0; 0; 0; 161706b; 111011b; 111010b; 161606b; 111001b; 111011b; 161006b; 0; 0; 0; 0; 0 ], 16) eng = (table [ 61014b; 1401b ])()<>Bar.fdcb = lv bar>>Bar.next bar>>Bar.ldcb = lv bar>>Bar.next bar>>Bar.background = background bar>>Bar.width = 0 bar>>Bar.height = nLines resultis bar ]