Re: USRx() and adding more parameters?

William Astle via Coco <coco-uNHYcr1XS/wmlAP/[email protected]>
Newsgroups gmane.comp.hardware.tandy.coco
Message-ID <[email protected]>
On 2025-11-04 20:14, Allen Huffman via Coco wrote:
> The BASIC ROM has the USR function:
> 
> DEF USR0=&H3F00
> 
> A=USR0(42)
> 
> It accepts one parameter.
> 
> Since it jumps from BASIC into the USR assembly, couldn’t that code just parse a “,” and more numbers, allowing it to accept whatever needed to be passed in?
> 
> A=USR0(1,2,3,4)

Almost. It would have to look like:

A=USR0(1),2,3,4

The closing parenthesis is already validated by the time the USR handler 
starts.

-- 
William Astle

-- 
Coco mailing list
[email protected]
https://pairlist5.pair.net/mailman/listinfo/coco
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.