DOS assembly: combination of MOV AH, 09h and INT 21h doesn't print anything
I'm writing a DOS commandline arguments parser on TASM assembly language. Here's my code: .model tiny .386 .code org 100h start: mov ax, ax mov bp, 80h mov si, 81h mov ch, 0 mov cl, ds:[bp] push 0 cmp cx, 0 je FINISH CYCLE_BEGIN: lodsb cmp al, 2Fh je SLASH cmp al, 31h je ONE cmp al, 32h je TWO cmp al, 33h je THREE cmp al, 68h je HELP cmp al, 20h je SPACE mov bx, 6 jmp CHANGE_STATE SLASH: mov bx, 0 jmp CHANGE_STATE ONE: mov bx, 1 jmp CHANGE_STATE TWO: mov bx, 2 jmp CHANGE_STATE THREE: mov bx, 3 jmp CHANGE_STATE HELP: mov bx, 4 jmp CHANGE_STATE SPACE: mov bx, 5 CHANGE_STATE: mov ax, 7 mul dx add
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.