[net.micro.pc] PSP in Basic

jph@whuxle.UUCP (01/16/84)

#R:sri-arpa:-1533700:whuxle:22700014:000:268
whuxle!jph    Jan 15 17:44:00 1984

If you want the program segment that executed the CALL
segment (within the BASIC interpreter), then just look at
the return address on the stack which is set up of a FAR
procedure and therefore is the SEGMENT/OFFSET format. Upon
entry, CS can be referenced by [SP+2].

JCP%CMU-CS-PS1@sri-unix.UUCP (01/18/84)

From:  James Park <JCP@CMU-CS-PS1>


	Does anyone know how to obtain the PSP (Program Segment Prefix)
of Basic from a machine language subroutine which is called from BASIC
using the CALL statement? 

	When BASIC executes the CALL statement, it changes the segment
registers so that this information is not readily available.

James Park (JCP@CMU-CS-PS1)
------