Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!princeton!mind!tiger!wei From: wei@tiger.Princeton.EDU (P Wei) Newsgroups: comp.lang.smalltalk Subject: questions for SmallTalk/V. Message-ID: <192@tiger.Princeton.EDU> Date: Thu, 6-Aug-87 10:22:29 EDT Article-I.D.: tiger.192 Posted: Thu Aug 6 10:22:29 1987 Date-Received: Sat, 8-Aug-87 11:44:21 EDT Organization: EE, Princeton University Lines: 11 Keywords: object pointer I would like to write a primitive in assembly language , which returns a Float object. In the assembly code, the floating number is stored in CS:floatbuffer which is 8 bytes long. Now, before I return to smalltalk by calling exitWithSuccess macro, I should put the result object pointer into BX register. Question: What should I put in BX, giving the situation above? (or should I move the float number into smalltalk image ? where and how?) * the primitive will be in class String with the name asFloat * I will also need the primitive for my custom class. HP Wei princeton!tiger!wei