汇编语言
assume cs:code,ss:stack
stack segment
db 128 dup (0)
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,128
call copy_boot
;设置CS:IP为0:7e00h
mov ax,0
push ax
mov ax,7e00h
push ax
retf
mov ax,4c00h
int 21h
;org 7e00h
;引导程序
boot:
jmp boot_begin
func0 db 'Hk_Mayfly----XIUXIUXIU~',0
func1 db '1) reset pc',0
func2 db '2) start system',0
func3 db '3) clock',0
func4 db '4) set clock',0
;相减得到的是标号的相对位置,+7e00h得到的绝对位置
func_pos dw offset func0-offset boot+7e00h
dw offset func1-offset boot+7e00h
dw offset func2-offset boot+7e00h
dw offset func3-offset boot+7e00h
dw offset func4-offset boot+7e00h
time db 'YY/MM/DD hh:mm:ss',0
cmos db 9,8,7,4,2,0
clock1 db 'F1----change the color ESC----return menu',0
clock2 db 'Please input Date and Time,(YY MM DD hh mm ss):',0
change db 12 dup (0),0
jz指令:https://zhidao.baidu.com/question/564008138.html
int 16的1号程序:https://zhidao.baidu.com/question/511189643.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
· SQL Server 2025 AI相关能力初探
· 为什么 退出登录 或 修改密码 无法使 token 失效