added new ABS function

This commit is contained in:
mysticbbs 2013-02-15 23:17:58 -05:00
parent aa0dd75827
commit cfab35fee3
2 changed files with 6 additions and 1 deletions

View File

@ -245,7 +245,8 @@ Begin
AddProc ({$IFDEF MPLPARSER} 'fillchar', {$ENDIF} '*lc', iNone); // 90
AddProc ({$IFDEF MPLPARSER} 'fwriterec', {$ENDIF} 'Fx', iNone); // 91
AddProc ({$IFDEF MPLPARSER} 'freadrec', {$ENDIF} 'Fx', iNone); // 92
AddProc ({$IFDEF MPLPARSER} 'real2str', {$ENDIF} 'rb', iString); // 93;
AddProc ({$IFDEF MPLPARSER} 'real2str', {$ENDIF} 'rb', iString); // 93
AddProc ({$IFDEF MPLPARSER} 'abs', {$ENDIF} 'l', iLongInt); // 94
IW := 500; // BEGIN BBS-SPECIFIC STUFF

View File

@ -1771,6 +1771,10 @@ Begin
TempStr := strR2S(Param[1].R, Param[2].B);
Store (TempStr, 256);
End;
94 : Begin
TempLong := Abs(Param[1].L);
Store (TempLong, 4);
End;
500 : Begin
TempStr := Session.io.GetInput(Param[1].B, Param[2].B, Param[3].B, Param[4].S);
Store (TempStr, 256);