ROM service call 49/&31

bbc micro/electron/atom/risc os coding queries and routines
Post Reply
tom_seddon
Posts: 889
Joined: Tue Aug 30, 2005 12:42 am
Contact:

ROM service call 49/&31

Post by tom_seddon »

BeebWiki's ROM service calls page mentions ROM service call &31:
&31 Keyboard driver call.
Anybody got any info about this? I can't find any evidence that any of the Master MOS versions I've got issue this service call, nor do the Compact ARABIAN-C or International ROMs try to handle it. (The International ROM does handle service call &30 - translate Internationalised keyboard keypress.)

--Tom

P.S. while doing a quick first draft disassembly, just to check which service calls were being handled, I did notice that the ARABIAN-C ROM calls directly into MOS 5.11i! It does a jsr $e94e in several places, bypassing WRCHV to go to OSWRCH directly. A bit rude when there's a perfectly serviceable NVWRCH entry point at $ffcb already...
james
Posts: 330
Joined: Tue Aug 15, 2023 8:41 pm
Location: NE Hampshire
Contact:

Re: ROM service call 49/&31

Post by james »

tom_seddon wrote: Fri Feb 02, 2024 10:32 pm&31 Keyboard driver call.
Here's some, unseccessful, digging.

Tbere are only reason codes up to &2C in:
Not mentioned at all in:
  • The MASTER 128 SYSTEM ROM USER GUIDE (ie MOS 3.50)
  • Master Series Compact Application Note of Sep '86
However, there is an mention of a "Sideways ROM keyboard driver" in OSBYTE &AC https://beebwiki.mdfs.net/OSBYTE_%26AC, it appears to be distinct from the "International keyboard driver" which uses Service Call &30. OSBYTE &AD also mentions it and links to the page for MOS 5.11i https://mdfs.net/System/ROMs/AcornMOS/Compact511/

Looking at that, if it's it not in International ROM, is service call &31 in UTILS 1.10c (different from 1.10 of MOS 5.10)?

Otherwise, maybe the person who likely authored the page knows:
Edit: nor was the mention in any Acorn Application Notes
User avatar
jgharston
Posts: 5321
Joined: Thu Sep 24, 2009 12:22 pm
Location: Whitby/Sheffield
Contact:

Re: ROM service call 49/&31

Post by jgharston »

I've been digging and can't remember where I saw &31 as a keyboard call. There's a possibility I may have seen it in a list as "&30 and &31: keyboard", and documented &30 as in the Compact when I disassembled the Compact code. Which still leaves tracking down where I saw it as "&30 & &31".

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.45
(C) Copyright J.G.Harston 1989,2005-2024
>_
james
Posts: 330
Joined: Tue Aug 15, 2023 8:41 pm
Location: NE Hampshire
Contact:

Re: ROM service call 49/&31

Post by james »

tom_seddon wrote: Fri Feb 02, 2024 10:32 pm
Anybody got any info about this?
You might try asking gtoal, as the source to the Arabic ROM appears to be on his website, so it may have been an area he was working in https://gtoal.com/acorn/files/
Post Reply

Return to “programming”