Category : BASIC Source Code
Archive   : QBFAQR01.ZIP
Filename : CMDLINE.BAS

 
Output of file : CMDLINE.BAS contained in archive : QBFAQR01.ZIP
' CMDLINE.BAS gets command line directly from PSP, preserving
' original case.
'
' Author: Christy Gemmell
' Date: 26/3/1992
'
' $DYNAMIC
'
' Change the following line to '$INCLUDE: 'QB.BI' for QB 4.5
' $INCLUDE: 'QBX.BI'
'
DIM SHARED InRegs AS RegType, OutRegs AS RegType

InRegs.ax = &H5100
INTERRUPT &H21, InRegs, OutRegs
PSP% = OutRegs.bx: OffSet% = &H80

DEF SEG = PSP%
CmdLen% = PEEK(OffSet%)
Cmd$ = ""
FOR I% = 1 TO CmdLen%
Cmd$ = Cmd$ + CHR$(PEEK(OffSet% + I%))
NEXT I%
PRINT Cmd$
END


  3 Responses to “Category : BASIC Source Code
Archive   : QBFAQR01.ZIP
Filename : CMDLINE.BAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/