[Oberon] FPGA - SYSTEM.COPY

Chris Burrows chris at cfbsoftware.com
Sun Apr 23 13:52:52 CEST 2017


> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> Tomas Kral
> Sent: Sunday, 23 April 2017 8:35 PM
> To: Oberon@
> Subject: [Oberon] FPGA - SYSTEM.COPY
> 
> Hi,
> 
> Just a quick question re `SYSTEM.COPY(src, dst, n)'.
> Does it copy two bytes or four bytes entities at a time?
> 

SYSTEM.COPY copies n consecutive *words* from src to dst. A word as used in
the Project Oberon RISC5 processor is four bytes.

The code resulting from a call to SYSTEM.COPY is generated by the procedure
ORG.Copy. If you have a look at this you will see that the address of both
the src and destination are incremented by 4 after each load and store
instruction.

Regards,
Chris Burrows
CFB Software
http://www.astrobe.com/RISC5





More information about the Oberon mailing list