Skip to content

Commit 0d3b65a

Browse files
committed
Bug Fix
1 parent d06b625 commit 0d3b65a

39 files changed

Lines changed: 47 additions & 84 deletions
-4 KB
Binary file not shown.
0 Bytes
Binary file not shown.

MonikaDriver-Win10/.vs/MonikaDriver-Win10/v17/DocumentLayout.backup.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
"WorkspaceRootPath": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\",
44
"Documents": [
55
{
6-
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
7-
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
6+
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}",
7+
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}"
88
},
99
{
1010
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\main.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
1111
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:main.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
1212
},
13+
{
14+
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
15+
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
16+
},
1317
{
1418
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDelay.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
1519
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaDelay.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
@@ -25,10 +29,6 @@
2529
{
2630
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaFileSystem.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
2731
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaFileSystem.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
28-
},
29-
{
30-
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}",
31-
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}"
3232
}
3333
],
3434
"DocumentGroupContainers": [
@@ -38,11 +38,11 @@
3838
"DocumentGroups": [
3939
{
4040
"DockedWidth": 200,
41-
"SelectedChildIndex": 2,
41+
"SelectedChildIndex": 3,
4242
"Children": [
4343
{
4444
"$type": "Document",
45-
"DocumentIndex": 2,
45+
"DocumentIndex": 3,
4646
"Title": "MonikaDelay.c",
4747
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDelay.c",
4848
"RelativeDocumentMoniker": "MonikaDelay.c",
@@ -60,39 +60,40 @@
6060
"RelativeDocumentMoniker": "main.c",
6161
"ToolTip": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\main.c",
6262
"RelativeToolTip": "main.c",
63-
"ViewState": "AgIAAFQAAAAAAAAAAAAcwGIAAAASAAAAAAAAAA==",
63+
"ViewState": "AgIAADQAAAAAAAAAAAAcwEIAAAAFAAAAAAAAAA==",
6464
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000423|",
6565
"WhenOpened": "2024-09-20T05:57:01.006Z",
6666
"EditorCaption": ""
6767
},
6868
{
6969
"$type": "Document",
70-
"DocumentIndex": 0,
70+
"DocumentIndex": 2,
7171
"Title": "MonikaDrv.h",
7272
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h",
7373
"RelativeDocumentMoniker": "MonikaDrv.h",
74-
"ToolTip": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h*",
75-
"RelativeToolTip": "MonikaDrv.h*",
76-
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAAATAAAAAAAAAA==",
74+
"ToolTip": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h",
75+
"RelativeToolTip": "MonikaDrv.h",
76+
"ViewState": "AgIAABkAAAAAAAAAAAAAABQAAAAqAAAAAAAAAA==",
7777
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
7878
"WhenOpened": "2024-09-20T05:57:01.09Z",
7979
"EditorCaption": ""
8080
},
8181
{
8282
"$type": "Document",
83-
"DocumentIndex": 6,
83+
"DocumentIndex": 0,
8484
"Title": "MonikaBeep.asm",
8585
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm",
8686
"RelativeDocumentMoniker": "MonikaBeep.asm",
8787
"ToolTip": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm",
8888
"RelativeToolTip": "MonikaBeep.asm",
89-
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAIAAAAaAAAA",
89+
"ViewState": "AgIAAA8AAAAAAAAAAAAAABoAAAALAAAAAAAAAA==",
9090
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
91-
"WhenOpened": "2024-09-20T05:57:01.091Z"
91+
"WhenOpened": "2024-09-20T05:57:01.091Z",
92+
"EditorCaption": ""
9293
},
9394
{
9495
"$type": "Document",
95-
"DocumentIndex": 4,
96+
"DocumentIndex": 5,
9697
"Title": "MonikaMemory.c",
9798
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaMemory.c",
9899
"RelativeDocumentMoniker": "MonikaMemory.c",
@@ -104,7 +105,7 @@
104105
},
105106
{
106107
"$type": "Document",
107-
"DocumentIndex": 3,
108+
"DocumentIndex": 4,
108109
"Title": "MonikaBSOD.c",
109110
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBSOD.c",
110111
"RelativeDocumentMoniker": "MonikaBSOD.c",
@@ -116,7 +117,7 @@
116117
},
117118
{
118119
"$type": "Document",
119-
"DocumentIndex": 5,
120+
"DocumentIndex": 6,
120121
"Title": "MonikaFileSystem.c",
121122
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaFileSystem.c",
122123
"RelativeDocumentMoniker": "MonikaFileSystem.c",

MonikaDriver-Win10/.vs/MonikaDriver-Win10/v17/DocumentLayout.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
"WorkspaceRootPath": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\",
44
"Documents": [
55
{
6-
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
7-
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
6+
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}",
7+
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}"
88
},
99
{
1010
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\main.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
1111
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:main.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
1212
},
13+
{
14+
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
15+
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaDrv.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
16+
},
1317
{
1418
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDelay.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
1519
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaDelay.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
@@ -25,10 +29,6 @@
2529
{
2630
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaFileSystem.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
2731
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaFileSystem.c||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
28-
},
29-
{
30-
"AbsoluteMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}",
31-
"RelativeMoniker": "D:0:0:{4AF6DF6F-F060-4FD3-8783-0E3282FC6358}|MonikaDriver-Win10.vcxproj|solutionrelative:MonikaBeep.asm||{8B382828-6202-11D1-8870-0000F87579D2}"
3232
}
3333
],
3434
"DocumentGroupContainers": [
@@ -38,11 +38,11 @@
3838
"DocumentGroups": [
3939
{
4040
"DockedWidth": 200,
41-
"SelectedChildIndex": 2,
41+
"SelectedChildIndex": 3,
4242
"Children": [
4343
{
4444
"$type": "Document",
45-
"DocumentIndex": 2,
45+
"DocumentIndex": 3,
4646
"Title": "MonikaDelay.c",
4747
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDelay.c",
4848
"RelativeDocumentMoniker": "MonikaDelay.c",
@@ -60,39 +60,40 @@
6060
"RelativeDocumentMoniker": "main.c",
6161
"ToolTip": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\main.c",
6262
"RelativeToolTip": "main.c",
63-
"ViewState": "AgIAAFQAAAAAAAAAAAAcwGIAAAASAAAAAAAAAA==",
63+
"ViewState": "AgIAADQAAAAAAAAAAAAcwEIAAAAFAAAAAAAAAA==",
6464
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000423|",
6565
"WhenOpened": "2024-09-20T05:57:01.006Z",
6666
"EditorCaption": ""
6767
},
6868
{
6969
"$type": "Document",
70-
"DocumentIndex": 0,
70+
"DocumentIndex": 2,
7171
"Title": "MonikaDrv.h",
7272
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h",
7373
"RelativeDocumentMoniker": "MonikaDrv.h",
7474
"ToolTip": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaDrv.h",
7575
"RelativeToolTip": "MonikaDrv.h",
76-
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAAATAAAAAAAAAA==",
76+
"ViewState": "AgIAABkAAAAAAAAAAAAAABQAAAAqAAAAAAAAAA==",
7777
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
7878
"WhenOpened": "2024-09-20T05:57:01.09Z",
7979
"EditorCaption": ""
8080
},
8181
{
8282
"$type": "Document",
83-
"DocumentIndex": 6,
83+
"DocumentIndex": 0,
8484
"Title": "MonikaBeep.asm",
8585
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm",
8686
"RelativeDocumentMoniker": "MonikaBeep.asm",
8787
"ToolTip": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBeep.asm",
8888
"RelativeToolTip": "MonikaBeep.asm",
89-
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAIAAAAaAAAA",
89+
"ViewState": "AgIAAA8AAAAAAAAAAAAAABoAAAALAAAAAAAAAA==",
9090
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
91-
"WhenOpened": "2024-09-20T05:57:01.091Z"
91+
"WhenOpened": "2024-09-20T05:57:01.091Z",
92+
"EditorCaption": ""
9293
},
9394
{
9495
"$type": "Document",
95-
"DocumentIndex": 4,
96+
"DocumentIndex": 5,
9697
"Title": "MonikaMemory.c",
9798
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaMemory.c",
9899
"RelativeDocumentMoniker": "MonikaMemory.c",
@@ -104,7 +105,7 @@
104105
},
105106
{
106107
"$type": "Document",
107-
"DocumentIndex": 3,
108+
"DocumentIndex": 4,
108109
"Title": "MonikaBSOD.c",
109110
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaBSOD.c",
110111
"RelativeDocumentMoniker": "MonikaBSOD.c",
@@ -116,7 +117,7 @@
116117
},
117118
{
118119
"$type": "Document",
119-
"DocumentIndex": 5,
120+
"DocumentIndex": 6,
120121
"Title": "MonikaFileSystem.c",
121122
"DocumentMoniker": "C:\\Users\\Administrator\\DDLC-MonikaInKernel\\MonikaDriver-Win10\\MonikaFileSystem.c",
122123
"RelativeDocumentMoniker": "MonikaFileSystem.c",
Binary file not shown.

MonikaDriver-Win10/MonikaBeep.asm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.code _text
22

33
MonikaBeepInit PROC PUBLIC
4-
5-
cmp cx, 0;
4+
and rcx, 0FFFFh; Only Keep 2 bytes (uint16)
5+
cmp rcx, 0;
66
ja process;
77
mov rax, -1;
88
ret;
@@ -11,7 +11,7 @@ mov al, 182;
1111
out 67, al;
1212
mov rdx, 0;
1313
mov rax, 1193180;
14-
div cx;
14+
div rcx;
1515
out 66, al;
1616
mov al, ah;
1717
out 66, al;
@@ -35,6 +35,7 @@ MonikaBeepStop PROC PUBLIC
3535
in al, 97;
3636
and al, 13;
3737
out 97, al;
38+
ret;
3839

3940
MonikaBeepStop ENDP
4041

24 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)