[Oberon] FPGA - Boot over serial line

Tomas Kral thomas.kral at email.cz
Fri Oct 13 16:09:17 CEST 2017


On Thu, 12 Oct 2017 17:42:34 +0200
Tomas Kral <thomas.kral at email.cz> wrote:

> ORP.Compile @ ORG.Decode ORX.WriteFile BootLoad.rsc "prom.mem"

So is `OSG.Decode' provided by Oberon-0 compiler. 

I have coded simplified `ORX.WriteFile' in shell
for the host computer. It does not do all it should, but I hope carries
the idea?

#!/bin/sh
# ORX.WriteFile
# (c)tcat 13.10.2017

i=0; echo -n > prom.mem
while read hex; do
  echo $hex >> prom.mem
  i=$((i+1))
done < prom0.mem

j=$i; while [ $j -lt 512 ]; do
  echo 00000000 >> prom.mem
  j=$((j+1))
done

# eof

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


More information about the Oberon mailing list