mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 14:59:32 +02:00
* optimizations in SetActive200 and SetActive350
git-svn-id: trunk@41143 -
This commit is contained in:
parent
202c4f86c0
commit
7a15e4b0a2
@ -2244,25 +2244,19 @@ End;
|
||||
procedure SetActive200(page: word);
|
||||
{ four page support... }
|
||||
begin
|
||||
case page of
|
||||
0 : VideoOfs := 0;
|
||||
1 : VideoOfs := 16384;
|
||||
2 : VideoOfs := 32768;
|
||||
3 : VideoOfs := 49152;
|
||||
if (page >= 0) and (page <= 3) then
|
||||
VideoOfs := page shl 14
|
||||
else
|
||||
VideoOfs := 0;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure SetActive350(page: word);
|
||||
{ one page supPort... }
|
||||
begin
|
||||
case page of
|
||||
0 : VideoOfs := 0;
|
||||
1 : VideoOfs := 32768;
|
||||
if page = 1 then
|
||||
VideoOfs := 32768
|
||||
else
|
||||
VideoOfs := 0;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user