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

Method String

components/components.go:585–597  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583}
584
585func (b *BusOne) String() string {
586 var output uint16
587 var x int = 0
588 for i := arch.BUS_WIDTH - 1; i >= 0; i-- {
589 if b.outputs[i].Get() {
590 output = output | (1 << uint16(x))
591 } else {
592 output = output & ^(1 << uint16(x))
593 }
594 x++
595 }
596 return utils.ValueToString(output)
597}

Callers

nothing calls this directly

Calls 2

ValueToStringFunction · 0.92
GetMethod · 0.45

Tested by

no test coverage detected