Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site princeton.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!wei From: wei@princeton.UUCP (P Wei) Newsgroups: net.micro.pc,net.lang.pascal Subject: local variable in assembly routine to be call from TURBO PASCAL Message-ID: <1165@princeton.UUCP> Date: Tue, 19-Nov-85 13:21:19 EST Article-I.D.: princeto.1165 Posted: Tue Nov 19 13:21:19 1985 Date-Received: Wed, 20-Nov-85 08:29:52 EST Distribution: net Organization: Princeton University EECS Dept Lines: 20 Xref: watmath net.micro.pc:5909 net.lang.pascal:378 Is the following peiec going to work? code segment assume cs:code routine proc near jmp begin variable dw ? begin: . . . mov variable,ax . . My final goal is to set a 'static local variable' (like in C) such that on second entry into this routine I can still get the value of variable set last time. From the TURBO reference manual, the local variable is stored in stack segment. So I think the above routine is not going to work. Can anyone tell me a workable procedure ? Thanks. HP Wei (wei@princeton)