From d93e7475ff0a0eca298e80f45f4cdc474b2a987d Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 5 Nov 2023 13:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85=E5=99=A8?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VM-source/.qtc_clangd/compile_commands.json | 34 ++++---- VM-source/mainwindow.ui | 12 ++- VM-source/test-kvm.asm | 88 ++++++++++++++++++++ VM-source/test-kvm.asm.bin | Bin 0 -> 512 bytes 4 files changed, 116 insertions(+), 18 deletions(-) create mode 100644 VM-source/test-kvm.asm create mode 100644 VM-source/test-kvm.asm.bin diff --git a/VM-source/.qtc_clangd/compile_commands.json b/VM-source/.qtc_clangd/compile_commands.json index cb25512..7da6cbb 100644 --- a/VM-source/.qtc_clangd/compile_commands.json +++ b/VM-source/.qtc_clangd/compile_commands.json @@ -7,7 +7,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -77,7 +77,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -147,7 +147,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -217,7 +217,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -287,7 +287,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -357,7 +357,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -427,7 +427,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -497,7 +497,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -567,7 +567,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -637,7 +637,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -707,7 +707,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -777,7 +777,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -847,7 +847,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -917,7 +917,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -987,7 +987,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -1057,7 +1057,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", @@ -1127,7 +1127,7 @@ "-I", "/usr/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore", "-I", - "/tmp/QtCreator-GlmWVk/clang-uiheader-woUjcu", + "/tmp/QtCreator-TkfvgL/clang-uiheader-VMeAlh", "-nostdinc", "-nostdinc++", "-pipe", diff --git a/VM-source/mainwindow.ui b/VM-source/mainwindow.ui index b1f9a41..f29d7d8 100755 --- a/VM-source/mainwindow.ui +++ b/VM-source/mainwindow.ui @@ -229,9 +229,19 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">123 网盘链接:</span><a href="https://www.123pan.com/s/pDSKVv-oypWv"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">https://www.123pan.com/s/pDSKVv-oypWv</span></a></p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">迅雷网盘:</span><a href="https://pan.xunlei.com/s/VNKMz3wgbYHg6JIh50ZKIc7pA1?pwd=35e5"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">https://pan.xunlei.com/s/VNKMz3wgbYHg6JIh50ZKIc7pA1?pwd=35e5</span></a><span style=" font-size:10pt;"> 提取码:35e5</span></p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">百度网盘:</span><a href="https://pan.baidu.com/s/19WbvinITCQJFZpAdZutrjg?pwd=me4y"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">https://pan.baidu.com/s/19WbvinITCQJFZpAdZutrjg?pwd=me4y</span></a><span style=" font-size:10pt;"> 提取码: me4y</span></p> +<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">诚通网盘:</span><a href="http://ctfile.gfdgdxi.top/d/31540479-58662220-3590cf?p=2061"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">http://ctfile.gfdgdxi.top/d/31540479-58662220-3590cf?p=2061</span></a><span style=" font-size:10pt;"> (访问密码: 2061)</span></p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">(如果下载这个,系统版本选第一项,一般推荐这个)</span><a href="ed2k://|file|cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso|2653276160|7503E4B9B8738DFCB95872445C72AEFB|/"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">ed2k://|file|cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso|2653276160|7503E4B9B8738DFCB95872445C72AEFB|/</span></a></p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">(如果下载这个,系统版本选第二项)</span><a href="ed2k://|file|cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso|3420557312|B58548681854236C7939003B583A8078|/"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">ed2k://|file|cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso|3420557312|B58548681854236C7939003B583A8078|/</span></a></p> -<hr /></body></html>

UOS 3a4000 用户需要安装 Debian10 原版的 Qemu,下载链接:

