Jump to content
IGNORED

Atari emulators crash with USR function


Recommended Posts

Greetings everyone. I have a little problem with 3 emulators. (I hope this is the right forum). I searched everywhere to find a solution (or lack thereof)

 

When using 3 emulators, (Atari800win Plus 4.0, XFormer and don't know the name of the third. It's an older DOS one) I try to use a USR(X) routine, they all crash.

 

I thought I may have missed something with my code but it was very simplistic so I did a simple...

 

POKE 1536,96 (RTS)

A=USR(1536)

 

Crash

 

It happens with all ROMS. OSA, OSB, XL/XE

 

Anyone know of a resolution for this?

Link to comment
Share on other sites

1st stack entry, always has to be pulled = number of parameters, 00 = none e.g. USR(routine)

 

e.g. 01 - 1 parameter, like USR(routine,parm1)

 

Each parameter if supplied is another 2 bytes you have to pull. High byte comes off first, then low each time.

Edited by Rybags
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...