; ; Set-up the overlay ; MESS "Current overlay is: "*"_OVER"*"!" ; Note state at start MESS "Overlay being loaded!" ; Indicate action OVERLAY "Overlay.exe" ; Load our overlay IF FAILED ; Stop here if can't load overlay MESS "Overlay failed" EXIT ENDIF MESS "!Current overlay is:"*"_OVER"*"!" ; Note state here ; ; Invoke the overlay to find the segment addr (for the curious) ; SCALL 3,N0 ; Rtn one parameter STRFMT S0 "Loaded at segment: %x!" N0 ; Format rtn value MESS S0 ; .. and display ; ; Invoke the overlay to display a string ; S0 = "This text written through BIOS video interrupt!" SCALL 0,S0 ; Pass one parameter ; ; Clear the overlay, and we're done ; MESS "!Overlay being terminated!" ; Indicate action OVERLAY CLEAR MESS "Current overlay is:"*"_OVER"*"!" ; Note state after clear