ASM blocks are now REETODOd

This commit is contained in:
Rick Parrish 2013-02-07 14:11:11 -05:00
parent 88c971eb16
commit 37ffa5ebff
9 changed files with 82 additions and 4 deletions

View File

@ -13,7 +13,6 @@ Ported to Win32 by Rick Parrish<br />
TODO list:<br /> TODO list:<br />
<ul> <ul>
<li>IFDEF out any ASM code blocks and handle the same as above</li>
<li>WORD in RECORD to SMALLWORD</li> <li>WORD in RECORD to SMALLWORD</li>
<li>INTEGER in RECORD to SMALLINT</li> <li>INTEGER in RECORD to SMALLINT</li>
<li>TYPEs of OF WORD to OF SMALLWORD (just in case they're used in a RECORD)</li> <li>TYPEs of OF WORD to OF SMALLWORD (just in case they're used in a RECORD)</li>
@ -27,4 +26,5 @@ TODO list:<br />
Completed list<br /> Completed list<br />
<ul> <ul>
<li>IFDEF out anything that doesn't compile and make a WIN32 placeholder that does a "WriteLn('REETODO UNIT FUNCTION'); Halt;" (then you can grep the executables for REETODO to see which REETODOs actually need to be implemented)</li> <li>IFDEF out anything that doesn't compile and make a WIN32 placeholder that does a "WriteLn('REETODO UNIT FUNCTION'); Halt;" (then you can grep the executables for REETODO to see which REETODOs actually need to be implemented)</li>
<li>IFDEF out any ASM code blocks and handle the same as above</li>
</ul> </ul>

View File

@ -817,12 +817,17 @@ FUNCTION SchareLoaded: Boolean;
VAR VAR
T_Al: Byte; T_Al: Byte;
BEGIN BEGIN
{$IFDEF MSDOS}
ASM ASM
Mov Ah,10h Mov Ah,10h
Mov Al,0h Mov Al,0h
Int 2fh Int 2fh
Mov T_Al,Al Mov T_Al,Al
END; END;
{$ENDIF}
{$IFDEF WIN32}
T_Al := $FF;
{$ENDIF}
SchareLoaded := (T_Al = $FF); SchareLoaded := (T_Al = $FF);
END; END;

View File

@ -672,6 +672,7 @@ USES
Vote Vote
{$IFDEF WIN32} {$IFDEF WIN32}
,VPUtils ,VPUtils
,Windows
{$ENDIF} {$ENDIF}
; ;
@ -2810,6 +2811,7 @@ BEGIN
BEGIN BEGIN
IF (ABS((Ticks - LastTimeSlice)) >= General.Slicetimer) THEN IF (ABS((Ticks - LastTimeSlice)) >= General.Slicetimer) THEN
BEGIN BEGIN
{$IFDEF MSDOS}
CASE Tasker OF CASE Tasker OF
None : ASM None : ASM
int 28h int 28h
@ -2832,6 +2834,10 @@ BEGIN
Pop dx Pop dx
END; END;
END; END;
{$ENDIF}
{$IFDEF WIN32}
Sleep(1);
{$ENDIF}
LastTimeSlice := Ticks; LastTimeSlice := Ticks;
END END
ELSE IF (MultiNodeChat) AND (NOT InChat) AND (ABS(Ticks - LastCheckTimeSlice) > 9) THEN ELSE IF (MultiNodeChat) AND (NOT InChat) AND (ABS(Ticks - LastCheckTimeSlice) > 9) THEN
@ -2996,6 +3002,7 @@ BEGIN
END; END;
END; END;
{$IFDEF MSDOS}
FUNCTION AOnOff(b: Boolean; CONST s1,s2:AStr): STRING; ASSEMBLER; FUNCTION AOnOff(b: Boolean; CONST s1,s2:AStr): STRING; ASSEMBLER;
ASM ASM
PUSH ds PUSH ds
@ -3014,6 +3021,13 @@ ASM
REP MOVSB REP MOVSB
POP ds POP ds
END; END;
{$ENDIF}
{$IFDEF WIN32}
FUNCTION AOnOff(b: Boolean; CONST s1,s2:AStr): STRING;
BEGIN
WriteLn('REETODO COMMON AOnOff'); Halt;
END;
{$ENDIF}
FUNCTION ShowOnOff(b: Boolean): STRING; FUNCTION ShowOnOff(b: Boolean): STRING;
BEGIN BEGIN

View File

