@@ -16,11 +16,11 @@ Partial Public Class X8086
16
16
17
17
Select Case mRegisters.AH
18
18
Case &H0 ' Reset drive
19
- X8086.Notify( "Drive {0} Reset" , NotificationReasons.Info, mRegisters.DL)
19
+ X8086.Notify( "Drive {0:000 } Reset" , NotificationReasons.Info, mRegisters.DL)
20
20
ret = If (dskImg Is Nothing , &HAA , 0 )
21
21
22
22
Case &H1 ' Get last operation status
23
- X8086.Notify( "Drive {0} Get Last Operation Status" , NotificationReasons.Info, mRegisters.DL)
23
+ X8086.Notify( "Drive {0:000 } Get Last Operation Status" , NotificationReasons.Info, mRegisters.DL)
24
24
mRegisters.AH = lastAH(mRegisters.DL)
25
25
mFlags.CF = lastCF(mRegisters.DL)
26
26
ret = 0
@@ -41,13 +41,13 @@ Partial Public Class X8086
41
41
Exit Select
42
42
End If
43
43
44
- X8086.Notify( "Drive {0} Read H{1:00} T{2:000} S{3:000} x {4:000} {5:000000 } -> {6:X4}:{7:X4}" , NotificationReasons.Info,
44
+ X8086.Notify( "Drive {0:000 } Read H{1:00} T{2:000} S{3:000} x {4:000} {5:X6 } -> {6:X4}:{7:X4}" , NotificationReasons.Info,
45
45
mRegisters.DL,
46
46
mRegisters.DH,
47
47
mRegisters.CH,
48
48
mRegisters.CL,
49
49
mRegisters.AL,
50
- offset.ToString( "X5" ) ,
50
+ offset,
51
51
mRegisters.ES,
52
52
mRegisters.BX)
53
53
@@ -87,13 +87,13 @@ Partial Public Class X8086
87
87
Exit Select
88
88
End If
89
89
90
- X8086.Notify( "Drive {0} Write H{1:00} T{2:000} S{3:000} x {4:000} {5:000000 } <- {6:X4}:{7:X4}" , NotificationReasons.Info,
90
+ X8086.Notify( "Drive {0:000 } Write H{1:00} T{2:000} S{3:000} x {4:000} {5:X6 } <- {6:X4}:{7:X4}" , NotificationReasons.Info,
91
91
mRegisters.DL,
92
92
mRegisters.DH,
93
93
mRegisters.CH,
94
94
mRegisters.CL,
95
95
mRegisters.AL,
96
- offset.ToString( "X5" ) ,
96
+ offset,
97
97
mRegisters.ES,
98
98
mRegisters.BX)
99
99
@@ -127,13 +127,13 @@ Partial Public Class X8086
127
127
Exit Select
128
128
End If
129
129
130
- X8086.Notify( "Drive {0} Verify Sectors H{1:00} T{2:000} S{3:000} ? {4:000} {5:000000 } ? {6:X4}:{7:X4}" , NotificationReasons.Info,
130
+ X8086.Notify( "Drive {0:000 } Verify Sectors H{1:00} T{2:000} S{3:000} ? {4:000} {5:X6 } ? {6:X4}:{7:X4}" , NotificationReasons.Info,
131
131
mRegisters.DL,
132
132
mRegisters.DH,
133
133
mRegisters.CH,
134
134
mRegisters.CL,
135
135
mRegisters.AL,
136
- offset.ToString( "X5" ) ,
136
+ offset,
137
137
mRegisters.ES,
138
138
mRegisters.BX)
139
139
@@ -156,13 +156,13 @@ Partial Public Class X8086
156
156
Exit Select
157
157
End If
158
158
159
- X8086.Notify( "Drive {0} Format Track H{1:00} T{2:000} S{3:000} ? {4:000} {5:000000 } = {6:X4}:{7:X4}" , NotificationReasons.Info,
159
+ X8086.Notify( "Drive {0:000 } Format Track H{1:00} T{2:000} S{3:000} ? {4:000} {5:X6 } = {6:X4}:{7:X4}" , NotificationReasons.Info,
160
160
mRegisters.DL,
161
161
mRegisters.DH,
162
162
mRegisters.CH,
163
163
mRegisters.CL,
164
164
mRegisters.AL,
165
- offset.ToString( "X5" ) ,
165
+ offset,
166
166
mRegisters.ES,
167
167
mRegisters.BX)
168
168
ret = 0
@@ -174,7 +174,7 @@ Partial Public Class X8086
174
174
Exit Select
175
175
End If
176
176
177
- X8086.Notify( "Drive {0} Format Track (SBSF) H{1:00} T{2:000} S{3:000} ? {4:000}" , NotificationReasons.Info,
177
+ X8086.Notify( "Drive {0:000 } Format Track (SBSF) H{1:00} T{2:000} S{3:000} ? {4:000}" , NotificationReasons.Info,
178
178
mRegisters.DL,
179
179
mRegisters.DH,
180
180
mRegisters.CH,
@@ -189,7 +189,7 @@ Partial Public Class X8086
189
189
Exit Select
190
190
End If
191
191
192
- X8086.Notify( "Drive {0} Format Drive H{1:00} T{2:000} S{3:000}" , NotificationReasons.Info,
192
+ X8086.Notify( "Drive {0:000 } Format Drive H{1:00} T{2:000} S{3:000}" , NotificationReasons.Info,
193
193
mRegisters.DL,
194
194
mRegisters.DH,
195
195
mRegisters.CH,
@@ -220,7 +220,7 @@ Partial Public Class X8086
220
220
mRegisters.DL = DiskImage.HardDiskCount
221
221
End If
222
222
223
- X8086.Notify( "Drive {0} Get Parameters" , NotificationReasons.Info, mRegisters.DL)
223
+ X8086.Notify( "Drive {0:000 } Get Parameters" , NotificationReasons.Info, mRegisters.DL)
224
224
ret = 0
225
225
End If
226
226
@@ -230,7 +230,7 @@ Partial Public Class X8086
230
230
ret = &HAA ' fixed disk drive not ready
231
231
Exit Select
232
232
End If
233
- X8086.Notify( "Drive {0} Init Drive Pair Characteristic" , NotificationReasons.Info, mRegisters.DL)
233
+ X8086.Notify( "Drive {0:000 } Init Drive Pair Characteristic" , NotificationReasons.Info, mRegisters.DL)
234
234
ret = 0
235
235
236
236
' The following are meant to keep diagnostic tools happy ;)
@@ -251,13 +251,13 @@ Partial Public Class X8086
251
251
Exit Select
252
252
End If
253
253
254
- X8086.Notify( "Drive {0} Read Long H{1:00} T{2:000} S{3:000} x {4:000} {5:000000 } -> {6:X4}:{7:X4}" , NotificationReasons.Info,
254
+ X8086.Notify( "Drive {0:000 } Read Long H{1:00} T{2:000} S{3:000} x {4:000} {5:X6 } -> {6:X4}:{7:X4}" , NotificationReasons.Info,
255
255
mRegisters.DL,
256
256
mRegisters.DH,
257
257
mRegisters.CH,
258
258
mRegisters.CL,
259
259
mRegisters.AL,
260
- offset.ToString( "X5" ) ,
260
+ offset,
261
261
mRegisters.ES,
262
262
mRegisters.BX)
263
263
@@ -282,19 +282,19 @@ Partial Public Class X8086
282
282
AL = bufSize \ dskImg.SectorSize
283
283
284
284
Case &HC ' Seek to Cylinder
285
- X8086.Notify( "Drive {0} Seek to Cylinder " , NotificationReasons.Info, mRegisters.DL)
285
+ X8086.Notify( "Drive {0:000 } Seek to Cylinder " , NotificationReasons.Info, mRegisters.DL)
286
286
ret = 0
287
287
288
288
Case &HD ' Alternate Disk Reset
289
- X8086.Notify( "Drive {0} Alternate Disk Reset" , NotificationReasons.Info, mRegisters.DL)
289
+ X8086.Notify( "Drive {0:000 } Alternate Disk Reset" , NotificationReasons.Info, mRegisters.DL)
290
290
ret = 0
291
291
292
292
Case &H14 ' Controller Internal Diagnostic
293
- X8086.Notify( "Drive {0} Controller Internal Diagnostic" , NotificationReasons.Info, mRegisters.DL)
293
+ X8086.Notify( "Drive {0:000 } Controller Internal Diagnostic" , NotificationReasons.Info, mRegisters.DL)
294
294
ret = 0
295
295
296
296
Case &H11 ' Recalibrate
297
- X8086.Notify( "Drive {0} Recalibrate" , NotificationReasons.Info, mRegisters.DL)
297
+ X8086.Notify( "Drive {0:000 } Recalibrate" , NotificationReasons.Info, mRegisters.DL)
298
298
ret = 0
299
299
300
300
Case &H15 ' Read DASD Type
@@ -311,18 +311,18 @@ Partial Public Class X8086
311
311
mRegisters.DX = dskImg.Sectors And &HFF
312
312
ret = &H12C
313
313
End If
314
- X8086.Notify( "Drive {0} Read DASD Type" , NotificationReasons.Info, mRegisters.DL)
314
+ X8086.Notify( "Drive {0:000 } Read DASD Type" , NotificationReasons.Info, mRegisters.DL)
315
315
316
316
Case &H12 ' Controller RAM Diagnostic
317
- X8086.Notify( "Drive {0} Controller RAM Diagnostic" , NotificationReasons.Info, mRegisters.DL)
317
+ X8086.Notify( "Drive {0:000 } Controller RAM Diagnostic" , NotificationReasons.Info, mRegisters.DL)
318
318
ret = 0
319
319
320
320
Case &H13 ' Drive Diagnostic
321
- X8086.Notify( "Drive {0} Drive Diagnostic" , NotificationReasons.Info, mRegisters.DL)
321
+ X8086.Notify( "Drive {0:000 } Drive Diagnostic" , NotificationReasons.Info, mRegisters.DL)
322
322
ret = 0
323
323
324
324
Case &H41 ' Check Extensions Support
325
- X8086.Notify( "Drive {0} Extensions Check" , NotificationReasons.Info, mRegisters.DL)
325
+ X8086.Notify( "Drive {0:000 } Extensions Check" , NotificationReasons.Info, mRegisters.DL)
326
326
If mRegisters.BX = &H55AA Then
327
327
mFlags.CF = 0
328
328
mRegisters.AH = &H1
@@ -355,10 +355,10 @@ Partial Public Class X8086
355
355
Exit Select
356
356
End If
357
357
358
- X8086.Notify( "Drive {0} Read {4:000} {5:000000 } -> {6:X4}:{7:X4}" , NotificationReasons.Info,
358
+ X8086.Notify( "Drive {0:000 } Read {4:000} {5:X6 } -> {6:X4}:{7:X4}" , NotificationReasons.Info,
359
359
mRegisters.DL,
360
360
bufSize,
361
- offset.ToString( "X5" ) ,
361
+ offset,
362
362
seg,
363
363
off)
364
364
@@ -398,10 +398,10 @@ Partial Public Class X8086
398
398
Exit Select
399
399
End If
400
400
401
- X8086.Notify( "Drive {0} Write {4:000} {5:000000 } <- {6:X4}:{7:X4}" , NotificationReasons.Info,
401
+ X8086.Notify( "Drive {0:000 } Write {4:000} {5:X6 } <- {6:X4}:{7:X4}" , NotificationReasons.Info,
402
402
mRegisters.DL,
403
403
bufSize,
404
- offset.ToString( "X5" ) ,
404
+ offset,
405
405
seg,
406
406
off)
407
407
@@ -431,12 +431,12 @@ Partial Public Class X8086
431
431
ret = &HAA
432
432
Else
433
433
Throw New NotImplementedException( "Extended get Drive Parameters is not Implemented" )
434
- X8086.Notify( "Drive {0} Get Parameters" , NotificationReasons.Info, mRegisters.DL)
434
+ X8086.Notify( "Drive {0:000 } Get Parameters" , NotificationReasons.Info, mRegisters.DL)
435
435
ret = 0
436
436
End If
437
437
438
438
Case Else
439
- X8086.Notify( "Drive {0} Unknown Request {1}" , NotificationReasons.Err,
439
+ X8086.Notify( "Drive {0:000 } Unknown Request {1}" , NotificationReasons.Err,
440
440
mRegisters.DL,
441
441
((mRegisters.AX And &HFF00 ) >> 8 ).ToString( "X2" ))
442
442
ret = &H1
0 commit comments