[Oberon] Unexplained operation code
Walter Gallegos
waltergallegos at vera.com.uy
Thu Sep 20 16:33:04 CEST 2018
Opps, yes you are right, even after writing the VHDL code
regMux <=dataInput WHENopLDR ='1'ELSE
RESIZE(SIGNED('0'&pcNext &"00"), regMux'LENGTH) WHEN((opBR ANDv))='1'ELSE
aluRes(31DOWNTO0);
I did not think on that!
Thank you,
Walter
El 20/09/18 a las 10:48, Chris Burrows escribió:
>> -----Original Message-----
>> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
>> Walter Gallegos
>> Sent: Thursday, 20 September 2018 10:29 PM
>> To: ETH Oberon and related systems; Walter Gallegos
>> Subject: [Oberon] Unexplained operation code
>>
>> I'm finding the source of an unexplained operation code generated for
>> debug my VHDL sources, cleaning unrelated code I wrote :
>>
>> MODULE* TestA;
>> IMPORT SYSTEM;
>>
>> VAR
>> a: INTEGER;
>>
>> PROCEDURE* IntServ;
>> BEGIN
>> END IntServ;
>>
>> BEGIN
>> a := SYSTEM.ADR(IntServ);
>> END TestA.
>>
>>
>> a := SYSTEM.ADR(IntServ); is generated as :
>>
>> 19 F7000000 BL 0
>> 20 40F90030 SUB R0 LNK 48
>> 21 A0D00000 STR R0 SB 0
>>
>> I can't explain the line 19.
>>
> It is the (sneaky) RISC5 way of obtaining the value of PC. BL 0 stores the
> value of PC+1 in the LNK register (R15) and then just branches to the next
> instruction.
>
> Regards,
> Chris
>
> Chris Burrows
> CFB Software
> http://www.astrobe.com/RISC5
>
>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
>
--
Walter Daniel Gallegos
Programmable Logic
Consultoría, Diseño, Entrenamiento.
walter at waltergallegos.com | www.waltergallegos.com
Tel +598 26 23 44 60 | Cel +598 99 18 58 88
Montevideo, Uruguay
El presente correo y cualquier posible archivo adjunto está dirigido únicamente
al destinatario del mensaje y contiene información que puede ser confidencial.
Si Ud. no es el destinatario correcto por favor notifique al remitente
respondiendo anexando este mensaje y elimine inmediatamente el e-mail y los
posibles archivos adjuntos al mismo de su sistema. Está prohibida cualquier
utilización, difusión o copia de este e-mail por cualquier persona o entidad
que no sean las específicas destinatarias del mensaje.
This e-mail and any attachment is confidential and is intended solely for the
addressee(s). If you are not intended recipient please inform the sender
immediately, answering this e-mail and delete it as well as the attached files.
Any use, circulation or copy of this e-mail by any person or entity that is not
the specific addressee(s) is prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20180920/28d59e5c/attachment.html>
More information about the Oberon
mailing list