Hey Spinix!
How R U?
Long time no see...
Ich hab mal auf meinen Gadget-Gangster-Propeller-Plattform-USB-SD-Hong-Kong-Clone (GGPPUSHKC) zusammengefrickelt, was grad so aktuëll an Spinix greifbar ist:
- spinix133.zip
- nachgeliefertes /bin/timezone
- nachgeliefertes sdsave.fth
- boot.binary/boot.spin-Fix
Mal als Appetitanreger:
Code: Alles auswählen
shell> cd devel
shell> cat fibo.spn
con
_clkmode = $62
_clkfreq = $4E495053 ' SPIN
obj
c : "clibsd"
pub main(argc, argv) | n, startTime, endTime, executionTime, rawTime
c.enter(argc, argv)
c.printf0(string("hello, world!\n"))
n := 0
repeat while n =< 26
c.printf1(string("fibo(%d) = "), n)
startTime := clock
result := fibo(n)
endTime := clock
rawTime := endTime - startTime
executionTime := rawTime / (CLKFREQ / 1000)
c.printf3(string("%d (%dms) (%d ticks)\n"), result, executionTime, rawTime)
n++
c.exit(0)
pub clock
result := cnt
pub fibo(n)
if n < 2
return n
else
return fibo(n - 1) + fibo(n - 2)
shell> spc fibo
spinit fibo
Pass 1: Compiling Global Symbols
Pass 2: Generating Spasm Code
spasm fibo
Pass 1: Counting methods and objects
Pass 2: Compiling Symbols
50 symbols compiled
Pass 3: Generating bytecodes
208 bytes generated
splink fibo.bin clibsd.bin fibo
shell> fibo
hello, world!
fibo(0) = 0 (0ms) (2944 ticks)
fibo(1) = 1 (0ms) (2944 ticks)
fibo(2) = 1 (0ms) (6976 ticks)
fibo(3) = 2 (0ms) (11008 ticks)
fibo(4) = 3 (0ms) (19072 ticks)
fibo(5) = 5 (0ms) (31168 ticks)
fibo(6) = 8 (0ms) (51328 ticks)
fibo(7) = 13 (1ms) (83584 ticks)
fibo(8) = 21 (1ms) (136000 ticks)
fibo(9) = 34 (2ms) (220672 ticks)
fibo(10) = 55 (4ms) (357760 ticks)
fibo(11) = 89 (7ms) (579520 ticks)
fibo(12) = 144 (11ms) (938368 ticks)
fibo(13) = 233 (18ms) (1518976 ticks)
fibo(14) = 377 (30ms) (2458432 ticks)
fibo(15) = 610 (49ms) (3978496 ticks)
fibo(16) = 987 (80ms) (6438016 ticks)
fibo(17) = 1597 (130ms) (10417600 ticks)
fibo(18) = 2584 (210ms) (16856704 ticks)
fibo(19) = 4181 (340ms) (27275392 ticks)
fibo(20) = 6765 (551ms) (44133184 ticks)
fibo(21) = 10946 (892ms) (71409664 ticks)
fibo(22) = 17711 (1444ms) (115543936 ticks)
fibo(23) = 28657 (2336ms) (186954688 ticks)
fibo(24) = 46368 (3781ms) (302499712 ticks)
fibo(25) = 75025 (6118ms) (489455488 ticks)
fibo(26) = 121393 (9899ms) (791956288 ticks)
shell> vi fibo.spn
...der Schnappschuß vom dann erscheinenden Editor ist als Bild angebäppt...
Pfeiltasten probiert man vergeblich, aber wer nicht zu arg von heutigen vi-Warmduscherversionen verkorkst ist, wird schon damit klarkommen...
Spektakulär, was da ein einzelner Propeller alles leistet!
Jetzt fehlt eigentlich nur noch ein als 2ter Propeller realisiertes Terminal und die Kiste ist autark.
An Screen anbäppen (screen /dev/ttyUSB0 115200) ist aber auch nicht so falsch...

...ohne irgendwas, das Terminal spielen kann, verlasse ich im allgemeinen eh nie das Haus...

...vielleicht ist demnächst also der GGPPUSHKC öfter mal dabei...
PFTH ist auch in Spinix dabei, aber immer lamsan mit die greisen Informagièrs... der Brodie liegt auch schon länger rum, aber ich arbeite bislang immernoch recht erfolglos an der Erfindung des 50-Stunden-Tages... *seufz!* ...auch Rom wurde nicht in einer Nacht versaut!