diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-05-18 20:22:29 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-05-18 20:22:29 -0400 |
commit | 7df08205d41e77f93429af424904d4f8a44af658 (patch) | |
tree | 42f7f2c2959b1cdf9b8c041e2db89a3d7b15237e /console.asm | |
parent | 735d90fa9575666124f018ad64f08db7d7ff7c63 (diff) | |
download | minos-7df08205d41e77f93429af424904d4f8a44af658.tar.gz |
Add stack frame: console_scroll_up
Diffstat (limited to 'console.asm')
-rw-r--r-- | console.asm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/console.asm b/console.asm index 8b33231..5faf3a8 100644 --- a/console.asm +++ b/console.asm @@ -32,6 +32,8 @@ putc: console_scroll_up: + push bp + mov bp, sp pusha cmp dh, MAX_ROWS - 1 jne .no_action @@ -52,6 +54,8 @@ console_scroll_up: int 10h .no_action: popa + mov sp, bp + pop bp ret @@ -255,12 +259,14 @@ console_cursor_read_last: console_set_video_page: push bp mov bp, sp + pusha mov [video_page], dl mov ah, 05h mov al, [video_page] int 10h + popa pop bp ret |