3 ms·
AH = 0? I only recall AH = 4C? That would exit the program with AL being the exit value. I'm not aware of AH = 0? Sadly, I used to write these kinds of progra
by shric 4y ago
AH = 0? I only recall AH = 4C?
That would exit the program with AL being the exit value. I'm not aware of AH = 0?
Sadly, I used to write these kinds of programs with a hex editor, so "B4 4C CD 21" is etched into my brain even though "CD 20" was shorter.
- ataylor284_ 4y ago4C is correct. My INT 21 function codes memory is a bit fuzzy.
- bonzini 4y agoAH=4C is new in MSDOS 2.0, AH=0 dates back to CP/M (the low DOS calls are compatible with CP/M, hence the use of FCBs for example) and always sets the exit status to 0.