org.asm

来自「汇编编译器的最新版本的源码.买了自己动手写操作系统这本书的人一定要下」· 汇编 代码 · 共 19 行

ASM
19
字号
;Testname=elf64; Arguments=-Ox -felf64 -oorg.o; Files=stdout stderr org.o
;Testname=win64; Arguments=-Ox -fwin64 -oorg.o; Files=stdout stderr org.o

;
; Simple test of a 64-bit org directive
; 
		bits 64
		org 0xffffffffffff0000

hello:		jmp there
		nop
		nop
there:
		add rax,[rsp+rbx]
		inc eax

		section .data
there_ptr	dq there

⌨️ 快捷键说明

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