Page 1 of 1
Cross-compatible USR calls?
Posted: Fri Aug 27, 2021 1:54 pm
by sixxie
Can anyone remind me how to do them so they work on both D32 and D64? If indeed it's actually possible... I thought maybe it was a space before the digit, but that doesn't seem to work...
Re: Cross-compatible USR calls?
Posted: Fri Aug 27, 2021 2:18 pm
by sorchard
http://archive.worldofdragon.org/index. ... R_Routines
Though rather amusingly the code to detect a d64 isn't quite right
Re: Cross-compatible USR calls?
Posted: Fri Aug 27, 2021 2:28 pm
by sixxie
Ah, extra code everywhere? Ok, that's pretty horrible
Though I'm reasonably sure you don't need the bodge for DEF USR, only USR...
Re: Cross-compatible USR calls?
Posted: Fri Aug 27, 2021 3:16 pm
by sorchard
One obstacle is the D32 ROM defaults to USR0 if the character immediately following USR is not a digit. For example:
This code is valid syntax on both platforms, but the D32 will treat it as USR0.
This is of course fine if only USR0 is defined. (And possibly what you've seen working before)
Re: Cross-compatible USR calls?
Posted: Fri Aug 27, 2021 3:27 pm
by sixxie
sorchard wrote: ↑Fri Aug 27, 2021 3:16 pm
This is of course fine if only USR0 is defined. (And possibly what you've seen working before)
Yeah that's probably what I was remembering. Ah well, multiple versions it is...