为什么字节" 0xea 0000 FFFF"在引导程序导致计算机重启? [英] Why do the bytes "0xea 0000 ffff" in a bootloader cause the computer to reboot?

查看:277
本文介绍了为什么字节" 0xea 0000 FFFF"在引导程序导致计算机重启?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我研究的引导加载程序,我发现这个有趣的一块组装的:

I was researching boot loaders and I found this interesting piece of assembly:

;Sends us to the end of the memory
;causing reboot
db 0x0ea
dw 0x0000
dw 0xffff

由注释我知道它做什么;将电脑的内存到底,但我想不通的是如何这些数字重新启动计算机(16位模式x86_64的处理器)。

By the comment I know what it does; sends the computer to the end of memory, but what I can't figure out is how those numbers reboot the computer (x86_64 processor on 16-bit mode).

推荐答案

的这些字节对应 JMP字0xFFFF的:0000 (您可以通过NASM,然后组装看到这拆解产生的二进制),这恰好是一个跳转到 86复位向量在实模式。

Those bytes correspond to jmp word 0xffff:0000 (you can see this by assembling with NASM and then disassembling the resulting binary), which happens to be a jump to the x86 reset vector in real mode.

这篇关于为什么字节" 0xea 0000 FFFF"在引导程序导致计算机重启?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