PDA

View Full Version : Script arguments



Saffith
03-27-2009, 11:33 AM
Is it by design that D0-D7 can be interpreted as any type of data in ZScript, or does it just happen to work anyway? It doesn't seem to be fully accounted for. For instance, if an argument read as an FFC is left at 0, it gives you the FFC that would be numbered 1 anywhere else.

jman2050
03-27-2009, 11:50 AM
I think that's just the bounds checking at work since FFC 0 isn't valid anyway. I'd have to check.

It *should* be by design that d0-d7 can be interpreted in any fashion, though obviously testing to confirm this would be nice.

Saffith
03-27-2009, 12:01 PM
I think that's just the bounds checking at work since FFC 0 isn't valid anyway. I'd have to check.
Shouldn't be that - setting it to 1 gets you FFC #2.

Anyway, thanks. Good to know.