⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objexe.asm

📁 开源的nasm编译器源码,研究编译器原理很有帮且
💻 ASM
字号:
; Demonstration of how to write an entire .EXE format program as a .OBJ; file to be linked. Tested with the VAL free linker.; To build:;    nasm -fobj objexe.asm;    val objexe.obj,objexe.exe;; To test:;    objexe; (should print `hello, world')	  	  segment code..start:  mov ax,data	  mov ds,ax	  mov ax,stack	  mov ss,ax	  mov sp,stacktop	  mov dx,hello	  mov ah,9	  int 0x21	  mov ax,0x4c00	  int 0x21	  segment datahello:	  db 'hello, world', 13, 10, '$'	  segment stack stack	  resb 64stacktop:

⌨️ 快捷键说明

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