loadrun is a command used to load and run NITRO srl files on the IS-NITRO-EMULATOR. This command can be entered from the command line without launching the debugger and you can specify conditions to use the force-quit option.

----------------------------------------------------------------
Use
Specify the name of the srl file after entering 'loadrun'.

Options can be inserted between the command and the file name. See the following for a list of available parameters.

----------------------------------------------------------------
Description of Options

--version
	Display the version.

-h, --help
	Display help.

-q, --quiet
	Run in quiet mode.
	OS_Printf() from the DS will also not be displayed.

-v, --verbose
	Run in verbose mode.
	Displays various data.

-L, --list
	Lists the connected devices.
	Sample output is shown below. 

	---- Connected devices:
	  0: [NITROUSB]  IS-NITRO-EMULATOR serial:04070680
	  1: [NITROUSB]  IS-NITRO-EMULATOR serial:04070682
	  2: [NITROUSB]  IS-NITRO-EMULATOR serial:04070683
	3 device(s) found.

	The devices listed in the [NITROUSB] section will be those corresponding to the type indicated by the -d parameter. Use the -s parameter to specify a serial number. 

        This list will not be displayed when IS-NITRO-DEBUGGER is running and connected. 

-l, --lap
	Displays the time taken from the start of each line's run when displaying OS_Printf() data. Processing occurs internally in units of seconds, so there may be minor errors in units below that. Sample output is shown below. The data in the format, {x:xx}, was added by this option. 

	{0:01}Program started
	{0:01}--- heap init
	{0:02}x=14 y=50
	{0:04}x=15 y=20
	{0:04}

-d, --type=DEVICE
	Specifies the device type. Select from among the following: 
	CGBUSB, CGBSCSI, NITROUSB, NITROUIC
	
        The first device found for the specified type will be the target device. 


-s, --serial=SERIAL
       Specifies a device serial number. The specified value is in base-10 notation and is the same as that displayed with the -L parameter. (For the serial number indicated as 04070680 in the list, the leading zeros can be omitted, and entered as 4070680.)
	The first device found for the specified serial number will be the target 	device. 

	The parameters -d and -s can be used independently, jointly or omitted. When no device is specified, the first device found is the target device.

-t, --timeout=SECOND
	Specifies the display timeout.
	Executes a force-quit if the next display does not come within the specified time after receiving OS_Printf() data. 


-T, --exec-timeout=SECOND
	Specifies the run timeout. 
       Executes a force-quit if the run time exceeds the specified time after loading the srl file to the debugger. 

-a, --abort-string=STRING
	Specifies an abort string.
        Any of the following can be used:
	-a=ABORT  -a="ABORT"   -a ABORT -a "ABORT" 
        --abort-string=ABORT --abort-string "ABORT"

String matching is performed from the string's header. Matches are stored until a return character is encountered. Opening during display will not affect this. 

	For example, if ABORT is the abort string, 

	OS_Printf("ABORT\n")
	OS_Printf("ABORTING\n")
	OS_Printf("ABOR");OS_Sleep(1000);OS_Printf("T\n");

	will all terminate the run, but

	OS_Printf("  ABORT\n")
	OS_Printf("ABO\nRT\n")
	OS_Printf("A B O R T\n")

	will not. In addition, 

	OS_Printf("ABORT")

	will not immediately terminate the run as there is no return character. 
        When one is encountered (as in OS_Printf("\n") or OS_Printf(" SOON\n")), termination will occur. 

-c, --card-slot=SWITCH
	Specifies the lock for the card slot at run. 
	Can be set to either ON or OFF. The default value is OFF.

-C, --cartridge-slot=SWITCH
	Specifies the lock for the cartridge at run.
	Can be set to either ON or OFF. The default value is OFF.