@ -29,7 +29,11 @@ USES
LineChat, LineChat,
SysOp2G, SysOp2G,
SysOp3, SysOp3,
SplitCha; SplitCha
{$IFDEF WIN32}
,Windows
{$ENDIF}
;
CONST CONST
SYSKEY_LENGTH = 1269; SYSKEY_LENGTH = 1269;
@ -155,6 +159,7 @@ CONST
'H','o','u','r','s',':',#25,#6 ,'M','a','i','l',' ',':',#25,#6 ,'O', 'H','o','u','r','s',':',#25,#6 ,'M','a','i','l',' ',':',#25,#6 ,'O',
'v','e','r','l','a','y','s',':',#25,#7 ,#24); 'v','e','r','l','a','y','s',':',#25,#7 ,#24);
{$IFDEF MSDOS}
PROCEDURE BiosScroll(up: Boolean); ASSEMBLER; PROCEDURE BiosScroll(up: Boolean); ASSEMBLER;
ASM ASM
Mov cx,0 Mov cx,0
@ -171,6 +176,13 @@ ASM
@Go: @Go:
Int 10h Int 10h
END; END;
{$ENDIF}
{$IFDEF WIN32}
PROCEDURE BiosScroll(up: Boolean);
BEGIN
WriteLn('REETODO COMMON2 BiosScroll'); Halt;
END;
{$ENDIF}
PROCEDURE CPR(c1,c2: Byte); PROCEDURE CPR(c1,c2: Byte);
VAR VAR
@ -845,9 +857,14 @@ BEGIN
REPEAT REPEAT
OutKey(^G); OutKey(^G);
Delay(500); Delay(500);
{$IFDEF MSDOS}
ASM ASM
Int 28h Int 28h
END; END;
{$ENDIF}
{$IFDEF WIN32}
Sleep(1);
{$ENDIF}
CheckHangUp; CheckHangUp;
UNTIL ((NOT Empty) OR (HangUp)); UNTIL ((NOT Empty) OR (HangUp));
Update_Screen; Update_Screen;

View File

@ -340,6 +340,7 @@ VAR
Inc(Cp); Inc(Cp);
END; END;
{$IFDEF MSDOS}
PROCEDURE SetCursor(InsertMode: Boolean); ASSEMBLER; PROCEDURE SetCursor(InsertMode: Boolean); ASSEMBLER;
ASM ASM
cmp InsertMode,0 cmp InsertMode,0
@ -354,6 +355,13 @@ VAR
mov ah,1 mov ah,1
int 10h int 10h
END; END;
{$ENDIF}
{$IFDEF WIN32}
PROCEDURE SetCursor(InsertMode: Boolean);
BEGIN
WriteLn('REETODO COMMON3 SetCursor'); Halt;
END;
{$ENDIF}
BEGIN BEGIN
FirstKey := FALSE; FirstKey := FALSE;

View File

@ -41,7 +41,11 @@ USES
Dos, Dos,
File1, File1,
ShortMsg, ShortMsg,
TimeFunc; TimeFunc
{$IFDEF WIN32}
,Windows
{$ENDIF}
;
FUNCTION CompFileArea(FArea,ArrayNum: Integer): Integer; FUNCTION CompFileArea(FArea,ArrayNum: Integer): Integer;
VAR VAR
@ -585,9 +589,14 @@ BEGIN
SaveTimer := Timer; SaveTimer := Timer;
END END
ELSE ELSE
{$IFDEF MSDOS}
ASM ASM
Int 28h Int 28h
END; END;
{$ENDIF}
{$IFDEF WIN32}
Sleep(1);
{$ENDIF}
END; END;
IF (Cmd <> #27) THEN IF (Cmd <> #27) THEN
BEGIN BEGIN

View File

@ -71,6 +71,7 @@ IMPLEMENTATION
USES USES
Crt; Crt;
{$IFDEF MSDOS}
PROCEDURE CursorOn(b: BOOLEAN); ASSEMBLER; PROCEDURE CursorOn(b: BOOLEAN); ASSEMBLER;
ASM ASM
cmp b, 1 cmp b, 1
@ -85,6 +86,13 @@ ASM
mov ah,1 mov ah,1
int 10h int 10h
END; END;
{$ENDIF}
{$IFDEF WIN32}
PROCEDURE CursorOn(b: BOOLEAN);
BEGIN
WriteLn('REETODO MYIO CursorOn'); Halt;
END;
{$ENDIF}
PROCEDURE infield1(x,y: Byte; VAR s: AStr; Len: Byte); PROCEDURE infield1(x,y: Byte; VAR s: AStr; Len: Byte);
VAR VAR

View File

@ -368,6 +368,7 @@ BEGIN
END; END;
*) *)
{$IFDEF MSDOS}
FUNCTION AOnOff(B: Boolean; S1,S2: STRING): STRING; ASSEMBLER; FUNCTION AOnOff(B: Boolean; S1,S2: STRING): STRING; ASSEMBLER;
ASM ASM
PUSH ds PUSH ds
@ -386,6 +387,13 @@ ASM
REP MOVSB REP MOVSB
POP ds POP ds
END; END;
{$ENDIF}
{$IFDEF WIN32}
FUNCTION AOnOff(B: Boolean; S1,S2: STRING): STRING;
BEGIN
WriteLn('REETODO RENEMAIL AOnOff'); Halt;
END;
{$ENDIF}
FUNCTION StripName(S: STRING): STRING; FUNCTION StripName(S: STRING): STRING;
VAR VAR

View File

@ -47,7 +47,11 @@ USES
SysOp11, SysOp11,
SysOp12, SysOp12,
TimeFunc, TimeFunc,
MiscUser; MiscUser
{$IFDEF WIN32}
,Windows
{$ENDIF}
;
VAR VAR
LastKeyPress: LongInt; LastKeyPress: LongInt;
@ -946,9 +950,14 @@ BEGIN
DailyMaint; DailyMaint;
{$IFDEF MSDOS}
ASM ASM
Int 28h Int 28h
END; END;
{$ENDIF}
{$IFDEF WIN32}
Sleep(1);
{$ENDIF}
IF (AnswerBaud = 0) THEN IF (AnswerBaud = 0) THEN
BEGIN BEGIN