Skip to navigation

Elite on the BBC Micro and NES

Utility routines: SCLI2

[6502 Second Processor version]

Name: SCLI2 [Show more] Type: Subroutine Category: Utility routines Summary: Execute an OS command, setting the SVN flag while it's running
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * CATS calls SCLI2 * DELT calls SCLI2

SVN is set to 255 before the command is run, to indicate that disc access is in progress, and is reset to 0 once it has finished.
Arguments: (Y X) The address of a string containing the command to run, terminated by a carriage return (ASCII 13)
.SCLI2 LDA #255 \ Set the SVN flag to 255 JSR DODOSVN JSR OSCLI \ Call OSCLI to execute the OS command at (Y X) LDA #0 \ Set A = 0 for the new value of the SVN flag \ Fall through into DODOSVN to set the SVN flag to 0