摘要: 操作系统代码boot.asm编译执行过程如下 org 07c00h ; 告诉编译器程序加载到7c00处 mov ax,cs ; mov ds, ax ; mov es, ax ; call DispStr ; 调用显示字符串例程 jmp $ ; 无限循环 DispStr: mov ax, BootM 阅读全文
posted @ 2021-11-24 12:49 Tsunho12 阅读(161) 评论(0) 推荐(0)
摘要: 书里给了两种环境,Windows和Linux,平台可以根据自己喜好,这里给出基于 macOS Monterey 的环境配置方式 本文默认你电脑上已经安装brew,如果没有安装,请自行百度安装。 首先是安装 Bochs brew install bochs 安装 NASM brew install n 阅读全文
posted @ 2021-11-24 12:28 Tsunho12 阅读(165) 评论(0) 推荐(0)