// File: sthapliyal37[P]Microprocessor_8085_Updated/DataTransfer.cpp
// Function: STAX(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 STAX(string instruction,string* registers,bool* flag,map<string,string>& memory){
int length=instruction.length();
	if(length==1)
	{
		if(validityRegisterPair(instruction))
		{
			string address="";
			int index=registerNumber(instruction);
			address+=registers[index]+registers[index+1];
			if(validityAddress(address))
				memory[address]=registers[0];
		}
	}
}

// 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 $0x1, -0x24(%rbp)
jne 0x1243b
movq -0xe8(%rbp), %rsi
leaq -0x48(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x3110
movq -0xf8(%rbp), %rdi
callq 0x38d0
movb %al, -0xe9(%rbp)
jmp 0x1224f
leaq -0x48(%rbp), %rdi
callq 0x3190
movb -0xe9(%rbp), %al
testb $0x1, %al
jne 0x12267
jmp 0x12439
leaq -0x79(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x3440
movq -0x100(%rbp), %rdx
leaq 0x2f7d(%rip), %rsi      # 0x15202
leaq -0x78(%rbp), %rdi
callq 0x50d0
jmp 0x12290
leaq -0x79(%rbp), %rdi
callq 0x32f0
movq -0xe8(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
callq 0x3110
jmp 0x122ae
leaq -0xa0(%rbp), %rdi
callq 0x3970
movl %eax, -0x104(%rbp)
jmp 0x122c2
leaq -0xa0(%rbp), %rdi
callq 0x3190
movl -0x104(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movslq -0x80(%rbp), %rcx
shlq $0x5, %rcx
movq %rax, %rsi
addq %rcx, %rsi
leaq 0x20(%rax,%rcx), %rdx
leaq -0xc0(%rbp), %rdi
callq 0xe6b0
jmp 0x122fc
leaq -0x78(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x3360
jmp 0x1230e
leaq -0xc0(%rbp), %rdi
callq 0x3190
leaq -0xe0(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x3110
jmp 0x1232c
leaq -0xe0(%rbp), %rdi
callq 0x3db0
movb %al, -0x105(%rbp)
jmp 0x12340
leaq -0xe0(%rbp), %rdi
callq 0x3190
movb -0x105(%rbp), %al
testb $0x1, %al
jne 0x1235b
jmp 0x12423
movq -0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x20(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xe790
movq %rax, -0x110(%rbp)
jmp 0x1237c
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdi
callq 0x3050
jmp 0x12391
jmp 0x12423
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x3190
jmp 0x12444
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x79(%rbp), %rdi
callq 0x32f0
jmp 0x12444
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x1242e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x3190
jmp 0x1242e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3190
jmp 0x1242e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x3190
jmp 0x1242e
leaq -0x78(%rbp), %rdi
callq 0x3190
jmp 0x12439
leaq -0x78(%rbp), %rdi
callq 0x3190
jmp 0x12444
jmp 0x1243b
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x3430
nopl (%rax)