function RLCHL() {
		var HLN = (registers[5]<<8)+registers[6];
		var HL = MemRead(HLN);
		flags[3] = HL>>7;
		HL = ((HL<<1)+flags[3])&0xFF;
		flags[0] = (HL == 0)?1:0;
		flags[1] = 0;
		flags[2] = 0;
		MemWrite(HLN, HL);
	}
//now the shifts and rotates for HL
now the shifts and rotates for HL
now the shifts and rotates for HL
function RLCHL() {
		var HLN = (registers[5]<<8)+registers[6];
		var HL = MemRead(HLN);
		flags[3] = HL>>7;
		HL = ((HL<<1)+flags[3])&0xFF;
		flags[0] = (HL == 0)?1:0;
		flags[1] = 0;
		flags[2] = 0;
		MemWrite(HLN, HL);
	}
function RLCHL ( ) { var HLN = ( registers [ 5 ] << 8 ) + registers [ 6 ] ; var HL = MemRead ( HLN ) ; flags [ 3 ] = HL >> 7 ; HL = ( ( HL << 1 ) + flags [ 3 ] ) & 0xFF ; flags [ 0 ] = ( HL == 0 ) ? 1 : 0 ; flags [ 1 ] = 0 ; flags [ 2 ] = 0 ; MemWrite ( HLN , HL ) ; }
now the shifts and rotates for HL
now the shifts and rotates for HL