Skip to content

Commit

Permalink
Improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed Oct 24, 2021
1 parent e3f69e2 commit 66e5107
Showing 1 changed file with 89 additions and 4 deletions.
93 changes: 89 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ponyo

Ponyo is a CPU simulator currently supporting (some of) LEGv8.
Ponyo is a (work-in-progress) CPU simulator currently supporting (some of) LEGv8.

## Simulator

Expand All @@ -13,14 +13,17 @@ Ponyo is a CPU simulator currently supporting (some of) LEGv8.

### CLI

CLI for interacting with simulator.
CLI for interacting with simulator. If no data memory is provided,
a default of 256 bytes of zeros will be created.

```
$ ./LEGv8/sim.py -f assembly_code.asm -d data_mem.hex
$ ./ponyo/sim.py -f assembly_code.asm -d data_mem.hex
```

### TUI

TODO/CONCEPT

Optional TUI for interacting with simulator. Has a handful of components.

- Code pane
Expand All @@ -39,4 +42,86 @@ Optional TUI for interacting with simulator. Has a handful of components.

### Library

The simulator can also be integrated into another Python program as a library.
TODO/CONCEPT

The simulator can also be integrated into another Python program as a library.

## Supported Architectures

### LEGv8 Harvard

26/57 supported

- [x] ADD
- [x] ADDI
- [x] ADDS
- [x] ADDIS

- [x] AND
- [x] ANDI
- [x] ANDS
- [x] ANDIS

- [x] B
- [ ] B.COND
- [ ] BL
- [ ] BR
- [x] CBNZ
- [x] CBZ

- [x] EOR
- [x] EORI

- [x] LDUR
- [ ] LDURB
- [ ] LDURH
- [ ] LDURSW
- [ ] LDXR

- [x] LSL
- [x] LSR

- [ ] MOVK
- [ ] MOVZ

- [x] ORR
- [x] ORRI

- [x] STUR
- [ ] STURB
- [ ] STURH
- [ ] STURSW
- [ ] STXR

- [x] SUB
- [x] SUBI
- [x] SUBS
- [x] SUBIS

- [ ] FADDS
- [ ] FADDD
- [ ] FCMPS
- [ ] FCMPD
- [ ] FDIVS
- [ ] FDIVD
- [ ] FMULS
- [ ] FMULD
- [ ] FSUBS
- [ ] FSUBD

- [ ] LDURS
- [ ] LDURD
- [ ] MUL
- [ ] SDIV
- [ ] SMULH
- [ ] UDIV
- [ ] UMULH

- [x] CMP
- [x] CMPI
- [ ] LDA
- [x] MOV

### RISC-V

TODO

0 comments on commit 66e5107

Please sign in to comment.