Repository navigation
Vishap Oberon 5.4.3
Vishap Oberon compiles Oberon-2 programs through a C backend and supplies
libraries and tools for conventional operating systems. Version 5.4.3 adds
console-game input and repairs the MersenneTwister random-number library.
Console games and terminal output
crtsupplies raw-modeOpen/Close, non-consumingKeyPressed, and
ReadKeywith arrow, navigation and F1–F12 codes. Input uses existing
Platformread and terminal-state operations. Fragmented escape sequences
have bounded continuation waits; unknown sequences retain their bytes.- Terminal state is restored by explicit close, normal program completion and
checked halts. Conventional termination-handler registration recognizes
exported commands as well as native procedure metadata. - Screen dimensions, foreground state, blinking, line insertion and deletion
are available.GotoXYpreserves one-based coordinates;ClrScrclears and
homes the cursor. VT100 buffers support multi-digit positions and longer
attributes, and bold reset uses SGR 22. - Screen-control procedures flush their escape sequences before returning.
Keyboard polling, key reads and delays also flush bufferedOutoutput, so
game frames are visible before the program waits or polls again. crtlives insrc/library/terminaland is included in both conventional
type models and the modular terminal profile. The native Windows manifest
includes it; Windows input opening returnsFALSE, with screen dimensions
using documented fallbacks.
See console games with crt for the API and terminal cleanup
requirements.
MersenneTwister
- Seeding preserves the 1999 MT19937 convention and default seed 4357 while
correcting the high-word mask and implementing arithmetic modulo 2^32. - Fixed-width set operations replace width-dependent casts and overflowing
arithmetic.Intreturns a signed 32-bit word in either type model. IntRangeuses unbiased rejection sampling instead of reading past a local
variable.Realconverts unsigned words into[0, 1).- Both seed procedures clear the Gaussian cache, and polar Box-Muller sampling
rejects the zero-radius case. Raw state import rejects an all-zero effective
state.
See MersenneTwister for its seed convention, value ranges
and regression tests.
Building and validation
Rebuild the runtime libraries, dependent programs and shared modules. The
terminal module list is shared by conventional and modular builds, and the
Windows command file follows the updated source location.
A clean GCC build on x86-64 Linux reproduces the saved bootstrap C sources and
passes the full confidence suite. Both type models pass terminal output,
immediate ClrScr flushing, keyboard polling and decoding, terminal restoration,
MT19937 reference words, ranges, real values and Gaussian cache reset. The
random-library checks compare 10400 reference words in model 2 and 14300 in
model C. Existing stack-fault
regressions also pass with GCC, Clang and TCC in both models.
The non-network shared-library profile passes 271 ABI/load checks and its
consumer tests. Shared crt passes keyboard and cleanup regressions in both
type models with embedded and dynamically linked cores. Shared MersenneTwister
reference and numeric checks pass in model 2 with both core-linking modes.
Windows sources translate for both saved address layouts and type models;
native Windows C compilation and execution remain untested. Native BSD and
polpo validation of these changes remain pending.