$CPU 8086 ' make compatible with XT systems $LIB ALL OFF ' turn off all PowerBASIC libraries $ERROR ALL OFF ' turn off all PowerBASIC error checking $OPTIMIZE SIZE ' optimize for smaller code $COMPILE UNIT ' compile to a UNIT (.PBU) '$COMPILE EXE ' compile to a UNIT (.PBU) DEFINT A-Z ' Required for all numeric functions, forces PB to not ' include floating point in UNIT (makes it smaller) '/*------------------------------------------------------------------*/ DECLARE FUNCTION GETSCREEN() AS STRING DECLARE SUB PUTSCREEN(BYVAL X AS STRING) DECLARE SUB MDELAY(COUNT AS WORD) DECLARE FUNCTION GETVIDEOSEGMENT() AS INTEGER '/*------------------------------------------------------------------*/ $CODE SEG "MLIB4" '/*------------------------------------------------------------------*/ ' DSCREEN2(SCREEN$) ' Display Screen Format 2. ' Display Screen by moving new screen (SCREEN$) in from bottom. ' SCREEN$ = Mem (binary) screen to display. ' Returns old screen. ' EXAMPLE: OLD$ = DSCREEN2(SCREEN$) '/*-2----------------------------------------------------------------*/ FUNCTION DSCREEN2(TEMP$) PUBLIC AS STRING R$ = GETSCREEN A$=TEMP$ A%=3840 Row%=CSRLIN Col%=POS(0) DEF SEG=GETVIDEOSEGMENT DO WHILE A%>-1 AA$=AA$+LEFT$(A$,160) A$=MID$(A$,161) POKE$ A%,AA$ DECR A%,160 CALL MDELAY(30) LOOP LOCATE Row%,Col% FUNCTION = R$ END FUNCTION '/*------------------------------------------------------------------*/ ' $INCLUDE "C:\CODE\MLIB\MLIB.INC" ' TD$ = GETMEM("c:\code\mapper\APOGEE.MEM") ' T2$ = GETMEM("c:\code\mapper\VMESAM.MEM") ' PUTSCREEN T2$ ' Y$ = GETKEY ' T$ = DSCREEN2(TD$) ' Y$ = GETKEY '/*------------------------------------------------------------------*/