// File: /workspace/github_cpp_makefile_star2_O2/czmccrory[P]ManchesterBaby/baby.cpp
// Function: ManchesterBaby::output()
void ManchesterBaby::output() {

	clrscr();
  cout<< "Store:" <<endl;
  for (size_t i = 0; i < store.size(); ++i)
  {
    //Print line
    cout << i << '\t';// << flush;
    store.at(i).print();
  }

  cout <<""<<endl;
  cout<< "Present Instruction" << "\n\t";
  presentInstruction.printNoEndl();//print the mnemonic for the present instrcution
  cout << '\t' << presentMnemonic << endl; 


  cout << "" <<endl;
  cout << "Control Instruction" <<"\n\t";
  Line ci; // create a new line
  ci.setDecVector(instructionCounter);  //set the value at this line to the instruction counter
  ci.printNoEndl();
  cout << '\t' <<  ci.getDecVector() <<endl; //print the decimal value too

  cout << "" <<endl;
  cout << "Accumulator" <<"\n\t";
  accumulator.printNoEndl();
  cout << '\t' <<  accumulator.getDecVector() <<endl;
  cout << "\nPress enter to see the next cycle, or input any other key to exit." <<endl;

  if (!stopLamp){
  	cout << "Stop Lamp: " << "\033[1;34mOFF\033[0m\n"<<endl; //blue OFF
  }else{
  	cout << "Stop Lamp: " << "\033[1;31mON\033[0m\n"<<endl; //red ON
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x3110
movq 0x5bbd(%rip), %r14      # 0x8fc8
leaq 0x1cd7(%rip), %rsi      # 0x50e9
movq %r14, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
xorl %r15d, %r15d
pushq $0x9
popq %rbp
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
cmpq %rax, %r15
jae 0x3465
movq %r14, %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %rdi
movl %ebp, %esi
callq 0x2220
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3c8a
movq %rax, %rdi
callq 0x4492
incq %r15
jmp 0x3428
movq 0x5b5c(%rip), %r14      # 0x8fc8
leaq 0x1c93(%rip), %r15      # 0x5106
movq %r14, %rdi
movq %r15, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
leaq 0x1c63(%rip), %rsi      # 0x50f0
movq %r14, %rdi
callq 0x21d0
leaq 0x1c68(%rip), %r12      # 0x5104
movq %rax, %rdi
movq %r12, %rsi
callq 0x21d0
leaq 0x18(%rbx), %rdi
callq 0x448a
pushq $0x9
popq %rsi
movq %r14, %rdi
callq 0x2220
leaq 0x38(%rbx), %rsi
movq %rax, %rdi
callq 0x21b0
movq %rax, %rdi
callq 0x20e0
movq %r14, %rdi
movq %r15, %rsi
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
leaq 0x1c1e(%rip), %rsi      # 0x5107
movq %r14, %rdi
callq 0x21d0
movq %rax, %rdi
movq %r12, %rsi
callq 0x21d0
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x44a8
movl 0x30(%rbx), %esi
movq %r14, %rdi
callq 0x4714
leaq 0x8(%rsp), %rdi
callq 0x448a
movq 0x5aa3(%rip), %rdi      # 0x8fc8
pushq $0x9
popq %rsi
callq 0x2220
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x46f0
movq %r14, %rdi
movl %eax, %esi
callq 0x2310
movq %rax, %rdi
callq 0x20e0
movq 0x5a75(%rip), %rdi      # 0x8fc8
leaq 0x1bac(%rip), %rsi      # 0x5106
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
movq 0x5a5a(%rip), %rdi      # 0x8fc8
leaq 0x1ba6(%rip), %rsi      # 0x511b
callq 0x21d0
leaq 0x1b83(%rip), %rsi      # 0x5104
movq %rax, %rdi
callq 0x21d0
leaq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x448a
movq 0x5a2c(%rip), %rdi      # 0x8fc8
pushq $0x9
popq %rsi
callq 0x2220
movq %rax, %r15
movq %r14, %rdi
callq 0x46f0
movq %r15, %rdi
movl %eax, %esi
callq 0x2310
movq %rax, %rdi
callq 0x20e0
movq 0x5a00(%rip), %rdi      # 0x8fc8
leaq 0x1b58(%rip), %rsi      # 0x5127
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
cmpb $0x0, 0x79(%rbx)
je 0x35fe
movq 0x59df(%rip), %rdi      # 0x8fc8
leaq 0x1b7b(%rip), %rsi      # 0x516b
callq 0x21d0
leaq 0x1b8b(%rip), %rsi      # 0x5187
jmp 0x3618
movq 0x59c3(%rip), %rdi      # 0x8fc8
leaq 0x1b5f(%rip), %rsi      # 0x516b
callq 0x21d0
leaq 0x1b5f(%rip), %rsi      # 0x5177
movq %rax, %rdi
callq 0x21d0
movq %rax, %rdi
callq 0x20e0
leaq 0x8(%rsp), %rdi
callq 0x45ae
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x45ae
movq %rbx, %rdi
callq 0x2320