mov ax,0x30
mov bx,0xc0
add ax,bx
times 502 db 0
db 0x55
db 0xAAnasm安装地址: https://www.nasm.us/

下载exe安装
在命令行提示符输入nasm编译命令
nasm exam.asm -f bin -o exam.bin 此时输入回车将会执行编译过程。
1,启动NotePad++,在菜单上选择“运行(R)”->“运行(R)”。
 2,在弹出的窗口内,输入:
cmd  /k  pushd  "$(CURRENT_DIRECTORY)" & D:\nasm\nasm.exe -f bin  "$(FULL_CURRENT_PATH)" -o "$(NAME_PART).bin" & PAUSE & EXIT 其中D:\nasm\nasm.exe 换成自己的nasm安装地址
sreg查看段寄存器内容
r显示通用寄存器
s单步执行 
b设置断点 
c执行到断点

















![[安洵杯 2019]easy_web](https://img-blog.csdnimg.cn/direct/db9e8633ebe4442fa575ca5adca26960.png)

