diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-06-19 00:48:26 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-06-19 00:48:26 -0400 |
commit | 6f7f67b1b4d1d124822e29ae669f1e8107de8f1b (patch) | |
tree | d37889b49f8e7c4af554a01649c93fe3705dc6e8 /stdio.asm | |
parent | 74d39e30d2966c5f62f55a781d0428b0308fff82 (diff) | |
download | minos-6f7f67b1b4d1d124822e29ae669f1e8107de8f1b.tar.gz |
Implement TAB
Diffstat (limited to 'stdio.asm')
-rw-r--r-- | stdio.asm | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -218,6 +218,9 @@ printf: .parse_control: lodsb ; get next byte + cmp al, 't' ; TAB + je .do_TAB + cmp al, 'n' ; new line je .do_LF @@ -226,6 +229,11 @@ printf: jmp .do_default + .do_TAB: + mov ax, ASCII_TAB + call putc + jmp .main_string + .do_LF: mov ax, ASCII_CR ; home the line call putc |