?? sfxstub.asm
字號:
; sfxStub - This is a do nothing MS-DOS 16 bit assembler source file (NASM)
;
; This code is part of the sfxFramework (C)2000 by Rui Godinho Lopes <ruiglopes@yahoo.com>
;
; With this stub we get rid of the message, 'This program cannot be run in DOS mode'.
; Well, who needs this? ....nobody(?) is using this on MS-DOS! ;), and we shrink our
; stub to the minium size, if you can make it shrink even more email me! :)
;
; Note that the LINKER (from VC++ 6.0) will add at the end of the sfxStub.exe random
; data to align the PE EXE and start the PE executable at 0xb0, knowing this we gain
; a safe storage in the exe starting at offset 0x45(69) with 107 bytes!
;
; Note also that from 0x1c to 0x3b are unused bytes, this ones are from the MZ file
; header (sfxStub), in this zone is where the sfxLoader has is information (so try
; not use it!)
;
; To build this file just run the buildStub.bat (you will get a ../bin/sfxStub.exe)
; NOTE: For building this you have to have NASM <http://www.web-sites.co.uk/nasm/> and
; ALINK <http://alink.home.dhs.org/> installed in your system.
;
; (C)2000 by Rui Godinho Lopes <ruiglopes@yahoo.com>
;
[segment code public class='CODE']
..start:
; maybe in future I will add here the option to
; display the message 'This program cannot be run in DOS mode'
; but I think there is no need for this!
; Just bail out!
mov ax, 0x4c00 ; terminate our program with exit code 0
int 0x21
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -