[Oberon] Oberon-07 - SYSTEM.MSET

Joerg joerg.straube at iaeth.ch
Thu Jun 25 16:13:30 CEST 2020

In my point of view it’s not worth the effort as eg

  Display.Base, Display.Base+4, 24575

fills the b/w screen with an arbitrary word.


> Am 25.06.2020 um 16:20 schrieb Tomas Kral <thomas.kral at email.cz>:
> Hi,
> Just thinking, as part of en exercise, we could enrich pseudo module
> We have COPY command, we could add a complementing MSET, filling a
> memory block with arbitrary word.
> Similarly we have memset(), memcpy() on linux, and I have seen lately a
> habit in mimicking some ux* commands in Oberon :-)
> SYSTEM.MSET (choosing other name not to imply Oberon SET{})
> Can it be useful in some low level programming, I know NEW() fills block
> with NIL (0), but sometimes we need -1, or even other?
> Everything is word aligned and padded by compiler, so MSET could go by
> words.
> Bad idea?
> -- 
> Tomas Kral <thomas.kral at email.cz>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon

More information about the Oberon mailing list