Commit b1f13ae 1 parent 79c76b6 commit b1f13ae Copy full SHA for b1f13ae
File tree 3 files changed +25
-3
lines changed
3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Fateful
2
2
![ GitHub Workflow Status (with event)] ( https://img.shields.io/github/actions/workflow/status/commonkestrel/fateful/rust.yml )
3
3
4
- Fateful is a CLI tool for working with my custom CPU, F8ful.
5
- Very much a work in progress.
4
+ Fateful is a CLI tool foring with my custom CPU, F8ful.
5
+ It contains an emulator and an assembler.
6
+ Fateful can be installed through [ cargo] ( https://github.com/rust-lang/cargo ) via ` cargo install --git https://github.com/commonkestrel/fateful ` .
6
7
7
- # Peripherals
8
+ ## Assembler
8
9
10
+ The assembler can be used with the ` fateful asm ` or ` fateful assemble ` command to assembler f8ful assembly into f8ful machine code.
11
+ The input and output are both optional, and default to ` stdin ` and ` stdout ` respectively.
12
+
13
+ ### Instructions
14
+
15
+ There are sixteen instructions in f8ful assembly.
16
+
17
+ ## Emulator
18
+
19
+ ## Tests
20
+
21
+ ## Peripherals
9
22
Peripherals are a way to extend the emulator,
10
23
simulating a memory-mapped peripheral.
11
24
This is through the use of dynamic library loading,
Original file line number Diff line number Diff line change 1
1
/// calculates the 8th fibonacci number and leaves the result in register D
2
+ ///
3
+ /// a: 0x0D
4
+ /// b: 0x15
5
+ /// c: 0x00
6
+ /// d: 0x15
2
7
3
8
@org 0x0000
4
9
@define COUNT 7
Original file line number Diff line number Diff line change 320
320
}
321
321
322
322
@macro use(%label:ident|label) {}
323
+
324
+ @macro shl (%r:reg) {
325
+ add %r , %r
326
+ }
You can’t perform that action at this time.
0 commit comments