I

Whenthe IBM-PCBASICinterpretersendshex codeOD(carnage return) it adds an extra hex OA(line feed). Hex code 1A (end-of-fde)also gets special treatment:the interpreterdoes not send it at all. This can cause problemsthat generategraphicsor downloadcharacterdata, but there is a solution.Try changingline 20 in the precedingprogram and adding the codingshownbelow.

Codingfor IBM-PCwith monochromedisplay:

20 GOSUB 100

100 O=INP (&H379 ) : IF 0<128 THEN 100

110OUT &H378, I : OUT &H37A, 5 :OUT&H37A, 4

120RETURN

Codingfor IBM-PCwith color adapter:

20 GOSUB 100

-100 O=INP (&H3BD) : IF 0<128 THEN 100

110 OUT &H3BC, I : OUT &H3BE, 5 :OUT&H3BE, 4 120 RETURN

25

Page 34
Image 34
Star Micronics LC-15 user manual Return