mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-21 15:29:28 +02:00
+ adding cardinal definition in system.pas
This commit is contained in:
parent
08232e556b
commit
fca3b1b827
@ -1,6 +1,6 @@
|
||||
PROGRAM SparcTest;
|
||||
VAR
|
||||
x,y:0..2 SHL 32-1;
|
||||
x,y:Cardinal;
|
||||
z:0..255;
|
||||
FUNCTION Add(a,b:Cardinal):Cardinal;
|
||||
BEGIN
|
||||
|
@ -1,9 +1,11 @@
|
||||
UNIT {SPARC}System;
|
||||
INTERFACE
|
||||
CONST
|
||||
MaxInt=2 SHL 15-1;
|
||||
MaxInt=1 SHL 16 - 1;
|
||||
MaxCardinal=1 SHL 32 - 1;
|
||||
TYPE
|
||||
Integer=-MaxInt-1..MaxInt;
|
||||
Cardinal=0..MaxCardinal;
|
||||
VAR
|
||||
Input,Output:Text;
|
||||
IMPLEMENTATION
|
||||
|
Loading…
Reference in New Issue
Block a user