home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20331 < prev    next >
Encoding:
Text File  |  1992-12-26  |  1.0 KB  |  39 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!wupost!eclnews!cec1!ppc1
  3. From: ppc1@cec1.wustl.edu (Peter Pui Tak Chiu)
  4. Subject: assembly lanugage
  5. Message-ID: <1992Dec26.180708.1796@wuecl.wustl.edu>
  6. Sender: usenet@wuecl.wustl.edu (News Administrator)
  7. Nntp-Posting-Host: cec1
  8. Organization: Washington University, St. Louis MO
  9. Date: Sat, 26 Dec 1992 18:07:08 GMT
  10. Lines: 27
  11.  
  12. hi everyone,
  13.  
  14. i am trying to write a game on Macintosh using Assembly language.
  15.  
  16. if i want to use something like this in the MPW on the Mac, what should i do?
  17. how do i define it, store stuff in it and retrive the stuff in it?
  18.  
  19.         TYPE
  20.           POINT = RECORD
  21.                 X,Y:INTEGER
  22.           END;
  23.  
  24.         VAR
  25.           SNAKE: ARRAY[1..10,1..10] OF POINTS;
  26.  
  27. I would like to define this globally so that i can store stuff into the
  28. array SNAKE and retrieve it anywhere in my program.
  29.  
  30. also, what should i do if i want to do floating point math in Assembly?
  31.  
  32. please email to ppc1@cec1.wustl.edu
  33.  
  34. thanks in advance.
  35.  
  36. peter
  37.  
  38.  
  39.