MCPcopy Create free account
hub / github.com/djhworld/simple-computer / String

Method String

cpu/cpu.go:545–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

543}
544
545func (c *CPU) String() string {
546 return fmt.Sprintf("STEPPER: %s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\nBUS1: %s\n%s\n%s\n",
547 c.stepper.String(),
548 c.iar.String(),
549 c.memory.AddressRegister.String(),
550 c.ir.String(),
551 c.acc.String(),
552 c.tmp.String(),
553 c.gpReg0.String(),
554 c.gpReg1.String(),
555 c.gpReg2.String(),
556 c.gpReg3.String(),
557 c.busOne.String(),
558 c.flags.String(),
559 c.alu.String(),
560 )
561}
562
563func (c *CPU) step(clockState bool) {
564 c.stepper.Update(clockState)

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected