* removed warnings

This commit is contained in:
Jonas Maebe 2000-09-29 21:49:41 +00:00
parent 2a74104ce4
commit 2a6e63f2dd
5 changed files with 87 additions and 67 deletions

View File

@ -248,11 +248,14 @@ begin
int $0x10 int $0x10
movl y,%eax movl y,%eax
movl x,%ebx movl x,%ebx
movb %dh,(%eax) movzbl %dh,%edi
movb %dl,(%ebx) andw $255,%dx
movw %di,(%eax)
movw %dx,(%ebx)
end; end;
end; end;
{$asmmode intel}
procedure setcursor(y,x:word); procedure setcursor(y,x:word);
{Set the cursor position.} {Set the cursor position.}
@ -262,11 +265,11 @@ begin
viosetcurpos(y,x,0) viosetcurpos(y,x,0)
else else
asm asm
movb $2,%ah mov ah, 2
movb $0,%bh mov bl, 0
movb y,%dh mov dh, byte ptr y
movb x,%dl mov dl, byte ptr x
int $0x10 int 010h
end; end;
end; end;
@ -277,15 +280,15 @@ begin
vioscrollup(top,left,bottom,right,lines,screl,0) vioscrollup(top,left,bottom,right,lines,screl,0)
else else
asm asm
movb $6,%ah mov ah, 6
movb lines,%al mov al, byte ptr lines
movl screl,%edi mov edi, screl
movb 1(%edi),%bh mov bl, byte ptr [edi+1]
movb top,%ch mov ch, byte ptr top
movb left,%cl mov cl, byte ptr left
movb bottom,%dh mov dh, byte ptr bottom
movb right,%dl mov dl, byte ptr right
int $0x10 int 010h
end; end;
end; end;
@ -296,18 +299,20 @@ begin
vioscrolldn(top,left,bottom,right,lines,screl,0) vioscrolldn(top,left,bottom,right,lines,screl,0)
else else
asm asm
movb $7,%ah mov ah, 7
movb lines,%al mov al, byte ptr lines
movl screl,%edi mov edi, screl
movb 1(%edi),%bh mov bh, byte ptr [edi+1]
movb top,%ch mov ch, byte ptr top
movb left,%cl mov cl, byte ptr left
movb bottom,%dh mov dh, byte ptr bottom
movb right,%dl mov dl, byte ptr right
int $0x10 int 010h
end; end;
end; end;
{$asmmode att}
function keypressed:boolean; function keypressed:boolean;
{Checks if a key is pressed.} {Checks if a key is pressed.}
@ -607,19 +612,21 @@ begin
if os_mode=osOS2 then if os_mode=osOS2 then
viowrtcharstratt(ca,n,y,x,textattr,0) viowrtcharstratt(ca,n,y,x,textattr,0)
else else
{$asmmode intel}
asm asm
movw $0x1300,%ax mov ax, 01300h
movb $0,%bh mov bh, 0
movb TEXTATTR,%bl mov bl, TEXTATTR
{ movb U_CRT_TEXTATTR,%bl } { mov bl, U_CRT_TEXTATTR }
movb y,%dh mov dh, byte ptr y
movb x,%dl mov dl, byte ptr x
movw n,%cx mov cx, n
pushl %ebp push ebp
movl ca,%ebp mov ebp, ca
int $0x10 int 010h
popl %ebp pop ebp
end; end;
{$asmmode att}
x:=x+n; x:=x+n;
end; end;
end; end;

View File

