Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #4566
| From | awanderin <awanderin@gmail.com> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Jamtronic's HTML Applesoft Source Assembly |
| Date | 2018-05-27 22:09 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <yubvab8whec.fsf@gmail.com> (permalink) |
| References | <9529c3c2-a02e-4cf9-8179-d40805f90e3f@googlegroups.com> <yub4lity5rb.fsf@gmail.com> <dImdnbBNVumEnpbGnZ2dnUU7-dvNnZ2d@earthlink.com> |
Hugh Hood <hughhood@earthlink.net> writes: > Fellas, > > W/R/T the Applesoft source code so nicely served up, how much work > would you think involved in taking the 'LIST' coding at $D6A5+ and > modifying it for use as an 'on-the-fly' de-tokenizer for the > AppleWorks file loading routine. > > I've got the AppleWorks file loading part covered -- I can select a > BASIC file, I can load it line by line and parse the characters to > make an AWP/TXT file from it, but it's the de-tokenizing code that I'd > need to integrate. > > Alternatively, is there some assembly module already written that > would work just as well? I know there are countless 'C' examples, but > this would be plain ole 6502 stuff. > > Thanks. I can plow through the de-tokenizing code, but if you see some > obvious difficulties before I start, please pass them on. > > FWIW, I *know* how to turn a BASIC file into a TXT file for > editing. I'm trying to eliminate that step and just load the BASIC > file right into AppleWorks for editing. I'll worry about SAVEing it > later. ;-) Taking the Applesoft LIST routine will work. You will just have to rip out parts and change others. As you follow along the code, $D6F7 is where one line gets detokenized and output. I'd take this code through to D765 and modify it to do what you want. You'll probably want to rip out the column-33-carriage-return-and-tab-5 bit at D705-D711, unless you want the "formatted" look in AppleWorks. The exit part, D724-D72B, will also need to be changed to return to AppleWorks. BTW, does AppleWorks have ROM switched out? If so, it needs to be switched in so the token strings can be accessed at D731. If you're always going to convert the whole program, you also don't need any of the line-number range checks. -- Jerry awanderin at gmail dot com
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Jamtronic's HTML Applesoft Source Assembly Michael Pohoreski <michael.pohoreski@gmail.com> - 2018-05-26 11:30 -0700
Re: Jamtronic's HTML Applesoft Source Assembly awanderin <awanderin@gmail.com> - 2018-05-27 00:25 -0600
Re: Jamtronic's HTML Applesoft Source Assembly Hugh Hood <hughhood@earthlink.net> - 2018-05-27 14:12 -0500
Re: Jamtronic's HTML Applesoft Source Assembly James Davis <JPD.Enterprises@outlook.com> - 2018-05-27 12:57 -0700
Re: Jamtronic's HTML Applesoft Source Assembly Hugh Hood <hughhood@earthlink.net> - 2018-05-27 18:26 -0500
Re: Jamtronic's HTML Applesoft Source Assembly awanderin <awanderin@gmail.com> - 2018-05-27 22:09 -0600
Re: Jamtronic's HTML Applesoft Source Assembly Hugh Hood <hughhood@earthlink.net> - 2018-05-28 00:24 -0500
Re: Jamtronic's HTML Applesoft Source Assembly Michael Pohoreski <michael.pohoreski@gmail.com> - 2018-05-28 14:59 -0700
csiph-web