📄 objexe.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 + -