Saturday, 5 December 2009

Timebomb of Assambly data of the computer.

mov dl,2ah;
int 21h
mov ah,4ch
int 21h
write endp

end write

This program prints a defined character using an ASCII code on the screen.


.model small; the name of the program is seven.asm
.stack;
.code;

EEL: MOV AH,01 ; 1 function (reads one character from the keyboard)
INT 21h ; 21h interruption
CMP AL,0Dh ; compares the value with 0dh
JNZ EEL ;jumps if no equal of the label eel
MOV AH,2h ; 2 function (prints the character out on the screen)
MOV DL,AL ;moves the value of the register AL to the register DL
INT 21h ;21 interruption
MOV AH,4CH ;4C function (returns the control to the D.O.S. operating system)
INT 21h ;21 interruption

END ;finishes the program

This program reads characters form the keyboard and prints them on the screen until find the return character.

No comments:

Post a Comment