// File: sthapliyal37[P]Microprocessor_8085_Updated/DataTransfer.cpp
// Function: LHLD(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
void LHLD(string instruction,string* registers,bool* flag,map<string,string>& memory){
int length=instruction.length();
	if(length==4)
	{
		if(validityAddress(instruction)&&validityAddress(increaseAddress(instruction)))
		{
			registers[6]=memory[instruction];
			registers[5]=memory[increaseAddress(instruction)];
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0xe8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
callq 0x33b0
movl %eax, -0x24(%rbp)
cmpl $0x4, -0x24(%rbp)
jne 0x1282c
movq -0xe8(%rbp), %rsi
leaq -0x48(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x3110
movq -0xf8(%rbp), %rdi
movb $0x0, -0x99(%rbp)
movb $0x0, -0x9a(%rbp)
callq 0x3db0
movb %al, -0xe9(%rbp)
jmp 0x1262d
movb -0xe9(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xf9(%rbp)
jne 0x12642
jmp 0x12696
movq -0xe8(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x3110
jmp 0x12657
movb $0x1, -0x99(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x6c20
jmp 0x12670
movb $0x1, -0x9a(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x3db0
movb %al, -0xfa(%rbp)
jmp 0x12688
movb -0xfa(%rbp), %al
movb %al, -0xf9(%rbp)
jmp 0x12696
movb -0xf9(%rbp), %al
movb %al, -0xfb(%rbp)
testb $0x1, -0x9a(%rbp)
jne 0x126ad
jmp 0x126b6
leaq -0x78(%rbp), %rdi
callq 0x3190
testb $0x1, -0x99(%rbp)
jne 0x126c1
jmp 0x126cd
leaq -0x98(%rbp), %rdi
callq 0x3190
leaq -0x48(%rbp), %rdi
callq 0x3190
movb -0xfb(%rbp), %al
testb $0x1, %al
jne 0x126e5
jmp 0x1282a
movq -0xe8(%rbp), %rsi
movq -0x20(%rbp), %rdi
callq 0xe790
movq %rax, %rsi
movq -0x10(%rbp), %rdi
addq $0xc0, %rdi
callq 0x3050
movq -0xe8(%rbp), %rsi
movq -0x20(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x3110
movq -0x108(%rbp), %rsi
leaq -0xc0(%rbp), %rdi
callq 0x6c20
jmp 0x12742
movq -0x110(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x129a0
movq %rax, -0x118(%rbp)
jmp 0x1275e
movq -0x118(%rbp), %rsi
movq -0x10(%rbp), %rdi
addq $0xa0, %rdi
callq 0x3050
jmp 0x12777
leaq -0xc0(%rbp), %rdi
callq 0x3190
leaq -0xe0(%rbp), %rdi
callq 0x3190
jmp 0x1282a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x127eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x127d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
testb $0x1, -0x9a(%rbp)
jne 0x127c7
jmp 0x127d0
leaq -0x78(%rbp), %rdi
callq 0x3190
jmp 0x127d2
testb $0x1, -0x99(%rbp)
jne 0x127dd
jmp 0x127e9
leaq -0x98(%rbp), %rdi
callq 0x3190
jmp 0x127eb
leaq -0x48(%rbp), %rdi
callq 0x3190
jmp 0x12835
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x1281c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3190
leaq -0xe0(%rbp), %rdi
callq 0x3190
jmp 0x12835
jmp 0x1282c
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x3430
nop