jump.asm

来自「linux1.0的源码」· 汇编 代码 · 共 21 行

ASM
21
字号
; JUMP.ASM
; Make a jump and then hang

; Tell the compiler that this is offset 0.
; It isn't offset 0, but it will be after the jump.
[ORG 0]

jmp 07C0h:start			; Goto segment 07C0

start:

	; Update the segment registers
	mov ax, cs
	mov ds, ax
	mov es, ax

hang:				; Hang!
	jmp hang

	times 510-($-$$) db 0
	dw 0AA55h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?