mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-23 08:24:18 +00:00
Upload
Digital Research
This commit is contained in:
19
SAMPLE CODE/PLI PROG SAMPLE CODE/DTEST.PLI
Normal file
19
SAMPLE CODE/PLI PROG SAMPLE CODE/DTEST.PLI
Normal file
@@ -0,0 +1,19 @@
|
||||
/******************************************************/
|
||||
/* This program tests an assembly language routine to */
|
||||
/* do floating point division. */
|
||||
/******************************************************/
|
||||
dtest:
|
||||
procedure options(main);
|
||||
declare
|
||||
div2 entry(fixed(7),float),
|
||||
i fixed(7),
|
||||
f float;
|
||||
|
||||
do i = 0 by 1;
|
||||
f = 100;
|
||||
call div2(i,f);
|
||||
put skip list('100 / 2 **',i,'=',f);
|
||||
end;
|
||||
|
||||
end dtest;
|
||||
|
Reference in New Issue
Block a user