home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / atari / 8bit / 4235 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!pacbell.com!well!moon!cyberden!phbill
  2. From: moon!cyberden!phbill@well.sf.ca.us
  3. Newsgroups: comp.sys.atari.8bit
  4. Subject: Re: Math Progs for the 8-bit
  5. Message-ID: <8B9LPB5w165w@cyberden.uucp>
  6. Date: 16 Aug 92 20:05:42 GMT
  7. References: <9208131847.AA11497@nettlerash.berkeley.edu>
  8. Organization: Indescribable Creations
  9. Lines: 35
  10.  
  11. JJMCWILL@MTUS5.CTS.MTU.EDU (Jeff McWilliams) writes:
  12.  
  13. > Yes, I remember how you can have BASIC modify itself by printing the
  14. > y=f(x) equation with a line number before it, and do some pokes, and
  15. > the line becomes part of the program.  I was thinking more along the
  16. > lines of something written Pascal, C, or Action! to improve the speed,
  17. > or even use Compiled TurboBASIC XL (you listening Bill K. ?).
  18.  
  19. Yeees!  I had a little function plotting program I made in Atari BASIC 
  20. and realized "this cannot be compiled!", since the compiled program can't 
  21. do direct commands (for example, insert a new line, or use the "DEL" 
  22. command.  I THINK..  It's been a while.  I have no/very little need for 
  23. THAT particular program for now.)
  24.  
  25. If I'm totally wrong, TELL ME!  The ability to do that would be pretty 
  26. wonderful!  BTW: here's how I would do it:
  27.  
  28. PRINT out the new line,
  29. POSITION the cursor a bit above that line,
  30. POKE 843,13 or something like that (I have that address somewhere.. this
  31.             is the "forced RETURN" 'command' (I have very unexact names
  32.             for the tricks I use! ;) ).)
  33. STOP the program
  34. CONTinue the program (the "CONT" is a few lines below the new line)
  35.  
  36.  
  37. Everything but accepting the new line (after the STOP) and probably the 
  38. CONTinue command can be done in a compiled program.
  39.  
  40. "Be seeing you!"
  41. ___________________________ ||| __
  42. PhBill: Bill Kendrick      / | \
  43. moon!cyberden!phbill@well.sf.ca.us
  44. __________________________________
  45.                    August 16, 1992
  46.