All code snippets were compiled with MASM 6.12. Any higher version should also work - I don't know if it's compilable with TASM/NASM/etc without any changes.



Logical Operations on Bits

Date : April 2003

Source available : YES

Description :
A little tool which performs a logical AND, OR or XOR operation on the both values you enter. My first program written in assembly ever.

Download (6KB)

#########
Click image for larger screenshot




Self-deleting executable

Date : April 2003

Source available : YES

Description :
Example of a self-deleting executable using the batch-file method: The exe file writes a .bat file to disk and executes it. The .bat contains a loop trying to delete the exe file. When exe file is closed, the bat file will delete it. After that the .bat file deletes itself (yes .bat files can delete itself!).
Known bug: directory where the exe file resides in must not contain spaces!

Thanks go to Mr.reCoder for correcting a bug. Now it works also with long pathnames including spaces (Version 1.1).

######### Download Original Version (5KB, March 2003)
######### Download Version 1.1 (5KB, March 2009)

#########

#########


This site is part of Sunshine's Homepage