Miscellaneous Routines -- Introduction BDOS and BIOS Routines Capitalization Routines Convert ASCII to Hexadecimal End of Code Exchange Nybbles Memory Fill Routines Memory Move Routines Delay Routine Version Number of SYSLIB :Miscellaneouó Routineó -- Introduction Thió  sectioî  oæ  thå  Helð Filå  describeó  thå  followinç Miscellaneous Routines -- BDOS For Direct BDOS Interface BIOS For Direct BIOS Interface CAPS For Character Capitalization CAPSTR For String Capitalization CATH Convert ASCII Character to Hexadecimal CODEND Provide End of Code/Data Area EN Exchange Nybbles in A FILLB Fill Memory (up to 255 bytes) FILLBC Fill Memory (up to 65,535 bytes) HFILB Fill Memory (up to 255 bytes) HFILBC Fill Memory (up to 65,535 bytes) MOVEB Move Memory (up to 255 bytes) MOVEBC Move Memory (up to 65,535 bytes) HMOVB Move Memory (up to 255 bytes) HMOVBC Move Memory (up to 65,535 bytes) PAUSE Delay N 10th of a Second VERSION Return Version Number of SYSLIB :BDOS and BIOS Routines Routine Name: BDOS Functionº Calì  CP/Í  Entrù  Poinô  aô locatioî  µ  anä  preservå Registeró DE anä BC. Inputs: C and DE provide input parameters Outputs: A and HL provide output parameters Registers Affected: PSW, HL SYSLIB Routines Called: -None- Special Error Conditions: -Determined by Routines Called- Routine Name: BIOS Functionº BIOÓ provideó thå useò witè á direcô interfacå intï thå CP/Í  BIOS®  Iô  ió calleä witè thå Á Reç containinç  thå  indeø offseô  intï thå BIOÓ JMÐ table®  Nï registeró arå preserveä  bù thió routine®  Thå contentó oæ HL¬  DE¬ anä BÃ arå passeä tï thå BIOS unchanged. The following table summarizes the BIOS JMP Table Entries -- Offset Function 0 Cold Start 1 Warm Start 2 Console Status; Returns A=0FFH if char ready, A=0 if not 3 Console Input; Returns char in A 4 Console Output; Char passed in C 5 List Output; Char passed in C 6 Punch Output; Char passed in C 7 Reader Input; Returns char in A BIOS, Con't Offset Function 8 Home Disk Head (Return Version Number); Returns Version Number in HL 9 Select Disk; Disk Number (A=0, etc) passed in C 10 Set Track Number; Track Number passed in C 11 Set Sector Number; Sector Number passed in C 12 Set DMA Address; DMA Address passed in BC 13 Read Block from Disk; Returns A=0 if OK, A=1 if Error 14 Write Block to Disk; Returns A=0 if OK, A=1 if Error 15 List Status; Returns A=0FFH if ready to output, A=0 if not 16 Sector Translation; Logical-to-Physical Sector Translation; Logical Sector Number passed in BC and Translate Table Address passed in DE; Returns Physical Sector Number in HL BIOS, Con't Inputs: A = Offset (as per Table Above) BC = Input Parameters Outputs: A, HL = Output Parameters Registers Affected: All SYSLIB Routines Called: -None- Special Error Conditions: -None- :Capitalization Routines Routine Name: CAPS Functionº Capitalizå  ASCIÉ  characteò  iî Registeò Á  iæ  iô  ió lower-caså  alphabetiã  (a-z)»  otherwise¬  returî Á  unaffected® Onlù  thå loweò seveî bitó oæ thå bytå arå  considered¬  anä  thå Mosô Significanô Biô ió maskeä ouô tï zero. Inputs: A = character to capitalize Outputs: A = capitalized character Registers Affected: PSW SYSLIB Routins Called: -None- Special Error Conditions: -None- Routine Name: CAPSTR Function: CAPSTÒ capitalizeó thå -terminateä strinç pointeä to by HL. No Registers are affected. Inputs: HL pts to first byte of string Outputs: None (String is Capitalized) Registers Affected: None SYSLIB Routines Called: CAPS Special Error Conditions: None :Convert ASCII to Hexadecimal Routine Name: CATH Functionº Converô  thå  ASCIÉ  Hexadecimaì  characteò  iî  thå  Á Registeò tï binarù iî thå Á Register®  Iæ invaliä characteò (noô 0-9¬ A-F)¬ returî