* *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=* * * * FILE INPUT/OUTPUT LIBRARY * * * * AUTHOR: NATHAN RIGGS * * CONTACT: NATHAN.RIGGS@ * * OUTLOOK.COM * * * * VERSION: 0.1.2 * * DATE: 30-OCT-2018 * * ASSEMBLER: MERLIN 8 PRO * * * * LICENSE: APACHE 2.0, WHERE * * APPLICABLE. CODE INSPIRED * * BY THE WORKS OF OTHERS MAY * * FALL UNDER A DIFFERENT * * LICENSE (NOTED IN ROUTINE). * * * * * *------------------------------* * * * LIST OF ROUTINES * * * * BSAVE : SAVE BINARY FILE * * BLOAD : LOAD BINARY FILE * * TMODE : TEXT FILE OPS MODE * * CMD : EXEC DOS COMMAND * * TMODE : SET TEXT IO MODE * * FPRINT : PRINT TO FILE * * FPSTR : FILE PRINT STRING * * FINPUT : GET LINE FROM TEXTF * * * *=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-* * *``````````````````````````````* * BSAVE :: BINARY SAVE * *- -* * SIMPLY DOES A BINARY SAVE * * WITH THE COMMAND LINE PARAMS * * SPECIFIED IN THE STRING AT * * THE GIVEN ADDRESS. * *- -* * CLOBBERS: * * * * FLAGS: ????---- REG: AXYM * *- -* * CYCLES: ??? * * SIZE: * *- -* * USAGE: * * * * LDA #>SADDR ; STRING ADDR * * PHA * * LDA #SADDR ; STRING ADDR * * PHA * * LDA #STRLOC ; STRING LOC * * PHA * * LDA #IOB LDY #