diff options
author | hpa <hpa> | 2004-01-29 06:54:51 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-01-29 06:54:51 +0000 |
commit | 5714b25131eaab8a1358c8153e654e6312509327 (patch) | |
tree | 7e3b2164baf5906ed5a02e203f92ef7fb1e80109 /pxelinux.asm | |
parent | 9b92f1a610e2d216bdb1779ba1e6365da452eaf2 (diff) | |
download | syslinux-5714b25131eaab8a1358c8153e654e6312509327.tar.gz |
Handle video pages correctly.syslinux-2.09-pre1
Diffstat (limited to 'pxelinux.asm')
-rw-r--r-- | pxelinux.asm | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pxelinux.asm b/pxelinux.asm index 03864b57..edc081d9 100644 --- a/pxelinux.asm +++ b/pxelinux.asm @@ -8,7 +8,7 @@ ; network booting API. It is based on the SYSLINUX boot loader for ; MS-DOS floppies. ; -; Copyright (C) 1994-2003 H. Peter Anvin +; Copyright (C) 1994-2004 H. Peter Anvin ; ; This program is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by @@ -275,9 +275,6 @@ LocalBootType resw 1 ; Local boot return code RealBaseMem resw 1 ; Amount of DOS memory after freeing APIVer resw 1 ; PXE API version found IdleTimer resw 1 ; Time to check for ARP? -TextAttrBX equ $ -TextAttribute resb 1 ; Text attribute for message file -TextPage resb 1 ; Active display page CursorDX equ $ CursorCol resb 1 ; Cursor column for message file CursorRow resb 1 ; Cursor row for message file @@ -289,6 +286,7 @@ FlowControl equ $ FlowOutput resb 1 ; Outputs to assert for serial flow FlowInput resb 1 ; Input bits for serial flow FlowIgnore resb 1 ; Ignore input unless these bits set +TextAttribute resb 1 ; Text attribute for message file RetryCount resb 1 ; Used for disk access retries KbdFlags resb 1 ; Check for keyboard escapes LoadFlags resb 1 ; Loadflags from kernel @@ -1508,7 +1506,7 @@ writechr: call write_serial ; write to serial port if needed pushfd pushad - mov bh,[TextPage] + mov bh,[BIOS_page] push ax mov ah,03h ; Read cursor position int 10h @@ -1520,7 +1518,7 @@ writechr: cmp al,10 je .lf push dx - mov bh,[TextPage] + mov bh,[BIOS_page] mov bl,07h ; White on black mov cx,1 ; One only mov ah,09h ; Write char and attribute @@ -1533,7 +1531,7 @@ writechr: .lf: inc dh cmp dh,[VidRows] ja .scroll -.curxyok: mov bh,[TextPage] +.curxyok: mov bh,[BIOS_page] mov ah,02h ; Set cursor position int 10h .ret: popad @@ -1541,7 +1539,7 @@ writechr: pop ds ret .scroll: dec dh - mov bh,[TextPage] + mov bh,[BIOS_page] mov ah,02h int 10h mov ax,0601h ; Scroll up one line |