home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18129 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  2.9 KB

  1. Xref: sparky comp.sys.amiga.programmer:18129 comp.sys.amiga.hardware:22361
  2. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
  3. Path: sparky!uunet!rational.com!fensende!mcuddy
  4. From: mcuddy@fensende.Rational.COM (Mike Cuddy)
  5. Subject: Re: HostileTakeOver of Amiga OS
  6. Message-ID: <mcuddy.726187148@fensende>
  7. Keywords: flame bait lives here
  8. Sender: news@rational.com
  9. Organization: Rational
  10. References: <1993Jan4.193325.11793@cybernet.cse.fau.edu>
  11. Date: Mon, 4 Jan 1993 22:39:08 GMT
  12. Lines: 44
  13.  
  14. spc@pineal.math.fau.edu (Sean 'Captain Napalm' Conner) writes:
  15.  
  16. >  The system I'm doing this on is an Amiga 500 running 1.3 with 3M RAM (512K
  17. >of that is chip) and a 50M harddrive.
  18.  
  19. Be careful to test your code on faster machines.  those of us with 040's
  20. (and even 030's -- and there's alot of us) get cheezed off when an otherwise
  21. awesome game requires us to slow down our machines.
  22.  
  23. the biggest gotcha when taking over the machine is that on >68000 machines,
  24. the exception vector table is not always at 0.  The VBR (vector base 
  25. register) is used to move the exception table into fast ram to avoid 
  26. contention with the custom chips.
  27.  
  28. >  Thanks in advance (and I may even post the routines when I write them if
  29. >there is sufficient interest in it).
  30.  
  31. Yes.  post your routines.  write a simple program which 'takes over' the 
  32. machine and then gives it back; let those of us with faster machines test
  33. it before you spend all of the time to create your masterpiece.
  34.  
  35. One thing you might think of doing is when the 'pause' key is hit in your 
  36. game, give back the machine, open an intuition screen/window with your current
  37. screen bitmap as the bitmap for the screen/window and then wait for the 
  38. 'unpause' key from intuition before firing your game back up.  This is real
  39. nice for folks who just want to pop back to thier machine to look up a phone
  40. number or let thier thumb rest from blaze-o-matic 9000.
  41.  
  42. >  -spc (And yes, I do respect the OS and appreciate it, but sometimes, I
  43. >    would like to hit the hardware and not worry about the OS at all)
  44.  
  45. You might try writing two version of your setup/cleanup code -- one which
  46. hits the hardware HARD (for 68000's) and one which doesn't hit it quite so
  47. hard (for >68000 -- let me decide if I want to devote all of my CPU to the
  48. game) If you program in a sufficiently modular way, it shouldn't be that hard.
  49.  
  50. --Mike Cuddy (mcuddy@rational.com, fensende!mcuddy@apple.com)
  51. To Anachreon in Heav'n/Where he sat in full glee/A few sons of harmony sent a 
  52. petition/That he thier inspierer and patron would be/When this answer arrived/
  53. from the jolly old Grecian/"Voice, fiddle and flute,/no longer be mute,/
  54. I'll lend ye my name/And inspire ye ta' boot/And besides I'll instruct ye/
  55. like me, to entwine/the Myrtle of Venus with Bacchus' vine!
  56. -- sing to the tune of the star spangled banner... (these are the orig words,
  57. yes folks, our national anthem is a ``let's get drunk and F*** song'').
  58.