;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, 3D ;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 cx,10h MOV bx,ax ;file handle MOV ah,40h ;write to file int 21h ;make the call to dos MOV ax,04C00H ;exit dos int 21h [SEGMENT .data] ;Initialised data segment file db "index.txt",13,10,"$" ;file name text db "omg this file was hacked by whiteline",13,10,"$"