// File: sthapliyal37[P]Microprocessor_8085_Updated/DataTransfer.cpp
// Function: SHLD(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 SHLD(string instruction,string* registers,bool* flag,map<string,string>&memory){
	
	int length=instruction.length();
	if(length==4)
	{
		if(validityAddress(instruction)&&validityAddress(increaseAddress(instruction)))
		{
			memory[instruction]=registers[6];
			memory[increaseAddress(instruction)]=registers[5];
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
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 0x121d6
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 0x11fbd
movb -0xe9(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xf9(%rbp)
jne 0x11fd2
jmp 0x12026
movq -0xe8(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x3110
jmp 0x11fe7
movb $0x1, -0x99(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x6c20
jmp 0x12000
movb $0x1, -0x9a(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x3db0
movb %al, -0xfa(%rbp)
jmp 0x12018
movb -0xfa(%rbp), %al
movb %al, -0xf9(%rbp)
jmp 0x12026
movb -0xf9(%rbp), %al
movb %al, -0xfb(%rbp)
testb $0x1, -0x9a(%rbp)
jne 0x1203d
jmp 0x12046
leaq -0x78(%rbp), %rdi
callq 0x3190
testb $0x1, -0x99(%rbp)
jne 0x12051
jmp 0x1205d
leaq -0x98(%rbp), %rdi
callq 0x3190
leaq -0x48(%rbp), %rdi
callq 0x3190
movb -0xfb(%rbp), %al
testb $0x1, %al
jne 0x12075
jmp 0x121d4
movq -0xe8(%rbp), %rsi
movq -0x10(%rbp), %rax
addq $0xc0, %rax
movq %rax, -0x120(%rbp)
movq -0x20(%rbp), %rdi
callq 0xe790
movq -0x120(%rbp), %rsi
movq %rax, %rdi
callq 0x3050
movq -0xe8(%rbp), %rsi
movq -0x10(%rbp), %rax
addq $0xa0, %rax
movq %rax, -0x118(%rbp)
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 0x120f0
movq -0x110(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x129a0
movq %rax, -0x128(%rbp)
jmp 0x1210c
movq -0x118(%rbp), %rsi
movq -0x128(%rbp), %rdi
callq 0x3050
jmp 0x12121
leaq -0xc0(%rbp), %rdi
callq 0x3190
leaq -0xe0(%rbp), %rdi
callq 0x3190
jmp 0x121d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x12195
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x1217c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
testb $0x1, -0x9a(%rbp)
jne 0x12171
jmp 0x1217a
leaq -0x78(%rbp), %rdi
callq 0x3190
jmp 0x1217c
testb $0x1, -0x99(%rbp)
jne 0x12187
jmp 0x12193
leaq -0x98(%rbp), %rdi
callq 0x3190
jmp 0x12195
leaq -0x48(%rbp), %rdi
callq 0x3190
jmp 0x121df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x121c6
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 0x121df
jmp 0x121d6
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x3430
nopl (%rax,%rax)