/BLINKY-1_lem.  PDP-1 RIM LOADER WITH LEM.  MIKE HILL  13-NOV-2025

	///////////////////////////////////////////////////////////////////
	/                                                                 /
	/  S I M P L E   R I M   L O A D E R   F O R   E M U L A T O R S  /
	/  T U R N S   'E X T E N D'   O F F   P R I O R   T O   L O A D  /
	/                                                                 /
	/     P A R T   O F   T H E   B L I N K Y - 1   P R O J E C T     /
	/   F O R   T H E   P i D P - 1   ( O R )   A   R E A L   O N E   /
	/                                                                 /
	/  Mike Hill V01 - Initial version                   05-Feb-2025  /
	/  Mike Hill V02 - Add support for ZERBIN (ZERMEM)   23-Sep-2025  /
	/  Mike Hill V03 - Add automated LEM prior to load   13-Nov-2025  /
	/                                                                 /
	///////////////////////////////////////////////////////////////////

/ Goal>
/
/    Create a software implementation of the PDP-1 hardware RIM loader which
/    will turn off EXTEND mode prior to loading if the EXTEND switch is ON.
/
/ Instructions>
/
/    Assemble this file using the macro1 cross-assembler (WITH the '-r'
/    qualifier) and prepend the resulting RIM file to the desired program.

///////////////////////////////////////////////////////////////////////////////

/ RIM loader

7743/				730002	327747	652000	730002
7750/	627743

///////////////////////////////////////////////////////////////////////////////

/ If in EXTEND mode, turn it OFF (e.g. to enable the BINARY LOADER to work)

7751/	627752	661001	640200	720074	627743

///////////////////////////////////////////////////////////////////////////////

noinput
start 7751
