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