Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: davidbgtx on September 27, 2017, 04:24:59 PM

Title: Casting Confusion
Post by: davidbgtx on September 27, 2017, 04:24:59 PM
When I enter a not equal C416:D it changes it to c416:SD, does that stand for signed double word?
I'm trying to check through many alarm bits (c416-c471)with an easy statement, so I have not equal c416:d and not equal c448:d, which should test for c416-c480,correct??
Title: Re: Casting Confusion
Post by: BobO on September 27, 2017, 04:30:51 PM
When I enter a not equal C416:D it changes it to c416:SD, does that stand for signed double word?
I'm trying to check through many alarm bits (c416-c471)with an easy statement, so I have not equal c416:d and not equal c448:d, which should test for c416-c480,correct??

Correct on all points.
Title: Re: Casting Confusion
Post by: davidbgtx on September 27, 2017, 04:33:10 PM
When I enter a not equal C416:D it changes it to c416:SD, does that stand for signed double word?
I'm trying to check through many alarm bits (c416-c471)with an easy statement, so I have not equal c416:d and not equal c448:d, which should test for c416-c480,correct??

Correct on all points.

So why does it automatically change to :SD when I enter it as c416:D
Title: Re: Casting Confusion
Post by: BobO on September 27, 2017, 04:35:43 PM
So why does it automatically change to :SD when I enter it as :D

When you cast from a bit to a non-bit, it implicitly adds a data type, since there isn't one.
Title: Re: Casting Confusion
Post by: davidbgtx on September 27, 2017, 04:38:57 PM
Thanks,
Well that was weird ,when I typed colon D in my post it changed it to a smiley face emojicon
Title: Re: Casting Confusion
Post by: BobO on September 27, 2017, 04:41:06 PM
Thanks,
Well that was weird ,when I typed colon D in my post it changed it to a smiley face emojicon

Yeah. That one has bit me before.