// File: /workspace/github_c_makefile_star2_O2/ShonFrazier[P]lib6502/run6502.c
// Function: usage
static void usage(int status)
{
  FILE *stream= status ? stderr : stdout;
  fprintf(stream, VERSION"\n");
  fprintf(stream, "please send bug reports to: %s\n", PACKAGE_BUGREPORT);
  fprintf(stream, "\n");
  fprintf(stream, "usage: %s [option ...]\n", program);
  fprintf(stream, "       %s [option ...] -B [image ...]\n", program);
  fprintf(stream, "  -B                -- minimal Acorn 'BBC Model B' compatibility\n");
  fprintf(stream, "  -c                -- print total number of instructions and cycles to stderr\n");
  fprintf(stream, "  -d addr last      -- dump memory between addr and last\n");
  fprintf(stream, "  -G addr           -- emulate getchar(3) at addr\n");
  fprintf(stream, "  -h                -- help (print this message)\n");
  fprintf(stream, "  -I addr           -- set IRQ vector\n");
  fprintf(stream, "  -l addr file      -- load file at addr\n");
  fprintf(stream, "  -M addr           -- emulate memory-mapped stdio at addr\n");
  fprintf(stream, "  -N addr           -- set NMI vector\n");
  fprintf(stream, "  -P addr           -- emulate putchar(3) at addr\n");
  fprintf(stream, "  -R addr           -- set RST vector\n");
  fprintf(stream, "  -s addr last file -- save memory from addr to last in file\n");
  fprintf(stream, "  -v                -- print version number then exit\n");
  fprintf(stream, "  -X addr           -- terminate emulation if PC reaches addr\n");
  fprintf(stream, "  -x                -- exit wihout further ado\n");
  fprintf(stream, "  image             -- '-l 8000 image' in available ROM slot\n");
  fprintf(stream, "\n");
  fprintf(stream, "'last' can be an address (non-inclusive) or '+size' (in bytes)\n");
  exit(status);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
testl %edi, %edi
jne 0x3fcf
movq 0xc003(%rip), %rax      # 0xffd0
jmp 0x3fd6
movq 0xc022(%rip), %rax      # 0xfff8
movq (%rax), %r14
leaq 0x80f3(%rip), %rdi      # 0xc0d3
pushq $0x2c
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x8107(%rip), %rsi      # 0xc100
leaq 0x8120(%rip), %rdx      # 0xc120
movq %r14, %rdi
xorl %eax, %eax
callq 0x3120
pushq $0xa
popq %rbp
movl %ebp, %edi
movq %r14, %rsi
callq 0x30d0
movq 0xc1ca(%rip), %rdx      # 0x101e8
leaq 0x811d(%rip), %rsi      # 0xc142
movq %r14, %rdi
xorl %eax, %eax
callq 0x3120
movq 0xc1b2(%rip), %rdx      # 0x101e8
leaq 0x811d(%rip), %rsi      # 0xc15a
movq %r14, %rdi
xorl %eax, %eax
callq 0x3120
leaq 0x8133(%rip), %rdi      # 0xc181
pushq $0x41
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x8160(%rip), %rdi      # 0xc1c3
pushq $0x4f
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x819b(%rip), %rdi      # 0xc213
pushq $0x39
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x81c0(%rip), %rdi      # 0xc24d
pushq $0x32
popq %r12
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x81da(%rip), %rdi      # 0xc280
pushq $0x31
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x81f7(%rip), %rdi      # 0xc2b2
pushq $0x26
popq %r13
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x8205(%rip), %rdi      # 0xc2d9
pushq $0x29
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x821a(%rip), %rdi      # 0xc303
pushq $0x3b
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x8241(%rip), %rdi      # 0xc33f
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x8253(%rip), %rdi      # 0xc366
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x8271(%rip), %rdi      # 0xc399
movq %r13, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x8283(%rip), %rdi      # 0xc3c0
pushq $0x3d
popq %r12
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x82a8(%rip), %rdi      # 0xc3fe
pushq $0x36
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x82ca(%rip), %rdi      # 0xc435
pushq $0x3e
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x82f4(%rip), %rdi      # 0xc474
pushq $0x2f
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
leaq 0x830f(%rip), %rdi      # 0xc4a4
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
movl %ebp, %edi
movq %r14, %rsi
callq 0x30d0
leaq 0x832e(%rip), %rdi      # 0xc4e2
pushq $0x3f
popq %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x31c0
movl %ebx, %edi
callq 0x31b0