Fix the new "UI" directive
authorSebastian Herbszt <herbszt@gmx.de>
Sun, 14 Dec 2008 17:35:07 +0000 (18:35 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 14 Dec 2008 21:55:14 +0000 (13:55 -0800)
The new directive doesn't seem to work here. Looks like DefaultLevel is never
changed:

core/parseconfig.inc:pc_default:        cmp ax,[DefaultLevel]
core/parseconfig.inc:DefaultLevel       dw 0                    ; The current level of default
core/ui.inc:            cmp word [DefaultLevel],1       ; Active UI statement?

core/parseconfig.inc

index 2fb26fd..fcf18d9 100644 (file)
@@ -22,6 +22,7 @@
 ;
 pc_default:    cmp ax,[DefaultLevel]
                jb .skip
+               mov [DefaultLevel],ax
                mov di,default_cmd
                call getline
                mov byte [di-1],0               ; null-terminate