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

Function loadCharIntoKeycodeRegister

cmd/generator/common.go:405–411  ·  view source on GitHub ↗
(char rune)

Source from the content-addressed store, hash-verified

403}
404
405func loadCharIntoKeycodeRegister(char rune) []asm.Instruction {
406 return []asm.Instruction{
407 asm.DATA{asm.REG0, asm.SYMBOL{"KEYCODE-REGISTER"}},
408 asm.DATA{asm.REG1, asm.NUMBER{uint16(char)}},
409 asm.STORE{asm.REG0, asm.REG1},
410 }
411}
412
413func renderString(str string) []asm.Instruction {
414 instructions := asm.Instructions{}

Callers 1

renderStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected