Machine Code Bits

See all articles from CATS v3 n7
Publication: CATS Newsletter
Pub Details: CATS v3 n7 (Volume 3, Issue 7)
Date: October 1985
Pages: 12

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

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.