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