@Bean, issue with word/byte modifiers
Bean,
In the attached program I have two functions
that take 4 arguments but the first arg is a word,
so they take 5 bytes.
STOAB··FUNC·1,5,word,byte,byte,byte
This generates an error.
For now I use
STOAB··FUNC·1,5 ',word,byte,byte,byte
and split the first arg, but I rather like
SXB to promote a byte to·a word
for the first arg.
regards peter
In the attached program I have two functions
that take 4 arguments but the first arg is a word,
so they take 5 bytes.
STOAB··FUNC·1,5,word,byte,byte,byte
This generates an error.
For now I use
STOAB··FUNC·1,5 ',word,byte,byte,byte
and split the first arg, but I rather like
SXB to promote a byte to·a word
for the first arg.
regards peter
Comments
You need to declare both the min and max parameter count. Even if it is the same.
So "STOAB FUNC 1,5,5,WORD,BYTE,BYTE,BYTE" should work.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There is a fine line between arrogance and confidence. Make sure you don't cross it...
·
regards peter
I read in the What's new document that for functions the
return type should also be specified (although this is redundant)
so I tried
STOAB FUNC 1,5,5,BYTE,WORD,BYTE,BYTE,BYTE
Still getting errors.
regards peter
Has this issue been resolved?
regards peter
Oops, I missed that.
I will post a fix tomorrow.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There is a fine line between arrogance and confidence. Make sure you don't cross it...
·
I have posted version 2.00.17 that should fix the bug.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There is a fine line between arrogance and confidence. Make sure you don't cross it...
·
Seems to work now.
regards peter
Although it works for FUNC, there is still an issue with SUB.
dvpDAC_SetValue SUB 5,5,byte,word,word
gives error "Invalid parameter 5"
regards peter
In case you missed my above reply.
regards peter
Thanks... I had missed your 3/28 post.
I'll fix that ASAP.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There is a fine line between arrogance and confidence. Make sure you don't cross it...
·
Seems to work ok.
regards peter