// File: jkingan[P]ladyheather/heather.cpp
// Function: set_term_header(unsigned int)
void set_term_header(unsigned port)
{
   // setup the terminal screen header lines

                     strcpy(&term_screen[0][0], "=========================================================================");
   if((zoom_screen == 'O') || (zoom_screen == 'H')) {
      if(port == RCVR_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather RCVR Port Data Monitor   Press any key to exit.");
      }
      else if(port == TICC_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather TICC Port Data Monitor   Press any key to exit.");
      }
      else if(port == ECHO_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather DATA ECHO Port Data Monitor   Press any key to exit.");
      }
      else if(port == NMEA_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather NMEA ECHO Port Data Monitor   Press any key to exit.");
      }
      else if(port == TICC_ECHO_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather TICC ECHO Port Data Monitor   Press any key to exit.");
      }
      else if(port == THERMO_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather Environmental Port Data Monitor   Press any key to exit.");
      }
      else if(port == TRACK_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather Tracking Port Data Monitor   Press any key to exit.");
      }
      else if(port == DAC_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather DAC/ADC Port Data Monitor   Press any key to exit.");
      }
      else if(port == FAN_PORT) {
                     strcpy(&term_screen[1][0], "   Lady Heather Fan Port Data Monitor   Press any key to exit.");
      }
      else {
                     sprintf(out,               "   Lady Heather Port %d Data Monitor   Press any key to exit.", port);
                     strcpy(&term_screen[1][0], out);
      }
      if(pause_monitor) {
         strcpy(&term_screen[2][0], "        GREEN=from  YELLOW=to device    SPACE to continue) ");
      }
      else {
         strcpy(&term_screen[2][0], "        GREEN=from  YELLOW=to device    SPACE to pause) ");
      }
   }
   else {
                     strcpy(&term_screen[1][0], "   Lady Heather Terminal   END to exit   HOME to clear   F8 send break");
      if(term_pause) strcpy(&term_screen[2][0], "        F4 resume output   ");
      else           strcpy(&term_screen[2][0], "         F4 pause output   ");
      if(term_echo)  strcat(&term_screen[2][0], "F1 echo off   ");
      else           strcat(&term_screen[2][0], "F1 echo on    ");
      if(raw_file)   strcat(&term_screen[2][0], "F2 log off      ");
      else           strcat(&term_screen[2][0], "F2 log append   ");
      if(term_hex)   strcat(&term_screen[2][0], "F3 ASCII mode ");
      else           strcat(&term_screen[2][0], "F3 HEX mode   ");
   }
   strcpy(&term_screen[3][0], "=========================================================================");
   strcpy(&term_screen[4][0], "");

   term_header_lines = 4+1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
leaq 0x37331e(%rip), %rdi    # 0x39f810
leaq 0x144a8f(%rip), %rsi    # 0x170f88
callq 0x9350
movzbl 0x33f483(%rip), %eax    # 0x36b988
cmpl $0x4f, %eax
je 0x2c51a
movzbl 0x33f477(%rip), %eax    # 0x36b988
cmpl $0x48, %eax
jne 0x2c690
cmpl $0xa, -0x4(%rbp)
jne 0x2c538
leaq 0x37336e(%rip), %rdi    # 0x39f895
leaq 0x144aa4(%rip), %rsi    # 0x170fd2
callq 0x9350
jmp 0x2c65a
cmpl $0xd, -0x4(%rbp)
jne 0x2c556
leaq 0x373350(%rip), %rdi    # 0x39f895
leaq 0x144ac6(%rip), %rsi    # 0x171012
callq 0x9350
jmp 0x2c658
cmpl $0xb, -0x4(%rbp)
jne 0x2c574
leaq 0x373332(%rip), %rdi    # 0x39f895
leaq 0x144ae8(%rip), %rsi    # 0x171052
callq 0x9350
jmp 0x2c656
cmpl $0xc, -0x4(%rbp)
jne 0x2c592
leaq 0x373314(%rip), %rdi    # 0x39f895
leaq 0x144b0f(%rip), %rsi    # 0x171097
callq 0x9350
jmp 0x2c654
cmpl $0xe, -0x4(%rbp)
jne 0x2c5b0
leaq 0x3732f6(%rip), %rdi    # 0x39f895
leaq 0x144b36(%rip), %rsi    # 0x1710dc
callq 0x9350
jmp 0x2c652
cmpl $0xf, -0x4(%rbp)
jne 0x2c5ce
leaq 0x3732d8(%rip), %rdi    # 0x39f895
leaq 0x144b5d(%rip), %rsi    # 0x171121
callq 0x9350
jmp 0x2c650
cmpl $0x12, -0x4(%rbp)
jne 0x2c5e9
leaq 0x3732ba(%rip), %rdi    # 0x39f895
leaq 0x144b88(%rip), %rsi    # 0x17116a
callq 0x9350
jmp 0x2c64e
cmpl $0x10, -0x4(%rbp)
jne 0x2c604
leaq 0x37329f(%rip), %rdi    # 0x39f895
leaq 0x144bb1(%rip), %rsi    # 0x1711ae
callq 0x9350
jmp 0x2c64c
cmpl $0x11, -0x4(%rbp)
jne 0x2c61f
leaq 0x373284(%rip), %rdi    # 0x39f895
leaq 0x144bd9(%rip), %rsi    # 0x1711f1
callq 0x9350
jmp 0x2c64a
movl -0x4(%rbp), %edx
leaq 0x36edd7(%rip), %rdi    # 0x39b400
leaq 0x144c00(%rip), %rsi    # 0x171230
movb $0x0, %al
callq 0x9060
leaq 0x373257(%rip), %rdi    # 0x39f895
leaq 0x36edbb(%rip), %rsi    # 0x39b400
callq 0x9350
jmp 0x2c64c
jmp 0x2c64e
jmp 0x2c650
jmp 0x2c652
jmp 0x2c654
jmp 0x2c656
jmp 0x2c658
jmp 0x2c65a
cmpl $0x0, 0x270fbb(%rip)    # 0x29d61c
je 0x2c678
leaq 0x3732b0(%rip), %rdi    # 0x39f91a
leaq 0x144bfd(%rip), %rsi    # 0x17126e
callq 0x9350
jmp 0x2c68b
leaq 0x37329b(%rip), %rdi    # 0x39f91a
leaq 0x144c24(%rip), %rsi    # 0x1712aa
callq 0x9350
jmp 0x2c794
leaq 0x3731fe(%rip), %rdi    # 0x39f895
leaq 0x144c45(%rip), %rsi    # 0x1712e3
callq 0x9350
cmpl $0x0, 0x3752ba(%rip)    # 0x3a1964
je 0x2c6c1
leaq 0x373267(%rip), %rdi    # 0x39f91a
leaq 0x144c70(%rip), %rsi    # 0x17132a
callq 0x9350
jmp 0x2c6d4
leaq 0x373252(%rip), %rdi    # 0x39f91a
leaq 0x144c77(%rip), %rsi    # 0x171346
callq 0x9350
cmpl $0x0, 0x375285(%rip)    # 0x3a1960
je 0x2c6f9
leaq 0x37312c(%rip), %rdi    # 0x39f810
addq $0x10a, %rdi            # imm = 0x10A
leaq 0x144c70(%rip), %rsi    # 0x171362
callq 0x96a0
jmp 0x2c713
leaq 0x373110(%rip), %rdi    # 0x39f810
addq $0x10a, %rdi            # imm = 0x10A
leaq 0x144c63(%rip), %rsi    # 0x171371
callq 0x96a0
cmpq $0x0, 0x270e35(%rip)    # 0x29d550
je 0x2c739
leaq 0x3730ec(%rip), %rdi    # 0x39f810
addq $0x10a, %rdi            # imm = 0x10A
leaq 0x144c4e(%rip), %rsi    # 0x171380
callq 0x96a0
jmp 0x2c753
leaq 0x3730d0(%rip), %rdi    # 0x39f810
addq $0x10a, %rdi            # imm = 0x10A
leaq 0x144c43(%rip), %rsi    # 0x171391
callq 0x96a0
cmpl $0x0, 0x270ec6(%rip)    # 0x29d620
je 0x2c778
leaq 0x3730ad(%rip), %rdi    # 0x39f810
addq $0x10a, %rdi            # imm = 0x10A
leaq 0x144c31(%rip), %rsi    # 0x1713a2
callq 0x96a0
jmp 0x2c792
leaq 0x373091(%rip), %rdi    # 0x39f810
addq $0x10a, %rdi            # imm = 0x10A
leaq 0x144c24(%rip), %rsi    # 0x1713b1
callq 0x96a0
jmp 0x2c794
leaq 0x373204(%rip), %rdi    # 0x39f99f
leaq 0x1447e6(%rip), %rsi    # 0x170f88
callq 0x9350
leaq 0x373276(%rip), %rdi    # 0x39fa24
leaq 0x167ddd(%rip), %rsi    # 0x194592
callq 0x9350
movl $0x5, 0x375198(%rip)    # 0x3a195c
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)