Skip to content

Commit 1b0b299

Browse files
fixed bug
1 parent 0664627 commit 1b0b299

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
Softsquirrels really cool and super-duper efficient CHIP-8 implentation for Windows.
33

44
## Usage
5-
1. Download.
6-
2. Run `.\sschip8 <PATH TO .ch8 FILE>` in cmd
5+
1. [Download](https://github.com/Squirrelcoding/sschip8/releases/).
6+
2. Run `.\sschip8 <PATH TO .ch8 FILE>` in cmd or Powershell
7+
8+
## v1.0.1
9+
- fixed a bug.
710

811
### Differences between other implementations
912
- There ~~may~~ will be a lot of bugs

src/lib/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl CPU {
1414

1515
#[cfg(not(feature = "show_commands"))]
1616
pub fn update(&mut self) {
17-
print!("{esc}[2J{esc}[1;1H", esc = 27 as char);
17+
print!("\x1B[2J\x1B[1;1H");
1818
for (i, item) in self.buf.iter_mut().enumerate() {
1919
if i != 0 && (i - 1) % (WIDTH as usize) == 0 {
2020
println!();

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ fn main() {
1818
let mut cpu = lib::cpu::CPU::new_with_memory(&bytes);
1919

2020
cpu.run();
21-
}
21+
}

0 commit comments

Comments
 (0)