add examples
This commit is contained in:
parent
49e6897d79
commit
2fb5bbaa8d
|
|
@ -1,6 +1,6 @@
|
|||
# 8-Bit CPU Emulator
|
||||
|
||||
## Added instructions
|
||||
## Supported Instructions
|
||||
1. MOV
|
||||
2. ADD
|
||||
3. SUB
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
# Usage
|
||||
```bash
|
||||
cargo run -- --f <filename.asc>
|
||||
cargo run -- --f <examples/filename.asc>
|
||||
```
|
||||
|
||||
## Todo
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
mov a, 10
|
||||
mov b, 5
|
||||
add a, b
|
||||
hlt
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
mov a, 15
|
||||
mov b, 15
|
||||
sub a, b
|
||||
hlt
|
||||
10
program.asm
10
program.asm
|
|
@ -1,10 +0,0 @@
|
|||
; add
|
||||
mov a, 10
|
||||
mov b, 5
|
||||
add a, b
|
||||
|
||||
; sub
|
||||
mov a, 15
|
||||
mov b, 15
|
||||
sub a, b
|
||||
hlt
|
||||
Loading…
Reference in New Issue