;NASM-IDE ASM Assistant Assembler Project File
[BITS 16] ;Set code generation to 16 bit mode
[ORG 0100H] ;Set code start address to 0100h
[SEGMENT .text] ;Main code segment
START:
MOV dx,file ;move dx the file name
@@MOV ah, 3Dh ;write to open file
MOV al,02h ;set file handle to read/write
int 21h ;make call to dos
MOV dx,text ;specify text for writing
MOV bx,ax ;file handle
MOV ah,40h ;write to file
int 21h ;make the call to dos
@@; close the handle, dude
MOV ax,04C0H ;exit dos
int 21h ;make last call
[SEGMENT .data] ;Initialised data segment
@@file db "index.txt","$" ;file name
text db "omg this file was hacked by whiteline",13,10,"$"