Commit a40520ec by Arnaud Charlet

Minor reformatting.

From-SVN: r160732
parent 4a214958
...@@ -135,7 +135,7 @@ package body System.Aux_DEC is ...@@ -135,7 +135,7 @@ package body System.Aux_DEC is
--------------------------------- ---------------------------------
-- It would be nice to replace these with intrinsics, but that does -- It would be nice to replace these with intrinsics, but that does
-- not work yet (the back end would be ok, but GNAT itself objects) -- not work yet (the back end would be ok, but GNAT itself objects) ???
type BU is mod 2 ** Unsigned_Byte'Size; type BU is mod 2 ** Unsigned_Byte'Size;
-- Unsigned type of same length as Unsigned_Byte -- Unsigned type of same length as Unsigned_Byte
...@@ -168,7 +168,7 @@ package body System.Aux_DEC is ...@@ -168,7 +168,7 @@ package body System.Aux_DEC is
--------------------------------- ---------------------------------
-- It would be nice to replace these with intrinsics, but that does -- It would be nice to replace these with intrinsics, but that does
-- not work yet (the back end would be ok, but GNAT itself objects) -- not work yet (the back end would be ok, but GNAT itself objects) ???
type WU is mod 2 ** Unsigned_Word'Size; type WU is mod 2 ** Unsigned_Word'Size;
-- Unsigned type of same length as Unsigned_Word -- Unsigned type of same length as Unsigned_Word
...@@ -201,7 +201,7 @@ package body System.Aux_DEC is ...@@ -201,7 +201,7 @@ package body System.Aux_DEC is
------------------------------------- -------------------------------------
-- It would be nice to replace these with intrinsics, but that does -- It would be nice to replace these with intrinsics, but that does
-- not work yet (the back end would be ok, but GNAT itself objects) -- not work yet (the back end would be ok, but GNAT itself objects) ???
type LWU is mod 2 ** Unsigned_Longword'Size; type LWU is mod 2 ** Unsigned_Longword'Size;
-- Unsigned type of same length as Unsigned_Longword -- Unsigned type of same length as Unsigned_Longword
...@@ -234,7 +234,7 @@ package body System.Aux_DEC is ...@@ -234,7 +234,7 @@ package body System.Aux_DEC is
------------------------------- -------------------------------
-- It would be nice to replace these with intrinsics, but that does -- It would be nice to replace these with intrinsics, but that does
-- not work yet (the back end would be ok, but GNAT itself objects) -- not work yet (the back end would be ok, but GNAT itself objects) ???
type U32 is mod 2 ** Unsigned_32'Size; type U32 is mod 2 ** Unsigned_32'Size;
-- Unsigned type of same length as Unsigned_32 -- Unsigned type of same length as Unsigned_32
...@@ -267,7 +267,7 @@ package body System.Aux_DEC is ...@@ -267,7 +267,7 @@ package body System.Aux_DEC is
------------------------------------- -------------------------------------
-- It would be nice to replace these with intrinsics, but that does -- It would be nice to replace these with intrinsics, but that does
-- not work yet (the back end would be ok, but GNAT itself objects) -- not work yet (the back end would be ok, but GNAT itself objects) ???
type QWU is mod 2 ** 64; -- 64 = Unsigned_Quadword'Size type QWU is mod 2 ** 64; -- 64 = Unsigned_Quadword'Size
-- Unsigned type of same length as Unsigned_Quadword -- Unsigned type of same length as Unsigned_Quadword
...@@ -306,7 +306,12 @@ package body System.Aux_DEC is ...@@ -306,7 +306,12 @@ package body System.Aux_DEC is
use ASCII; use ASCII;
Clr_Bit : Boolean := Bit; Clr_Bit : Boolean := Bit;
Old_Bit : Boolean; Old_Bit : Boolean;
begin begin
-- All these ASM sequences should be commented. I suggest definining
-- a constant called E which is LF & HT and then you have more space
-- for line by line comments ???
System.Machine_Code.Asm System.Machine_Code.Asm
( (
"lda $16, %2" & LF & HT & "lda $16, %2" & LF & HT &
...@@ -347,6 +352,7 @@ package body System.Aux_DEC is ...@@ -347,6 +352,7 @@ package body System.Aux_DEC is
use ASCII; use ASCII;
Clr_Bit : Boolean := Bit; Clr_Bit : Boolean := Bit;
Succ, Old_Bit : Boolean; Succ, Old_Bit : Boolean;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -398,7 +404,10 @@ package body System.Aux_DEC is ...@@ -398,7 +404,10 @@ package body System.Aux_DEC is
use ASCII; use ASCII;
Set_Bit : Boolean := Bit; Set_Bit : Boolean := Bit;
Old_Bit : Boolean; Old_Bit : Boolean;
begin begin
-- Don't we need comments on these long asm sequences???
System.Machine_Code.Asm System.Machine_Code.Asm
( (
"lda $16, %2" & LF & HT & "lda $16, %2" & LF & HT &
...@@ -438,6 +447,7 @@ package body System.Aux_DEC is ...@@ -438,6 +447,7 @@ package body System.Aux_DEC is
use ASCII; use ASCII;
Set_Bit : Boolean := Bit; Set_Bit : Boolean := Bit;
Succ, Old_Bit : Boolean; Succ, Old_Bit : Boolean;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -488,6 +498,7 @@ package body System.Aux_DEC is ...@@ -488,6 +498,7 @@ package body System.Aux_DEC is
is is
use ASCII; use ASCII;
Overflowed : Boolean := False; Overflowed : Boolean := False;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -549,6 +560,7 @@ package body System.Aux_DEC is ...@@ -549,6 +560,7 @@ package body System.Aux_DEC is
Amount : Integer) Amount : Integer)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -574,6 +586,7 @@ package body System.Aux_DEC is ...@@ -574,6 +586,7 @@ package body System.Aux_DEC is
Success_Flag : out Boolean) Success_Flag : out Boolean)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -609,6 +622,7 @@ package body System.Aux_DEC is ...@@ -609,6 +622,7 @@ package body System.Aux_DEC is
Amount : Long_Integer) Amount : Long_Integer)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -634,6 +648,7 @@ package body System.Aux_DEC is ...@@ -634,6 +648,7 @@ package body System.Aux_DEC is
Success_Flag : out Boolean) Success_Flag : out Boolean)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -673,6 +688,7 @@ package body System.Aux_DEC is ...@@ -673,6 +688,7 @@ package body System.Aux_DEC is
From : Integer) From : Integer)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -698,6 +714,7 @@ package body System.Aux_DEC is ...@@ -698,6 +714,7 @@ package body System.Aux_DEC is
Success_Flag : out Boolean) Success_Flag : out Boolean)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -733,6 +750,7 @@ package body System.Aux_DEC is ...@@ -733,6 +750,7 @@ package body System.Aux_DEC is
From : Long_Integer) From : Long_Integer)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -758,6 +776,7 @@ package body System.Aux_DEC is ...@@ -758,6 +776,7 @@ package body System.Aux_DEC is
Success_Flag : out Boolean) Success_Flag : out Boolean)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -797,6 +816,7 @@ package body System.Aux_DEC is ...@@ -797,6 +816,7 @@ package body System.Aux_DEC is
From : Integer) From : Integer)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -822,6 +842,7 @@ package body System.Aux_DEC is ...@@ -822,6 +842,7 @@ package body System.Aux_DEC is
Success_Flag : out Boolean) Success_Flag : out Boolean)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -857,6 +878,7 @@ package body System.Aux_DEC is ...@@ -857,6 +878,7 @@ package body System.Aux_DEC is
From : Long_Integer) From : Long_Integer)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -882,6 +904,7 @@ package body System.Aux_DEC is ...@@ -882,6 +904,7 @@ package body System.Aux_DEC is
Success_Flag : out Boolean) Success_Flag : out Boolean)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -919,9 +942,10 @@ package body System.Aux_DEC is ...@@ -919,9 +942,10 @@ package body System.Aux_DEC is
procedure Insqhi procedure Insqhi
(Item : Address; (Item : Address;
Header : Address; Header : Address;
Status : out Insq_Status) is Status : out Insq_Status)
is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -947,6 +971,7 @@ package body System.Aux_DEC is ...@@ -947,6 +971,7 @@ package body System.Aux_DEC is
Status : out Remq_Status) Status : out Remq_Status)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -969,9 +994,10 @@ package body System.Aux_DEC is ...@@ -969,9 +994,10 @@ package body System.Aux_DEC is
procedure Insqti procedure Insqti
(Item : Address; (Item : Address;
Header : Address; Header : Address;
Status : out Insq_Status) is Status : out Insq_Status)
is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
...@@ -997,6 +1023,7 @@ package body System.Aux_DEC is ...@@ -997,6 +1023,7 @@ package body System.Aux_DEC is
Status : out Remq_Status) Status : out Remq_Status)
is is
use ASCII; use ASCII;
begin begin
System.Machine_Code.Asm System.Machine_Code.Asm
( (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment