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

Tomas Kral thomas.kral at email.cz
Mon Aug 20 21:39:11 CEST 2018


On Mon, 20 Aug 2018 19:39:39 +0200
Jörg <joerg.straube at iaeth.ch> wrote:

> 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() *)

Thank you, studying the code now. It seems SYSTEM.COPY() can do its job
with files, only when rider buffer position (r.bpos) is on word
boundary, due to little endianess in memory? Also number of bytes to
copy ideally be multiple of 4? 

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


More information about the Oberon mailing list