Okay,
So I've written my OS out of nasm, Casnix OS/I (casnix.sourceforge.net). Now I'm writing Casnix OS/II, and I'm stuck on a problem with the CLI portion of the kernel.
I want to be able to pass command line arguments to a program. I was thinking of moving the command line arguments into al, and have the program (cat in this case) pull al.
Example:
; =========================
; Casnix OS/II
; =========================
CLI call:
mov al, cmd_line
call os_load_file
CAT call:
mov bx, al
; rest of code here
Would this work? Has anyone else done something like this?