Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 28th, 2007, 11:25 AM
Loraine's Avatar
Loraine Loraine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 79 Loraine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 30 m 43 sec
Reputation Power: 3
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 ......

Reply With Quote
  #2  
Old March 30th, 2007, 07:31 AM
Loraine's Avatar
Loraine Loraine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 79 Loraine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 30 m 43 sec
Reputation Power: 3
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

Reply With Quote
  #3  
Old April 1st, 2007, 10:50 AM
Loraine's Avatar
Loraine Loraine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 79 Loraine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 30 m 43 sec
Reputation Power: 3
Anyone please help me ... im stuck with this ..... T_T

Reply With Quote
  #4  
Old April 2nd, 2007, 05:57 PM
jwdonahue jwdonahue is offline
Bellevue WA, USA
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 1,038 jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level)jwdonahue User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 23 h 14 m 51 sec
Reputation Power: 66
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]

Reply With Quote
  #5  
Old April 4th, 2007, 06:54 AM
xnemesis64 xnemesis64 is offline
Google's No1 Supporter!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2007
Location: irc.superirc.info
Posts: 569 xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 15 h 48 m 12 sec
Reputation Power: 145
Send a message via MSN to xnemesis64 Send a message via Yahoo to xnemesis64 Send a message via Google Talk to xnemesis64 Send a message via Skype to xnemesis64
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 Post
Need 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Familiar with "TASM" .. Assembly ....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT