Hello community, thanks to all of you for your hints. My idea is use the "codefree" area in an OptROM for some own code. My thoughts to call this code
from BASIC: CALL 63012,73 (73 is just an example) So far in TS-DOS OptROM code I changed following to see if it works. 0000h: C3 B2 00 -> C3 00 7F 7F00h: FF FF FF-> C3 B2 00 This works. And now my question:Which code to add @ 7F00h to compare against value from CALL statement? Regards Georg ========== Ihre Nachricht ========================================== von : Ron Hudson <[email protected]> gesendet : Mittwoch, 2. April 2025, 21:44 an : "[email protected]" <[email protected]> Betreff : [M100] How to set CPU register from BASIC __________ Originalnachricht _______________________________________ > You'd probably have to poke a short assembly/machine code program into memory > then call it. But after you got back and BASIC started running again your > value would probably get overwritten. > ------------------------------------------------------------------------------------------------- > Ronald Hudson. > Sent from my Linux Desktop. > From: M100 <[email protected]> on behalf of John R. Hogerhuis > <[email protected]> > Sent: Tuesday, April 1, 2025 8:18 AM > To: [email protected] <[email protected]> > Subject: Re: [M100] How to set CPU register from BASIC > > On Tue, Apr 1, 2025, 3:45 AM Georg Käter > <[email protected]> wrote: >> Hi community, >> >> how to set CPU register A, H and others direct from BASIC by i.e. POKE >> command? > It depends on what you're doing next. > I'm guessing you're setting the parameter for a CALL you want to make? Maybe > calling the ROM or some code you are writing? > -- John. __________ Ende Originalnachricht __________________________________ Confidentiality Notice: This message is confidential. The information contained in this message is intended only for the personal and confidential use of the recipient(s) named above. If you are not the intended recipient, please do not read, copy, or use it and do not disclose it to others. Please inform us immediately of the delivery error and return the original message to us via e-mail.
