answersLogoWhite

0


Best Answer

01start: jmp main

02

03 option1 db 0ah, 0dh, "1. OPTION 1 $"

04 option2 db 0ah, 0dh, "2. OPTION 2 $"

05 exit db 0ah, 0dh, "3. EXIT $"

06

07 str1 db 0ah, 0dh, "Press Key: $"

08

09 x db 0ah, 0dh, "You Pressed option 1 $"

10 y db 0ah, 0dh, "You Pressed option 2 $"

11 z db 0ah, 0dh, "End $"

12

13 nvl db 0ah, 0dh, "Invalid Option $"

14

15 one db "1"

16 two db "2"

17 tre db "3"

18

19

20main proc

21

22

23 mov ah,09h

24 lea dx,option1

25 int 21h

26

27 lea dx,option2

28 int 21h

29

30 lea dx,exit

31 int 21h

32again:

33 mov ah,09h

34 lea dx,str1

35 int 21h

36

37 mov ah,01

38 int 21h

39

40 mov bl,al

41

42 cmp bl,"1"

43 je disp1

44

45 cmp bl,"2"

46 je disp2

47

48 cmp bl,"3"

49 je dispexit

50

51 cmp al,one

52 jne n

53

54 cmp al,two

55 jne n

56

57 cmp al,tre

58 jne n

59

60n:

61 mov ah,09h

62 lea dx,nvl

63 int 21h

64 jmp again

65

66

67disp1:

68 mov ah,09h

69 lea dx,x

70 int 21h

71 jmp again

72

73

74disp2:

75 mov ah,09h

76 lea dx,y

77 int 21h

78 jmp again

79

80dispexit:

81 mov ah,09h

82 lea dx,z

83 int 21h

84 int 20h

85

86

87main endp

88end start

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Password program code in assembly language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Example of Password program code in assembly language?

How to write the program un Assembly language to set a password for personal computers?


What is assembly program?

An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.


What translation programs converts assembly language programs to object program?

The only translation program that converts assembly language to machine code is an assembler.


What is an assembler in computing?

An assembler is a machine code program that converts low-level symbolic assembly language instructions into machine code. Assembly language is a second generation programming language.


What is assembler in computer?

An assembler is a machine code program that converts low-level symbolic assembly language instructions into machine code. Assembly language is a second generation programming language.


An assembler converts source program into?

An Assembler converts an assembly language source code into machine-specific code.


How do you write a program in 8085?

Either in Assembly or in some high level language/the hex-code (for the mnemonics) that the microprocessor 8085 generally understands.


What is the historical development of assembly language?

Assembly language was created in the 50's so that way programmers didn't have to program directly in machine code, which required looking up numerous instruction codes in a huge manual. Nowadays, most people don't program in assembly language, or any other low-level language for that matter. We use a high-level language, such as C++ or Java. However, people will program in assembly if optimization is required that a high-level language doesn't support.


What are high level languages how they differ from assembly languages?

HIGH LEVEL LANGUAGE The program weitten in English language which eassier to understand by user is called high level language. ASSEMBLY LANGUAGE The program written in symbolics form is called assembly language. In which the symbols are used like sub,mul,div, etc.it also called symbolic language. DIFFERENCE HIGH LEVEL LANGUAGE ASSEMBLY LANGUAGE 1) It is a source code. 1) It is a object code. 2) It is convertd in machine 2) It is convertd in machine language using compiler. language using assemblier.


Which wii give High-level programming language from machine language?

You cannot convert machine code to high-level language. It's a one-way process. The best you can do is disassemble a machine code program, producing code similar to assembly language.


What do you mean by assmembly language?

Assembly language is a low-level programming language that closely corresponds to machine code instructions for a specific processor. It uses mnemonic codes to represent machine-level instructions, making it easier for humans to write and understand compared to binary machine code. Assembly language programs must be translated into machine code by an assembler before they can be executed by the computer.


Which language use mnemonic code?

assembly language