clarify progend()

This commit is contained in:
Irmen de Jong 2024-01-22 18:57:25 +01:00
parent a8c09d6144
commit 84a7e86fe3

View File

@ -102,9 +102,11 @@ sys (part of syslib)
the irqd status bit if it was cleared before entering).
``progend ()``
Returns the last address of the program in memory + 1.
Returns the last address of the program in memory + 1. This means: the memory address directly after all the program code and variables,
including the uninitialized ones ("BSS" variables) and the uninitialized memory blocks reserved by the `memory()` function.
Can be used to load dynamic data after the program, instead of hardcoding something.
``wait (uword jiffies)``
wait approximately the given number of jiffies (1/60th seconds)
Note: the regular system irq handler has run for this to work as it depends on the system jiffy clock.