Microtan technical reference

Monitor subroutines

TANBUG routines available to user programs.

AddressSubroutine and purpose
FDFA POLLKBWaits for the user to press a key, then returns.The ASCII code is stored at address 0001.
FE73 OUTPCROutputs a carriage return to the display.
FE75 OPCHROutputs the character in the accumulator to the display.
FF0B HEXPNTOutputs the accumulator as a pair of hexadecimal digits.
FF28 HEXPCKReads hexadecimal characters from the current cursor line and converts them into two 8-bit values stored at 0013 and 0014.Set IY to the offset of the first character, where zero is the start of the line.Conversion stops at a non-hexadecimal character.On exit, Z is clear if the terminating character was the cursor, and V is set if one or more characters were converted.

Previous: character sets ยท Next: monitor commands