[Oberon] FPGA - ASR shift operator
Jörg
joerg.straube at iaeth.ch
Mon May 1 19:07:48 CEST 2017
Hi Tomas
Sorry, I was wrong: no TRAP. ASR takes the lowest 5 bits of "n" and shifts right.
Jörg
> Am 01.05.2017 um 17:20 schrieb Jörg <joerg.straube at iaeth.ch>:
>
> Tomas
>
> I don’t know your code.
> But I can say: negative „n“ for ASR will generate a TRAP at runtime.
> Most probably the variable „n" is negative, so that „-n" turns positive :-)
>
> br
> Jörg
>> Am 01.05.2017 um 16:52 schrieb Tomas Kral <thomas.kral at email.cz>:
>>
>> Hi,
>>
>> Looking at shift operators (functions) on Oberon system code, I do not
>> understand why ASR(m, -n) takes a negative argument?
>>
>> Tomas
>>
>> --
>> Tomas Kral <thomas.kral at email.cz>
>> --
>> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
>> https://lists.inf.ethz.ch/mailman/listinfo/oberon
>
More information about the Oberon
mailing list