Rev 979 | Rev 1056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 979 | Rev 1055 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2007-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2007-2008. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 979 $ |
8 | $Revision: 1055 $ |
9 | 9 | ||
Line 10... | Line 10... | ||
10 | ; Virtual-8086 mode manager |
10 | ; Virtual-8086 mode manager |
Line 943... | Line 943... | ||
943 | mov cx, [eax*4] |
943 | mov cx, [eax*4] |
944 | mov word [esi-v86_regs.size+v86_regs.eip], cx |
944 | mov word [esi-v86_regs.size+v86_regs.eip], cx |
945 | mov cx, [eax*4+2] |
945 | mov cx, [eax*4+2] |
946 | mov word [esi-v86_regs.size+v86_regs.cs], cx |
946 | mov word [esi-v86_regs.size+v86_regs.cs], cx |
947 | and byte [esi-v86_regs.size+v86_regs.eflags+1], not 3 |
947 | and byte [esi-v86_regs.size+v86_regs.eflags+1], not 3 |
948 | push ebx |
948 | ; push ebx |
949 | call update_counters |
949 | call update_counters |
950 | pop ebx |
950 | ; pop ebx |
951 | sub ebx, SLOT_BASE |
951 | ; sub ebx, SLOT_BASE |
952 | shr ebx, 8 |
952 | ; shr ebx, 8 |
953 | mov esi, [CURRENT_TASK] |
953 | ; mov esi, [CURRENT_TASK] |
954 | call do_change_task |
954 | call do_change_task |
955 | popad |
955 | popad |
956 | iretd |
956 | iretd |