Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #5652
| From | Stephen Heumann <stephen.heumann@gmail.com> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: calling tool version function outside the the normal calling |
| Date | 2020-07-17 22:14 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <retpf0$g50$1@dont-email.me> (permalink) |
| References | <b9da5922-d50f-4259-91f8-6f39dc156d44o@googlegroups.com> <retm8o$2fs$1@dont-email.me> |
On 2020-07-18 02:19:51 +0000, Kelvin Sherlock said:
> asm { pha }
> getVer();
> asm { pla sta toolVersion }
I don't think that will quite work, because Chris is trying to call a
tool call without using the tool dispatcher, so it is expecting space
on the stack for an extra return address. If you push/pull three extra
bytes to account for that, this approach may work, but it's a hack.
Chris, I tried the code I posted and it worked, so I'm not sure why
it's giving you problems (maybe issues with line endings?), but an
alternative is to replace the "pea ret-1" instructions with:
lda #ret-1 // or "lda #ret", if you changed the label location
pha
--
Stephen Heumann
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
calling tool version function outside the the normal calling Chris Vavruska <vavruska@gmail.com> - 2020-07-17 09:41 -0700
Re: calling tool version function outside the the normal calling Steven Hirsch <snhirsch@gmail.com> - 2020-07-17 13:34 -0400
Re: calling tool version function outside the the normal calling Chris Vavruska <vavruska@gmail.com> - 2020-07-17 11:04 -0700
Re: calling tool version function outside the the normal calling Steven Hirsch <snhirsch@gmail.com> - 2020-07-17 14:46 -0400
Re: calling tool version function outside the the normal calling "vavr...@gmail.com" <vavruska@gmail.com> - 2020-07-17 12:15 -0700
Re: calling tool version function outside the the normal calling Stephen Heumann <stephen.heumann@gmail.com> - 2020-07-17 19:08 -0500
Re: calling tool version function outside the the normal calling Chris Vavruska <vavruska@gmail.com> - 2020-07-17 17:45 -0700
Re: calling tool version function outside the the normal calling Stephen Heumann <stephen.heumann@gmail.com> - 2020-07-17 20:07 -0500
Re: calling tool version function outside the the normal calling Chris Vavruska <vavruska@gmail.com> - 2020-07-17 19:16 -0700
Re: calling tool version function outside the the normal calling kelvin@pro-kegs.uucp (Kelvin Sherlock) - 2020-07-18 02:19 -0500
Re: calling tool version function outside the the normal calling Stephen Heumann <stephen.heumann@gmail.com> - 2020-07-17 22:14 -0500
Re: calling tool version function outside the the normal calling Chris Vavruska <vavruska@gmail.com> - 2020-07-18 05:19 -0700
csiph-web