Skip to content

Commit

Permalink
refactor: change folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoliveira21 committed Dec 23, 2023
1 parent 424a172 commit e36de72
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 0 deletions.
Binary file added cli/assets/beep.mp3
Binary file not shown.
Binary file added cli/assets/test_opcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions cli/cli.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package main

import (
"flag"
"log"
"os"

"github.com/gaoliveira21/chip8/core"
)

func main() {
rom := flag.String("rom", "", "ROM path")
flag.Parse()

romData, err := os.ReadFile(*rom)

if err != nil {
log.Fatal(err)
}

core.RunChip8(romData, *rom)
}
Binary file added cli/roms/IBM.ch8
Binary file not shown.
Binary file added cli/roms/PONG.ch8
Binary file not shown.
Binary file added cli/roms/test/delay_timer_test.ch8
Binary file not shown.
Binary file added cli/roms/test/random_number_test.ch8
Binary file not shown.
Binary file added cli/roms/test/test_opcode.ch8
Binary file not shown.

0 comments on commit e36de72

Please sign in to comment.