--- title: "Machine Code Bits" type: "article" slug: "machine-code-bits" url: "http://localhost/article/machine-code-bits/" markdown_url: "http://localhost/article/machine-code-bits.md" published_at: "2026-11-23T19:00:53+00:00" modified_at: "2026-11-23T19:00:53+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Brian Little has written the following machine code bits for the T/S 1000. As you write your programs, these bits can help you get results from the 1000. There will be more next month. INKEY$ (22 bytes) CD BB 02 CALL 02BB 7C LD A,H C6 02 ADD A,2 38 09 JR C 09 44…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Machine language programming" slug: "machine-language" taxonomy: "post_tag" url: "http://localhost/tag/machine-language/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Brian Little" slug: "brian-little" taxonomy: "indiv" url: "http://localhost/indiv/brian-little/" publication_r: id: 35941 title: "CATS Newsletter" type: "periodical" url: "http://localhost/periodical/cats-newsletter/" volume: "3" issue: "7" issues_articles: - id: 39606 title: "CATS v3 n7" type: "issue" url: "http://localhost/issue/cats-v3-n7/" pages: "12" pubdate: "October 1985" archive_link: false --- # Machine Code Bits [Brian Little](http://localhost/indiv/brian-little/) has written the following machine code bits for the T/S 1000. As you write your programs, these bits can help you get results from the 1000. There will be more next month. ### INKEY$ (22 bytes) ``` CD BB 02 CALL 02BB 7C LD A,H C6 02 ADD A,2 38 09 JR C 09 44 LD B,H 4D LD C,L CD BD 07 CALL 07BD 06 00 LD B,0 4E LD C,(HL) D8 RET C 01 00 00 LD BC,0000 C9 RET ``` ### SET CURSOR (7 bytes) ``` 01 cl rw LD BC, rw cl CD F5 0B CALL 0BF5 C9 RET ```