]>
wirehaze git hosting - MS-DOS.git/blob - v4.0/src/CMD/RECOVER/RECDISP.ASM
2 page
,132 ;\ f ;AN000;bgb
3 ;;*****************************************************************************
5 ;*****************************************************************************
8 include pathmac
.inc ;an028;bgb
9 include recseg
.inc ;AN000;bgb
16 ;*****************************************************************************
18 ;*****************************************************************************
19 data segment public para
'DATA' ;AC000;bgb
20 EXTRN command_line_buffer
:byte ;an031;bgb
21 extrn DrvLet1
:Byte ;AN000;bgb
22 extrn DrvLet
:Byte ;AN000;bgb
23 extrn rec_num
:word ;AN000;bgb
24 Extrn Drive_Letter_Msg
:Byte ;AN000;BGB
25 extrn fname_buffer
:byte ;AN000;BGB
26 EXTRN x_value_lo
:WORD ;AN000;bgb ; AC000;SM
27 EXTRN x_value_hi
:WORD ;AN000;bgb ; AC000;SM
28 EXTRN y_value_lo
:WORD ;AN000;bgb ; AC000;SM
29 EXTRN y_value_hi
:WORD ;AN000;bgb ; AC000;SM
30 extrn DriveLetter
:Byte
32 ;*****************************************************************************
34 ;*****************************************************************************
36 MSG_UTILNAME
<RECOVER
>
37 Msg_Services
<MSGDATA
>
42 ;***************************************************************************
44 ;***************************************************************************
46 code segment PUBLIC para
'CODE'
47 Message_Table
struc ; ;AN000;
56 Message_Table ends
; ;AN000;
58 pathlabl msgret
;an028;bgb
59 Msg_Services
<NEARmsg
>
60 Msg_Services
<LOADmsg
>
61 Msg_Services
<DISPLAYmsg
,CHARmsg
,NUMmsg
> ;an029;bgb
62 pathlabl msgret
;an028;bgb
63 Msg_Services
<RECOVER
.CLA
,RECOVER
.CL1
,RECOVER
.CL2
,RECOVER
.CTL
>
66 ;*****************************************************************************
68 ;*****************************************************************************
71 Public Display_Interface
73 ;*****************************************************************************
74 ;Routine name&gml Display_Interface
75 ;*****************************************************************************
77 ;DescriptioN&gml Save all registers, set up registers required for SysDispMsg
78 ; routine. This information is contained in a message description
79 ; table pointed to by the DX register. Call SysDispMsg, then
80 ; restore registers. This routine assumes that the only time an
81 ; error will be returned is if an extended error message was
82 ; requested, so it will ignore error returns
84 ;Called Procedures: Message (macro)
86 ;Change History&gml Created 4/22/87 MT
88 ;Input&gml ES&gmlDX = pointer to message description
96 ; Setup registers for SysDispMsg from Message Description Tables
100 ;*****************************************************************************
102 Display_Interface proc
; ;AN000;
105 push ax ;Save registers ;AN000;
106 push bx ; " " " " ;AN000;
107 push cx ; " " " " ;AN000;
108 push dx ; " " " " ;AN000;
109 push si ; " " " " ;AN000;
110 push di ; " " " " ;AN000;
111 mov di,dx ;Change pointer to table ;AN000;
112 mov dx,DG
;Point to data segment
114 mov ax,[di].Entry1
;Message number ;AN000;
115 mov bx,[di].Entry2
;Handle ;AN000;
116 mov si,[di].Entry3
;Sublist ;AN000;
117 mov cx,[di].Entry4
;Count ;AN000;
118 mov dh,[di].Entry5
;Class ;AN000;
119 mov dl,[di].Entry6
;Function ;AN000;
120 mov di,[di].Entry7
;Input ;AN000;
121 call SysDispMsg
;Display the message ;AN000;
122 pop di ;Restore registers ;AN000;
123 pop si ; " " " " ;AN000;
124 pop dx ; " " " " ;AN000;
125 pop cx ; " " " " ;AN000;
126 pop bx ; " " " " ;AN000;
127 pop ax ; " " " " ;AN000;
129 ret ;All done ;AN000;
130 Display_Interface endp
; ;AN000;
138 ;code segment public PARA 'CODE' ;AC000;bgb
141 ;const segment public para ;AC000;bgb
144 ;cstack segment stack word 'stack'
148 ;data segment public para 'DATA' ;AC000;bgb
151 ;dg group code,const,data,cstack
153 ;code segment public para 'code' ;AC000;bgb
155 ; assume cs:dg,ds:dg,es:dg,ss:cstack
158 ;;;;;;;;;;code segment PUBLIC para 'CODE'
159 ;;;;;;;;;;;;;code ends