Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: Hacking SANE Opcodes. Keywords: SANE, XCMD, disassembly, hacking Message-ID: <32061@ucbvax.BERKELEY.EDU> Date: 21 Oct 89 19:38:43 GMT References: <934@unsvax.NEVADA.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 18 By coincidence, I was just doing this yesterday. 1.) Lightspeed C and THINK C both include a file "sane.h" in the library folder that gives you most of the opcodes. There is a word or two about this file in the printed documentation, but not enough to help. 2.) the phonebook edition of Inside Mac has a preliminary version of the Apple Numerics Manual that includes most of the opcodes and a good discussion of the theory of SANe. 3.) What I was actually trying to do was ascii to float and float to ascii conversion. The C sprintf library takes 6800 or so bytes, and I needed the space. I had to dis-assemble Str2Dec and Dec2Str to figure out how they worked, but I got it going, saving about 5000 bytes. Time to buy a numerics manual. > The mac is a detour in the inevitable march of mediocre computers. > drs@bnlux0.bnl.gov (David R. Stampf) --- David Phillip Oster -master of the ad hoc odd hack. Arpa: oster@dewey.soe.berkeley.edu Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu