fix overlong labels
This commit is contained in:
@@ -50,17 +50,17 @@ GETJCL: PUSH P,A ;Save the register A.
|
||||
|
||||
;Subroutine to convert an ASCII string into SIXBIT. Takes a byte
|
||||
;pointer in A and B, where A is the source and B is the destination.
|
||||
TOSIXBT:PUSH P,D ;Store the contents of register D.
|
||||
TOSIXBL:ILDB D,A ;Load the next character from A.
|
||||
JUMPE D,TOSIXEN ;Exit the loop, if charachter is null.
|
||||
TOSIXB: PUSH P,D ;Store the contents of register D.
|
||||
TOSLP: ILDB D,A ;Load the next character from A.
|
||||
JUMPE D,TOSEN ;Exit the loop, if charachter is null.
|
||||
CAIN D,40 ;If the character is a whitespace,
|
||||
JUMPA TOSIXEN ;exit the loop.
|
||||
JUMPA TOSEN ;exit the loop.
|
||||
CAIL D,140 ;If the character is > 96,
|
||||
SUBI D,40 ;then cut it down, so it's in range.
|
||||
SUBI D,40 ;Convert 32..95 to 0..63
|
||||
IDBP D,B ;Deposit the character in the destination.
|
||||
JRST TOSIXBL ;Repeat with next character.
|
||||
TOSIXEN:POP P,D ;Restore the D register.
|
||||
IDPB D,B ;Deposit the character in the destination.
|
||||
JRST TOSLP ;Repeat with next character.
|
||||
TOSEN: POP P,D ;Restore the D register.
|
||||
POPJ P, ;Return from function.
|
||||
|
||||
;Subroutine to print a string of text on the output.
|
||||
|
||||
Reference in New Issue
Block a user