[Oberon] Negative integer literals in Oberon
Skulski, Wojciech
skulski at pas.rochester.edu
Mon Apr 27 22:39:56 CEST 2020
Joerg:
> Could somebody give me a good example, where INTEGERs need a hex notation?
How about this? These INTEGERS represent addresses. Are addresses integers? I believe they are. The memory is a collection of addresses with consecutive numbers expressed with integers. So it is a relevant example.
(* Memory map; PO.System page 104 *)
STACKSIZE* = 8000H; (* 32 kB. Was hardwired in Kernel.Init *)
STACKORG* = 80000H; (* stackOrg = 524,288; half a megabyte. *)
HEAPORG* = STACKORG; (* heapOrg = stackOrg *)
FSoffset* = STACKORG; (* Not clear what it is *)
MEMLIM* = 0E7EF0H; (* 1 MB minus 98,575 bytes of VRAM at the end*)
VRAMORG* = 0E7F00H; (* start of memory-mapped display frame*)
VRAMSIZE* = 1024*768 DIV 8; (* 1024 x 768 pixel, monocolor display frame*)
More information about the Oberon
mailing list