Path: utzoo!attcan!uunet!husc6!rutgers!aramis.rutgers.edu!paul.rutgers.edu!grossber From: grossber@paul.rutgers.edu (grossberg) Newsgroups: comp.sys.mac.hypercard Subject: HyperCard XCMDs in MPW C. Message-ID: Date: 13 Mar 89 16:59:00 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 10 I need to create an XCMD out of an MPW C program which uses global variables. I have seen this done in LightSpeed C, but never in MPW C. The problem is that the first line of code in an XCMD must be executable, and using global variables causes this not to be the case. The solution in LightSpeed C is to use the asm directive, and the LightSpeed C routines called RememberA0(), SetUpA4(), and RestoreA4(). Does anybody know of the solution to this problem within MPW C? Thanks, Dave Grossberg