Jnz plstr Print next character if not zero Push h (CP/M syscalls clobber all registers) Push psw Save A and HL registers on the stack This subroutine prints a length-A string in HL. fall through - on small systems saving bytes is a virtue Mvi a,11 Filenames are 8+3 characters long and padded with If there are no filenames, they will be blank. line are filenames, and prepares two FCBs with the filenames ĜP/M also assumes that the first two words on the command Lda arglen Retrieve the length of the argument Puts: equę CP/M syscall to print $-terminated string Putch: equĒ CP/M syscall to print character :argv is a list containing all command line arguments, including the program name. 4.1 Alternative version using Matreshka.
0 Comments
Leave a Reply. |