Skip to content

Commit

Permalink
Our banner shows the version string of our binary
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed May 21, 2024
1 parent da0688c commit a3e3c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cpm/cpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,6 @@ func (cpm *CPM) fixupRAM() {
// and executed at a higher address than the default of 0x0100.
func (cpm *CPM) LoadCCP(name string) error {

fmt.Printf("\n%c[2J%c[Hcpmulator loaded %s\n", 27, 27, name)

// Create 64K of memory, full of NOPs
if cpm.Memory == nil {
cpm.Memory = new(memory.Memory)
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ func main() {
// just jump back to the entry-point for that.
//
for {
fmt.Printf("\n%c[2J%c[Hcpmulator %s loaded CCP %s\n", 27, 27, version, *ccp)

// Load the CCP binary - reseting RAM
err := obj.LoadCCP(*ccp)
if err != nil {
Expand Down

0 comments on commit a3e3c1f

Please sign in to comment.