Initial commit for basics need a refresher.

This commit is contained in:
2026-04-16 07:34:21 +02:00
parent 67dc2470e0
commit 12c42d9563
5 changed files with 141 additions and 0 deletions

7
cmd/asm/main.go Normal file
View File

@@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("hi compiler")
}

26
cmd/sim/main.go Normal file
View File

@@ -0,0 +1,26 @@
package main
import (
"fmt"
"jh/gomos/internal/bus"
"jh/gomos/internal/cpu"
)
func main() {
fmt.Println("--- 6502 Simulator Starting ---")
// Initialize the Bus
b := bus.New()
// Initialize CPU and "plug in" the Bus
c := &cpu.CPU{Bus: b}
c.Reset()
// Run for 10 cycles to verify the "Fetch" works
for range 10 {
c.Step()
}
fmt.Println("--- Simulation Complete ---")
}