bench516e1cd95
rename crate and binary to bench51
+15 −13
5 files changed
- M Cargo.lock +9 −9
- M Cargo.toml +1 −1
- M README.md +3 −1
- M src/ui/app.rs +1 −1
- M src/ui/draw.rs +1 −1
| @@ -103,6 +103,15 @@ version = "0.22.1" | |||
| 103 | 103 | source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 104 | 104 | checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" | |
| 105 | 105 | ||
| 106 | + | [[package]] | |
| 107 | + | name = "bench51" | |
| 108 | + | version = "0.1.0" | |
| 109 | + | dependencies = [ | |
| 110 | + | "clap", | |
| 111 | + | "ratatui", | |
| 112 | + | "ratatui-textarea", | |
| 113 | + | ] | |
| 114 | + | ||
| 106 | 115 | [[package]] | |
| 107 | 116 | name = "bit-set" | |
| 108 | 117 | version = "0.5.3" | |
| @@ -568,15 +577,6 @@ version = "0.4.3" | |||
| 568 | 577 | source = "registry+https://github.com/rust-lang/crates.io-index" | |
| 569 | 578 | checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" | |
| 570 | 579 | ||
| 571 | − | [[package]] | |
| 572 | − | name = "i8051" | |
| 573 | − | version = "0.1.0" | |
| 574 | − | dependencies = [ | |
| 575 | − | "clap", | |
| 576 | − | "ratatui", | |
| 577 | − | "ratatui-textarea", | |
| 578 | − | ] | |
| 579 | − | ||
| 580 | 580 | [[package]] | |
| 581 | 581 | name = "ident_case" | |
| 582 | 582 | version = "1.0.1" | |
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | [package] | |
| 2 | − | name = "i8051" | |
| 2 | + | name = "bench51" | |
| 3 | 3 | version = "0.1.0" | |
| 4 | 4 | edition = "2024" | |
| 5 | 5 | description = "A TUI Intel 8051 assembler, simulator and debugger" | |
| @@ -1,4 +1,4 @@ | |||
| 1 | − | # i8051 — a TUI 8051 assembler, simulator & debugger | |
| 1 | + | # bench51 — a TUI 8051 assembler, simulator & debugger | |
| 2 | 2 | ||
| 3 | 3 | A small, Keil µVision-style IDE for the Intel 8051 that runs in your terminal. | |
| 4 | 4 | Write assembly in the built-in editor, assemble it, inspect the listing and | |
| @@ -37,6 +37,8 @@ cycle-exact replacement for a vendor simulator. | |||
| 37 | 37 | ## Usage | |
| 38 | 38 | ||
| 39 | 39 | ```bash | |
| 40 | + | cargo install --path . # installs the `bench51` binary | |
| 41 | + | ||
| 40 | 42 | cargo run --release -- examples/serial_hello.asm # open in the TUI | |
| 41 | 43 | cargo run --release # start with a template | |
| 42 | 44 | cargo run --release -- firmware.hex # disassemble & debug a HEX file | |
| @@ -264,7 +264,7 @@ impl App { | |||
| 264 | 264 | (p, false) | |
| 265 | 265 | } | |
| 266 | 266 | None => { | |
| 267 | − | let p = std::env::temp_dir().join(format!("i8051-{}.asm", std::process::id())); | |
| 267 | + | let p = std::env::temp_dir().join(format!("bench51-{}.asm", std::process::id())); | |
| 268 | 268 | if let Err(e) = std::fs::write(&p, self.text() + "\n") { | |
| 269 | 269 | self.status = format!("cannot write {}: {e}", p.display()); | |
| 270 | 270 | return; | |
| @@ -90,7 +90,7 @@ fn draw_header(f: &mut Frame, app: &App, area: Rect) { | |||
| 90 | 90 | ) | |
| 91 | 91 | }; | |
| 92 | 92 | let mut spans = vec![ | |
| 93 | − | Span::styled(" i8051 ", Style::new().bg(ACCENT).fg(Color::Black).bold()), | |
| 93 | + | Span::styled(" bench51 ", Style::new().bg(ACCENT).fg(Color::Black).bold()), | |
| 94 | 94 | Span::raw(" "), | |
| 95 | 95 | Span::styled(mode, mode_style), | |
| 96 | 96 | Span::styled(state, state_style), | |