基本寄存器
- AX(accumulator):累加寄存器
- CX(counter):计数寄存器
- DX(data):数据寄存器
- BX(base):基址寄存器
- SP(stack pointer):栈指针寄存器
- BP(base pointer):基址指针寄存器
- SI(source index):源变址寄存器
- DI(destination index):目的变址寄存器
段寄存器
- ES(extra segment):附加段寄存器
- CS(code segment):代码段寄存器
- SS(stack segment):栈段寄存器
- DS(data segment):数据段寄存器
- FS(...):无名
- GS(...):无名
Makefile
TOOLPATH = ../z_tools/ MAKE = $(TOOLPATH)make.exe -r NASK = $(TOOLPATH)nask.exe EDIMG = $(TOOLPATH)edimg.exe IMGTOL = $(TOOLPATH)imgtol.com COPY = copy DEL = del default : $(MAKE) img ipl10.bin : ipl10.nas Makefile $(NASK) ipl10.nas ipl10.bin ipl10.lst haribote.sys : haribote.nas Makefile $(NASK) haribote.nas haribote.sys haribote.lst haribote.img : ipl10.bin haribote.sys Makefile $(EDIMG) imgin:../z_tools/fdimg0at.tek wbinimg src:ipl10.bin len:512 from:0 to:0 copy from:haribote.sys to:@: imgout:haribote.img img : $(MAKE) haribote.img run : $(MAKE) img $(COPY) haribote.img ..z_toolsqemufdimage0.bin $(MAKE) -C ../z_tools/qemu install : $(MAKE) img $(IMGTOL) w a: haribote.img clean : -$(DEL) ipl10.bin -$(DEL) ipl10.lst -$(DEL) haribote.sys -$(DEL) haribote.lst src_only : $(MAKE) clean -$(DEL) haribote.img