(char rune)
| 403 | } |
| 404 | |
| 405 | func 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 | |
| 413 | func renderString(str string) []asm.Instruction { |
| 414 | instructions := asm.Instructions{} |