Instead of just writing "SYNTAX ERROR" when the command doesn't work as expected, provide a short message that shows the usage of the command.
Each command would hold a string at the beginning or end that contains the error message, which the PATH program would access (using absolute address location or running the CMD with a flag to show the usage message).
Example:
] COPY A B
USAGE ERROR: COPY <FILE1>, <FILE2>
]COPY A, B
]REM SUCCESS
Instead of just writing "SYNTAX ERROR" when the command doesn't work as expected, provide a short message that shows the usage of the command.
Each command would hold a string at the beginning or end that contains the error message, which the PATH program would access (using absolute address location or running the CMD with a flag to show the usage message).
Example: