$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 "MLIB5" '/*------------------------------------------------------------------*/ ' DSCREEN9(SCREEN$) ' Display Screen format 9. ' Display Screen by moving old screen left leaving new screen. ' SCREEN$ = Mem (binary) screen to display. ' Returns old screen. ' EXAMPLE: OLD$ = DSCREEN9(SCREEN$) '/*------------------------------------------------------------------*/ FUNCTION DSCREEN9(TEMP$) PUBLIC AS STRING R$ = GETSCREEN '/*-9----------------------------------------------------------------*/ A$=TEMP$ Row%=CSRLIN Col%=POS(0) DEF SEG=GETVIDEOSEGMENT O$=PEEK$(0,4000) Z$=O$ FOR X%=1 TO 80 INCR I% FOR Z%=1 TO 25 MID$(Z$,((Z%-1)*160)+1,160)=MID$(O$,((Z%-1)*160)+1+X%*2,160-(X%*2))+MID$(A$,((Z%-1)*160)+1+(160-(X%*2)),X%*2) NEXT POKE$ 0,Z$ CALL MDELAY(5) NEXT 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$ = DSCREEN9(TD$) ' Y$ = GETKEY '/*------------------------------------------------------------------*/