@ -555,6 +555,8 @@ begin
end; end;
end; end;
{$asmmode intel}
procedure SetDate (Year, Month, Day: word); procedure SetDate (Year, Month, Day: word);
var DT: TDateTime; var DT: TDateTime;
begin begin
@ -568,18 +570,16 @@ begin
end end
else else
asm asm
movw Year, %cx mov cx, Year
movb Month, %dh mov dh, byte ptr Month
movb Day, %dl mov dl, byte ptr Day
movb $0x2b, %ah mov ah, $2b
call syscall call syscall
(* SetDate isn't supposed to change DosError!!!
xorb %ah,%ah
movw %ax,doserror
*)
end; end;
end; end;
{$asmmode att}
procedure GetTime (var Hour, Minute, Second, Sec100: word); assembler; procedure GetTime (var Hour, Minute, Second, Sec100: word); assembler;
asm asm
movb $0x2c, %ah movb $0x2c, %ah
@ -599,6 +599,7 @@ asm
stosw stosw
end; end;
{$asmmode intel}
procedure SetTime (Hour, Minute, Second, Sec100: word); procedure SetTime (Hour, Minute, Second, Sec100: word);
var DT: TDateTime; var DT: TDateTime;
begin begin
@ -613,19 +614,17 @@ begin
end end
else else
asm asm
movb Hour, %ch mov ch, byte ptr Hour
movb Minute ,%cl mov cl, byte ptr Minute
movb Second, %dh mov dh, byte ptr Second
movb Sec100, %dl mov dl, byte ptr Sec100
movb $0x2d, %ah mov ah, $2d
call syscall call syscall
(* SetTime isn't supposed to change DosError!!!
xorb %ah, %ah
movw %ax, DosError
*)
end; end;
end; end;
{$asmmode att}
procedure getcbreak(var breakvalue:boolean); procedure getcbreak(var breakvalue:boolean);
begin begin
@ -1123,7 +1122,10 @@ end;
end. end.
{ {
$Log$ $Log$
Revision 1.2 2000-07-14 10:33:10 michael Revision 1.3 2000-09-29 21:49:41 jonas
* removed warnings
Revision 1.2 2000/07/14 10:33:10 michael
+ Conditionals fixed + Conditionals fixed
Revision 1.1 2000/07/13 06:31:04 michael Revision 1.1 2000/07/13 06:31:04 michael

View File

@ -54,8 +54,8 @@ begin
xorl %eax, %eax xorl %eax, %eax
movw %ax, DosStreamError movw %ax, DosStreamError
movl FileName, %edx movl FileName, %edx
movw $0x7f0b, %eax movl $0x7f0b, %eax
movw AMode, %ecx movl AMode, %ecx
call syscall call syscall
cmpl $0xffffffff, %eax cmpl $0xffffffff, %eax
jnz .Lexit1 jnz .Lexit1
@ -132,12 +132,12 @@ end;
function SetFileSize (Handle: THandle; FileSize: longint): word; assembler; function SetFileSize (Handle: THandle; FileSize: longint): word; assembler;
asm asm
movl $0x7F18, %eax movl $0x7F18, %eax
movl Handle, %ebx movzwl Handle, %ebx
movl FileSize,%edx movl FileSize,%edx
call syscall call syscall
jc .LSetFSize1 jc .LSetFSize1
movl $0x4202, %eax movl $0x4202, %eax
movl Handle, %ebx movzwl Handle, %ebx
movl $0, %edx movl $0, %edx
call syscall call syscall
movl $0, %eax movl $0, %eax
@ -148,7 +148,10 @@ end;
{ {
$Log$ $Log$
Revision 1.2 2000-07-13 11:33:52 michael Revision 1.3 2000-09-29 21:49:41 jonas
* removed warnings
Revision 1.2 2000/07/13 11:33:52 michael
+ removed logs + removed logs
} }

View File

@ -172,13 +172,15 @@ end;
****************************************************************************} ****************************************************************************}
{$asmmode intel}
procedure system_exit; assembler; procedure system_exit; assembler;
asm asm
movb $0x4c,%ah mov ah, 04ch
movb exitcode,%al mov al, byte ptr exitcode
call syscall call syscall
end; end;
{$asmmode att}
{$asmmode direct} {$asmmode direct}
function paramcount:longint;assembler; function paramcount:longint;assembler;
@ -281,7 +283,7 @@ begin
begin begin
asm asm
movb $0x3e,%ah movb $0x3e,%ah
mov h,%ebx movl h,%ebx
call syscall call syscall
end; end;
end; end;
@ -806,7 +808,10 @@ begin
end. end.
{ {
$Log$ $Log$
Revision 1.2 2000-07-14 10:33:11 michael Revision 1.3 2000-09-29 21:49:41 jonas
* removed warnings
Revision 1.2 2000/07/14 10:33:11 michael
+ Conditionals fixed + Conditionals fixed
Revision 1.1 2000/07/13 06:31:07 michael Revision 1.1 2000/07/13 06:31:07 michael

View File

@ -320,18 +320,18 @@ end;
procedure FindClose (var F: TSearchrec); procedure FindClose (var F: TSearchrec);
var SR: PSearchRec; { var SR: PSearchRec; }
begin begin
if os_mode = osOS2 then if os_mode = osOS2 then
begin begin
DosFindClose (F.FindHandle); DosFindClose (F.FindHandle);
end end
else { else
begin begin
DOS.FindClose (SR^); DOS.FindClose (SR^);
FreeMem (SR, SizeOf (SearchRec)); FreeMem (SR, SizeOf (SearchRec));
end; end};
F.FindHandle := 0; F.FindHandle := 0;
end; end;
@ -756,7 +756,10 @@ Finalization
end. end.
{ {
$Log$ $Log$
Revision 1.4 2000-08-30 06:30:55 michael Revision 1.5 2000-09-29 21:49:41 jonas
* removed warnings
Revision 1.4 2000/08/30 06:30:55 michael
+ Merged syserrormsg fix + Merged syserrormsg fix
Revision 1.3 2000/08/25 17:23:56 hajny Revision 1.3 2000/08/25 17:23:56 hajny