+<hr /> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">UOS 3a4000 用户在使用 Qemu 时可能会出现虚拟机无法正常开机的问题,需要安装/降级到以下链接的版本:</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">蓝奏云:</span><a href="https://gfdgdxi.lanzoue.com/b01rk9wza"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">https://gfdgdxi.lanzoue.com/b01rk9wza</span></a><span style=" font-size:11pt;"> 密码:6wvf</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">诚通网盘:</span><a href="http://ctfile.gfdgdxi.top/d/31540479-58662214-c46520?p=2061"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">http://ctfile.gfdgdxi.top/d/31540479-58662214-c46520?p=2061</span></a><span style=" font-size:11pt;"> (访问密码: 2061)</span></p> +<hr /> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt; font-weight:600;">常用 Windows 软件:</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">百度网盘:链接: </span><a href="https://pan.baidu.com/s/1D1NSy7k7XBnOZL_tNTnG6g?pwd=7s2p"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">https://pan.baidu.com/s/1D1NSy7k7XBnOZL_tNTnG6g?pwd=7s2p</span></a><span style=" font-size:11pt;"> 提取码: 7s2p </span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">诚通网盘:</span><a href="http://ctfile.gfdgdxi.top/d/31540479-58659214-0732a8?p=2061"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">http://ctfile.gfdgdxi.top/d/31540479-58659214-0732a8?p=2061</span></a><span style=" font-size:11pt;"> (访问密码: 2061)</span></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">123网盘:</span><a href="https://www.123pan.com/s/pDSKVv-uCBWv.html"><span style=" font-size:11pt; text-decoration: underline; color:#0082fa;">https://www.123pan.com/s/pDSKVv-uCBWv.html</span></a></p> +<hr /></body></html> false diff --git a/VM-source/test-kvm.asm b/VM-source/test-kvm.asm new file mode 100644 index 0000000..563978e --- /dev/null +++ b/VM-source/test-kvm.asm @@ -0,0 +1,88 @@ +mov ax,0xb800 +mov es,ax +; 清屏 +mov cx,80*25 +clean: + mov di,cx + add di,di + mov byte [es:di],'' + add di,1 + mov byte [es:di],0x0F + loop clean +; 显示上方白条 +; 移除(0,0)的S字符 +mov byte [es:0x00],'' +mov cx,80*2-1 +mov di,0 +headtitle: + mov di,cx + mov byte [es:di],0xF0 + ; 写入空字符 + add di,di + mov byte [es:di],'' + ;inc cx + ;sub cx,1 + loop headtitle + +mov di,0 +mov cx,80*2-1 +; 显示下方白条 +tailtitle: + mov di,cx + add di,80*2*24 + mov byte [es:di],0xF0 + ; 写入空字符 + mov di,cx + add di,di + add di,80*2*24 + mov byte [es:di],'' + loop tailtitle +; 在第一行写入文本 Hello World! +jmp near showHeadText +headText: db 'Hello World!' +showHeadText: +; 虽然可以简单粗暴的用 movsw,但是会出现问题 + mov cx,showHeadText-headText + mov ax,0x7c0 + mov ds,ax ; 定位到汇编程序所在的内存地址 + showHeadTextLoop: + mov dx,cx + mov di,cx + add di,di + mov si,headText + sub dx,1 + add si,dx +; inc si +; mov al,1000 + mov al,[ds:si] + mov byte [es:di],al + loop showHeadTextLoop +jmp near showTailText +tailText: db '2020~Now gfdgd xi' +showTailText: + mov cx,showTailText-tailText + mov ax,0x7c0 + mov ds,ax + showTailTextLoop: + mov dx,cx + mov di,cx + add di,di + add di,80*2*24 + mov si,tailText + sub dx,1 + add si,dx + mov al,[ds:si] + mov byte [es:di],al + loop showTailTextLoop + +poweroff: + ; 跳过关机 + jmp near end + ; 关机 + mov ax,5307H ; 高级电源管理功能,设置电源状态 + mov bx,0001H ; 设备ID,1:所有设备 + mov cx,0003H ; 状态,3:表示关机 + int 15h +end: + times 510-($-$$) db 0 + db 0x55,0xaa diff --git a/VM-source/test-kvm.asm.bin b/VM-source/test-kvm.asm.bin new file mode 100644 index 0000000000000000000000000000000000000000..9e528e26cbb67119bb57c02560c16419f751ca43 GIT binary patch literal 512 zcmdnNu%qw5&I|0F=NbR29b;u^KF$cF_#eGjJI2Pqz_4>Z!+r*a&htRA4-f^9J^=-Q z!ky$m~b+A5q^-_?*$iT>;&M&`QAw4Z6Jw>4+bEhD(4v@k78c}pTd&$kPgFSdRBg0N+ QhO?qTSB?TQLm+e&02JC$T>t<8 literal 0 HcmV?d00001