On Mon, 4 Nov 2019 17:47:13 +0100, "R.Wieser"
declaimed the following:
>
>Well, I bought a raspberry pi because I wanted, after having worked with
>such no-OS controllers, to know how working with it feels.
>
I really need to do something with all of mine... I've got a few BASIC
Stamps (2, 2p, and I think a 2px -- expensive things for the little
capability). Arduino Uno, Mega, Esplora, Due. Scattering of loose PIC (and
programming boards for them). A few Propeller boards (weird chips -- 8
lockstep cores with round robin access to external memory and NO
interrupts; one is expected to assign a core to polling I/O pins to emulate
interrupts. Normal mode is to have a P-BASIC interpreter loaded into the
core RAM interpreting instructions from external memory). 2 each TIVA 123,
1294, 129E. Five assorted R-Pis (3B, 2x 3B+, 4B 2G and 4G). Two Beaglebone
Blacks and one Beaglebone AI
>Ehrrm... I think I would need to study its language tobe able to understand
>what it actually does ... But thanks nonetheless. :-)
Doesn't help that (at least in my client) the right-arrow and the
greater-than-or-equal characters show as ?
HP reverse polish language; stack based calculator. Just the start
(using -> for right arrow)
« -> t
« t IP t ABS FP 100 * DUP IP SWAP FP 100 *
Take first item from stack and assign to "t"
Load "t", take IntegerPart
Load "t", ABSolute value, take FractionalPart, multiply by 100
DUPlicate, take IntegerPart, SWAP, take FractionalPart, multiply by 100
It may help to know that the input ("t") is
YYYY.MMDDddd
so that first pulls the YYYY (IP), then takes the .MMDDddd (FP), shifts
left to get MM.DDddd, duplicates this, then pulls the MM (IP), swaps with
the duplicated value, takes the .DDddd, multiplies by 100 to get DD.ddd --
leaving the stack with
YYYY
MM
DD.ddd
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|