From: Mikael Holm (mikael.holm_at_se.danskebank.com)
Date: 2003-01-29 09:41:14
Hej allihopa! Thanks Niklas... It gave me some new ideas... But doing it this way is just good in native 128 mode or "native" z80 mode, not under CP/M. My guess is that you need to use the USER service call from within CP/M (or code something similar to that code yourself). If I ever get anything working I'll let you all on the list know... //Mikael Hej allihopa! On Tue, 28 Jan 2003 09:46:22 +0100 "Mikael Holm" <mikael.holm@se.danskebank.com> wrote: > According to my C128 Programmers Guide (from Compute) there is a > subfunction of the USER-call to execute 8502 code and then return to > CP/M... But as usual with interresting stuff in books, there's no > examples so I'm a bit stuck... Double-Ass by René van Belzen handles both Z80 and 8502 code (in the same source). It uses the C128 Basic editor, so it won't be of interest for you if you want to program from within CP/M but this piece of code from the manual might be of interest: ----------------------------------------------------------------------- Switching between processors --------- ------- ---------- Switching between the 8502 microprocessor and the Z-80 microprocessor is a delicate business, which should be programmed with care. Use the following subroutine to assure crash-free operation. (*** CODE DELETED ***) Double-Ass can be downloaded from my C128 page: http://192.168.0.2/bacon/cbm/c128/applications.html /Niklas Ramsberg Message was sent through the cbm-hackers mailing list <FONT SIZE=1 FACE="Arial">_______________ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. </FONT> Message was sent through the cbm-hackers mailing list
Archive generated by hypermail 2.1.6.