Skip to content

Commit df88477

Browse files
committed
Merge branch 'way2js4' of https://github.com/peterdell/Mad-Pascal into way2js4
2 parents a1fc919 + 4e4dd1f commit df88477

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mp.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7256,7 +7256,7 @@ procedure CompileActualParameters(var i: integer; IdentIndex: integer; ProcVarIn
72567256
svar := GetLocalName(IdentIndex);
72577257

72587258

7259-
if Ident[IdentIndex].isExternal and RCLIBRARY and (Ident[IdentIndex].isStdCall = false) then begin
7259+
if RCLIBRARY and Ident[IdentIndex].isExternal and (Ident[IdentIndex].Libraries > 0) and (Ident[IdentIndex].isStdCall = false) then begin
72607260

72617261
asm65('#lib:' + svar);
72627262

@@ -7415,7 +7415,7 @@ procedure CompileActualParameters(var i: integer; IdentIndex: integer; ProcVarIn
74157415
asm65(#9'jsr :TMP');
74167416

74177417
end else
7418-
if Ident[IdentIndex].isExternal and RCLIBRARY and Ident[IdentIndex].isStdCall then begin
7418+
if RCLIBRARY and Ident[IdentIndex].isExternal and (Ident[IdentIndex].Libraries > 0) and Ident[IdentIndex].isStdCall then begin
74197419

74207420
asm65(#9'ldy <' + svar + '.@INITLIBRARY');
74217421
asm65(#9'sty @xmsProc.ini');
@@ -7463,7 +7463,7 @@ procedure CompileActualParameters(var i: integer; IdentIndex: integer; ProcVarIn
74637463
end;
74647464

74657465

7466-
if Ident[IdentIndex].isExternal and RCLIBRARY and (Ident[IdentIndex].isStdCall = false) then begin
7466+
if RCLIBRARY and Ident[IdentIndex].isExternal and (Ident[IdentIndex].Libraries > 0) and (Ident[IdentIndex].isStdCall = false) then begin
74677467

74687468
asm65(#9'pla');
74697469
asm65(#9'sta portb');

0 commit comments

Comments
 (0)