[Oberon] FPGA - Files.ReadBytes(), Files.WriteBytes()

Tomas Kral thomas.kral at email.cz
Sat Oct 6 11:43:57 CEST 2018


> If you are interested to improve ReadBytes() your code could start
> with something like this:
> 
> IF r.bpos MOD 4 # 0 THEN
> 	i := 0; WHILE i < n DO ReadBytes(r, x[i]); INC(i) END (* copy
> single bytes *) ELSE 
> 	(* four times faster by using SYSTEM.COPY() *)
> END

Hi,
I am sharing initial commit with unit test. You can have a go too,
possibly help to improve further.

-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list