Tiny BASIC is a dialect of the BASIC programming language, designed to fit into a small amount of memory. Please visit Tom Pittman's Tiny BASIC site for documentation. In particular, the User Manual describes installation. The Experimenter's Kit is also quite helpful.
At minimum, you will need to supply an input and an output routine. (See the User Manual for more information.) The output routine simply outputs the character in the accumulator. The input routine simply waits for a keypress and returns it in the accumulator. Note that input characters are not echoed. Furthermore, Tiny BASIC outputs many control characters (e.g. NUL, XON, XOFF). The input and output routines I use are:
TB_INPUT JSR INPUT
CMP #$0D
BEQ TBI1
JSR OUTPUT
TBI1 RTS
TB_OUTPUT PHA
AND #$7F
CMP #$0A
BEQ TBO1
CMP #$0D
BEQ TBO1
CMP #$20
BCC TBO2
CMP #$7F
BCS TBO2
TBO1 JSR OUTPUT
TBO2 PLA
RTS