mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 16:34:07 +00:00
Upload
Digital Research
This commit is contained in:
18
SAMPLE CODE/PLI PROG SAMPLE CODE/FDTEST.PLI
Normal file
18
SAMPLE CODE/PLI PROG SAMPLE CODE/FDTEST.PLI
Normal file
@@ -0,0 +1,18 @@
|
||||
/****************************************************/
|
||||
/* This program tests the assembly-language routine */
|
||||
/* called FDIV2 which returns a FLOAT BINARY value. */
|
||||
/****************************************************/
|
||||
fdtest:
|
||||
procedure options(main);
|
||||
declare
|
||||
fdiv2 entry(fixed(7),float) returns(float),
|
||||
i fixed(7),
|
||||
f float;
|
||||
|
||||
do i = 0 by 1;
|
||||
put skip list('100 / 2 **',i,'=',fdiv2(i,100));
|
||||
end;
|
||||
|
||||
end fdtest;
|
||||
|
||||
|
Reference in New Issue
Block a user