|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Familiar with "TASM" .. Assembly ....
Hi ... is anyone know about "TASM" Assembly Language ...
I need a LogIn Program ... Using TASM but i forgot some of this .... The user must input his Username and Password. this are the only value that a user must input Username = "Test" Password = "Test" when a user doest not type this value there would be a message "Try Again" and when a user type those value correcly it must display all Alphabet letters ..... Code:
.model small .stack 100k .data USRM DB "Enter Username:$" PWRD DB "Enter Password:$" Rity DB 30h ULIT DB 30h Errr DB "USername and Password does't match!$" PASSACC DB "Username and Password Accepted!$" .Code start: mov ax @ DATA mov ds,ax ULIT2: Mov ax,2h int 10h mov ah,2h mov dx,0405h int 10h mov ah,9h mov dx,offset USRNM int 21h mov ah,1h int 21h cmp al,47h jne ERR int 21h cmp al,61h jne ERR int 21h cmp al,74h jne ERR int 21h cmp al,75h jne ERR int 21h cmp al,73h jne ERR int 21h cmp al,1fh jle OK jmp ERR ULIT1: jmp ULIT2 ERR: mov cx,20 int 21h cmp al,1f jle PASSWORD loop ERR OK: inc Rity PASSWORD: mov ah,2 mov dx,605h int 10h mov ah,9h mov dx,offset PWRD int 21h mov ah1h int 21h cmp al,43h jne ERR2 int 21h cmp al,4fh jne ERR2 int 21h cmp al,41h jne ERR2 int 21h cmp al,52h jne ERR2 int 21h cmp al,43h jne ERR2 int 21h cmp al,1fh jle OK2 ERR2: mov cx,20 int 21h cmp al,1f jle OKNBA Loop ERR2 OK2: inc Rity OKNBA: cmp Rity 32h je OKNA INc ULIT mov ah,2 mov dx,080ah int 10h mov ah,9h mov dx,offset ERRR int 21h cmp ULIT,3 jne ULIT1 mov ah,4ch int 21h ret OKNA: mov ah,2 mov dx,080al int 10 mov ah ,9h mov dx,offset PASSACC int 21h PLEASE HELP ME ...... |
|
#2
|
||||
|
||||
|
Anyone know how to make like this in TASM.
In VB: Code:
Dim user as String, pass as String user = "test" pass = "test" If Text1.Text = user And Text2.Text = pass Then Print "A" Print "B" Else Msgbox "Invalid Username and Password" End If |
|
#3
|
||||
|
||||
|
Anyone please help me ... im stuck with this ..... T_T
|
|
#4
|
|||
|
|||
|
By TASM you mean Turbo-ASM as in Borland's assembler?
What OS are you targeting?
__________________
It's not always a matter of what you can do with a language, but whether you should. [JwD] |
|
#5
|
|||
|
|||
|
Code:
by TASM you mean Turbo-ASM as in Borland's assembler? Yes that is the only TASM that both myself and google know of ![]() TASM is a widely used Assembly Language compiler. Doing a google there were hundreds of results returned for TASM tutorials, TASM examples. And TASM itself is well documented. There are several examples of various TASM programs here and the documentation for TASM can be downloaded in .doc format here. As for an example I can't help at the moment. If I get a chance I'll brush up on TASM and see what I can do, but no promises. Hope This Helps
__________________
Did this post help? Please Click The Next To My PostNeed help? Did you try Google? Take a look over at my current work in progress http://crispycrisp.org Last edited by xnemesis64 : April 4th, 2007 at 06:55 AM. Reason: I wanted to |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Familiar with "TASM" .. Assembly .... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|