31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DIFFERENCES BETWEEN <strong>PASCAL</strong>-<strong>20</strong> AND VAX-II P~SCAL<br />

Table F-2 lists additional predeclared functions that VAX-II <strong>PASCAL</strong><br />

provides but P~SCAL-~O does not:<br />

Table F-2:<br />

Additional Predeclared Functions<br />

Category<br />

Function<br />

Boolean<br />

Transfer<br />

UFB(f)<br />

DBLE(x)<br />

QUAD (x)<br />

UINT(x)<br />

UROUND (r)<br />

UTRUNC (r)<br />

Dynamic Allocation<br />

Character String<br />

Un signed<br />

Allocation Size<br />

Low Level<br />

Interlocked<br />

Miscellaneous<br />

ADDRESS(x)<br />

INDEX(sl,s2)<br />

LENGTH(s)<br />

PAD(s,fill,l)<br />

SUBSTR(s,b,l)<br />

UNAD(ul,u2)<br />

UNOT (u)<br />

UOR(ul,u2)<br />

UXOR(ul,u2)<br />

SIZE(x,cl, ... ,cn)<br />

NEXT (x)<br />

BITSIZE(x)<br />

BITl\JEXT (x)<br />

ADD INTERLOCKED(e,v)<br />

SET-INTERLOCKED(b)<br />

CLEAR INTERLOCKED(b)<br />

STATUS (f)<br />

If you plan to transport VAX-II <strong>PASCAL</strong> programs to <strong>TOPS</strong>-<strong>20</strong>, or<br />

<strong>PASCAL</strong>-<strong>20</strong> programs to VAX/V~1S, note the following:<br />

• The precision for INTEGER data type:<br />

<strong>TOPS</strong>-<strong>20</strong><br />

VAX/VMS<br />

( .- 2 * * ~ 5 ) t h r 0 ug h ( + 2 * * 3 5 ) -1<br />

-34~59738368 through +34359738367<br />

(-2**31)+1 through (+2**31)-1<br />

-2147483647 through +2147483647<br />

• The maximum number of items in an enumerated type:<br />

<strong>TOPS</strong>-<strong>20</strong><br />

Depends on amount of memory available<br />

VAX/VMS 65,535<br />

• <strong>PASCAL</strong>-<strong>20</strong> has two procedures MARK and RELEASE that are used<br />

in conjunction with NEW and DISPOSE. VAX-II <strong>PASCAL</strong> does not<br />

have MARK and RELEASE.<br />

If you have any further questions concerning VAX-II <strong>PASCAL</strong>,<br />

the VAX-II <strong>PASCAL</strong> documentation set.<br />

refer to<br />

F-4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!