optimized hellorld

This commit is contained in:
Luxferre
2025-04-23 10:12:08 +03:00
parent 29c84356f9
commit 5577146162
3 changed files with 10 additions and 19 deletions
+8 -1
View File
@@ -241,7 +241,7 @@ representation:
Examples
--------
The [examples](examples/) subdirectory contains several MU8A source code file
examples for mu808 which are ports from the same 808UL example programs, namely:
examples for mu808 which are ports of the same 808UL example programs, namely:
* [Compound interest calculator](examples/compound.mu8a),
* [Linear regression calculator](examples/linreg.mu8a),
@@ -342,6 +342,13 @@ of the operand locations to store the result. If you want to fully emulate the
808UL's behavior, then you have to copy one of the operands into the target
memory location first and then use it as the last parameter to the FMA command.
### Why is the "Hellorld!" example much shorter than in 808UL?
Because mu808 unifies the standard and port I/O, thus allowing to specify a
range of memory locations to the port output routine as well. Since the example
arranges all the message bytes in order, a single call to the output command
will suffice.
Credits
-------
Created by Luxferre in 2025, released into public domain with no warranties.