Cross-compatible USR calls?
Cross-compatible USR calls?
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?
http://archive.worldofdragon.org/index. ... R_Routines
Though rather amusingly the code to detect a d64 isn't quite right
Though rather amusingly the code to detect a d64 isn't quite right
Stew
Re: Cross-compatible USR calls?
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...
Though I'm reasonably sure you don't need the bodge for DEF USR, only USR...
Re: Cross-compatible USR calls?
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)
Code: Select all
A=USR 1(0)
This is of course fine if only USR0 is defined. (And possibly what you've seen working before)
Stew
Re: Cross-compatible USR calls?
Yeah that's probably what I was remembering. Ah well, multiple versions it is...sorchard wrote: ↑Fri Aug 27, 2021 3:16 pmThis is of course fine if only USR0 is defined. (And possibly what you've seen working before)Code: Select all
A=USR 1(0)