For a hobby project I'm porting the Standard C Library to the Digital Research CP/M.
Inside CRT0.S (this is the code that runs before your main()
C function is called) I have no trouble parsing the tail of the command line arguments from the lower memory, but I'm unable to get the running program name i.e. if I type
memdump 0xfc00 100
I'd like to obtain memdump or memdump.com from CP/M in a nice way so that I can set my args to (pseudo code) correctly
argv[0] = "memdump.com";
argv[1] = "0xfc00";
argv[2] = "100";