From: sk <noname@myob.com>
Subject: Re: An OS in Ada, why not RTEMS ?
Date: Sun, 28 Apr 2002 21:29:45 -0500
Date: 2002-04-28T21:29:45-05:00 [thread overview]
Message-ID: <mailman.1020051003.12089.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: hqgocukdsciud6rlpq2h0jh21vilf6u31d@4ax.com
Hi,
>- GNAT (or GCC) compiles to a logically flat memory model. That
> ...
>---
>with System; use System;
>with System.Storage_Elements; use System.Storage_Elements;
>procedure Hello is
> Char : Character;
> for Char'Address use To_Address (16#B8000#);
>begin
> Char := 'H';
>end Hello;
>---
> ...
>GNAT
Do you expect this to put the character 'H' on the screen ?
I think of storage elements as bytes, with bytes and characters
being synonymous.
However, the PC VGA card "thinks" storage_elements are words;
8-bits are for color attributes, and 8-bits are for the character.
It took me a while to solve the mystery of very strange and
seemingly random colored characters popping up on the screen.
o o
|
\_/
--
-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
k i e k c c m
-------------------------------------
next prev parent reply other threads:[~2002-04-29 2:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-26 20:58 An OS in Ada, why not RTEMS ? sk
2002-04-28 7:45 ` James Ross
2002-04-28 11:18 ` sk
2002-04-28 21:48 ` James Ross
2002-04-28 23:12 ` Nick Roberts
2002-04-29 2:29 ` sk [this message]
2002-04-29 5:48 ` James Ross
2002-04-29 12:09 ` Sergey Koshcheyev
2002-04-30 5:33 ` James Ross
2002-04-30 15:59 ` Sergey Koshcheyev
2002-04-29 18:52 ` Bytes per character (was Re: An OS in Ada, why not RTEMS ?) Brian Catlin
2002-04-29 22:15 ` sk
2002-04-29 23:28 ` chris.danx
2002-04-29 22:51 ` sk
2002-04-28 21:13 ` An OS in Ada, why not RTEMS ? Nick Roberts
2002-04-29 0:34 ` James Ross
2002-04-29 5:19 ` Simon Wright
2002-04-30 6:53 ` James Ross
2002-04-30 16:03 ` Sergey Koshcheyev
2002-05-01 22:24 ` Simon Wright
2002-04-30 8:49 ` Why not MaRTE was " Alfred Hilscher
2002-04-30 14:08 ` sk
2002-05-07 2:22 ` Nick Roberts
2002-05-12 16:35 ` Freddy
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox