Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2392

programming • Re: Service Roms?

$
0
0
What do you mean by "recognised"? If you can see the service entry point code being executed in the debugger, you should be able to step through the code. It'll get called at various times (the Advanced User Guide has a good description), but an easy one to exercise is the help request. Do *HELP at the BASIC prompt, and your ROM's service entry point should get entered with A=9.

(As a general note: &70 is part of the workspace for the current language ROM, which runs from &00 to &8F. BASIC promises that it won't use &70-&8F, but other languages (View, Wordwise, etc.) may use this region, and possibly for something important that mustn't get overwritten. As a service ROM, in a sense your code doesn't count as the user - you need to assume that the person using the computer is already using these regions for something, and won't appreciate your ROM overwriting them! Safest to avoid, or (if you insist) save/restore. For testing purposes, of course, you can do whatever you like, and if testing from BASIC than &70 is sensible. It's worth noting the potential for incompatibilities though.)

--Tom

Statistics: Posted by tom_seddon — Mon Jan 13, 2025 8:13 pm



Viewing all articles
Browse latest Browse all 2392

Trending Articles