Change calls according to Lars Brinkhoff

This commit is contained in:
2025-10-29 21:49:57 +01:00
parent 1947389c23
commit 88f54e3381

View File

@@ -39,8 +39,8 @@ START: MOVE P,[-PDLLEN,,PDL-1] ;Initialize the stack.
PUSHJ P,GETJCL ;Read the command line. PUSHJ P,GETJCL ;Read the command line.
MOVE A,[BPTR,,LOADING] ;Print the loading message MOVE A,[BPTR,,LOADING] ;Print the loading message
PUSHJ P,OUTSTR PUSHJ P,OUTSTR
MOVEI A,[BPTR,,FNAME1] ;Store the first file name in A MOVEI A,[%CLIN,,FNAME1] ;Store the first file name in A
MOVEI B,[BPTR,,FNAME2] ;Store the second file name in B MOVEI B,[%CLIN,,FNAME2] ;Store the second file name in B
MOVEI C,FIELD ;Store the address of field in C MOVEI C,FIELD ;Store the address of field in C
PUSHJ P,IMPRTF ;Load the file PUSHJ P,IMPRTF ;Load the file
PUSHJ P,PFIELD ;Print the loaded field. PUSHJ P,PFIELD ;Print the loaded field.
@@ -139,7 +139,7 @@ IMPRTF: PUSH P,A ;Save the A register.
MOVE X,[440400,,FIELD] ;Init a 4-bit byte pointer to FIELD. MOVE X,[440400,,FIELD] ;Init a 4-bit byte pointer to FIELD.
.CALL [SETZ ? SIXBIT/OPEN/ ;Open a file descriptor. .CALL [SETZ ? SIXBIT/OPEN/ ;Open a file descriptor.
[.UAI,,CHDSKI] ? [SIXBIT/DSK/] ;Mode, channel and device name [.UAI,,CHDSKI] ? [SIXBIT/DSK/] ;Mode, channel and device name
%CLIMM,,FNAME1 ? %CLIMM,,FNAME2 ((SETZ))] A ? B ((SETZ))]
.LOSE %LSFIL ;Handle errors after opening the file .LOSE %LSFIL ;Handle errors after opening the file
IMPRD: .IOT CHDSKI,A ;Read an ascii char into A. IMPRD: .IOT CHDSKI,A ;Read an ascii char into A.
JUMPL A,IMPREX ;If there was nothing read, exit. JUMPL A,IMPREX ;If there was nothing read, exit.