blob: 9e87ef3ed9c112e8cf13deb4467602e2320ac3f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
--
-- Address_IO / Specification
--
-- DESCRIPTION:
--
-- This package instantiates the IO routines necessary to
-- perform IO on data of the type System.Address.
--
-- DEPENDENCIES:
--
--
--
-- COPYRIGHT (c) 1989-1997.
-- On-Line Applications Research Corporation (OAR).
-- Copyright assigned to U.S. Government, 1994.
--
-- The license and distribution terms for this file may in
-- the file LICENSE in this distribution or at
-- http://www.OARcorp.com/rtems/license.html.
--
-- $Id$
--
with System;
with System.Storage_Elements;
with Text_IO;
package body Address_IO is
procedure Put (
Item : in System.Address;
Width : in Natural := 8;
Base : in Natural := 16
) is
package Integer_IO is new TEXT_IO.Integer_IO( Integer );
begin
Integer_IO.Put(
Integer( System.Storage_Elements.To_Integer( Item ) ),
Width,
Base
);
end Put;
end Address_IO;
|