[Oberon] RISC emulator
blink at bojary.koba.pl
Tue Mar 25 16:42:52 CET 2014
On Sun, 23 Mar 2014 21:04:50 +0100
Peter De Wachter <pdewacht at gmail.com> wrote:
> There's also something wrong with Texts.WriteInt, trying to print
> 80000000H results in a trap.
Signed integer on 32-bit system is typically in range of:
2^31 <= integer < 2^31
Upper bound is open, so (2^31)-1 is maximal value integer can hold.
"Programming in Oberon" on the beginning of page 17 specifies exactly
that. I'm not that familiar with Oberon yet, but throwing trap, when
you try to print value out of range seems sensible?
More information about the Oberon