-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
28 lines (24 loc) · 896 Bytes
/
main.c
File metadata and controls
28 lines (24 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#define C_RESET "\x1b[0m"
#define C_DIM "\x1b[2m"
#define C_GREEN "\x1b[32m"
#define C_CYAN "\x1b[36m"
#define C_YELLOW "\x1b[33m"
#define C_MAGENTA "\x1b[35m"
static void print_header(void)
{
printf(C_CYAN "== ILoveBits 6502 Toolkit ==\n" C_RESET);
printf(C_DIM "Status: " C_RESET C_YELLOW "Under Development" C_RESET "\n");
printf("Available tools: " C_GREEN "disassembler (dis6502)" C_RESET "\n");
printf("More coming soon: assembler, emulator, debugger...\n\n");
}
int main(void)
{
print_header();
printf("Welcome to ILoveBits 6502 toolkit.\n");
printf("Main CLI is minimal for now, check " C_GREEN "/tools" C_RESET " for the disassembler.\n\n");
printf(C_DIM "Tip: run " C_RESET C_YELLOW "dis6502 <bin> [load hex] [start hex] [count]" C_RESET C_DIM " to disassemble.\n" C_RESET);
return 0;
}