[Oberon] On a code generated for Math.Mod.txt

Jörg Straube joerg.straube at iaeth.ch
Wed Jul 13 23:56:13 CEST 2016


Srinivas

   MOV' R1 #aa    (upper 16 bit)
   IOR R1 #bb       (lower 16 bit)
is the code to fill the register R1 with the 32 bit constant #aabb 

You find all the details of the RISC5 instruction set in this paper:
https://www.inf.ethz.ch/personal/wirth/FPGA-relatedWork/RISC-Arch.pdf

Jörg



Gruss, Jörg
> Am 13.07.2016 um 21:18 schrieb Srinivas Nayak <sinu.nayak2001 at gmail.com>:
> 
> In math.Mod.txt we see
> 
> q0 =  9.9999999E-1;
> IF ODD(n) THEN f := (((((q6*yy + q5)*yy + q4)*yy + q3)*yy + q2)*yy + q1)*yy + q0
> 
> ELSE
> 
> For the last addition of q0, I see the code generated is:
> 
> 61003F7F  MOV'  R1  R0  16255
> 
> 4116FFFE  IOR  R1  R1     -2
> 
> How it is different from
> 
> 61003F80  MOV'  R1  R0  16256
> 
> 
> 
> 
> With thanks and best regards,
> 
> Yours sincerely,
> Srinivas Nayak
> 
> Home: http://www.mathmeth.com/sn/
> Blog: http://srinivas-nayak.blogspot.in/
> --
> 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