Aim: In this experiment, students will be introduced to the INT 21H subroutines provided by DOS operating system for I/O

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Aim: In this experiment, students will be introduced to the INT 21H subroutines provided by DOS operating system for I/O

Post by answerhappygod »

Aim In This Experiment Students Will Be Introduced To The Int 21h Subroutines Provided By Dos Operating System For I O 1
Aim In This Experiment Students Will Be Introduced To The Int 21h Subroutines Provided By Dos Operating System For I O 1 (31.1 KiB) Viewed 40 times
Aim In This Experiment Students Will Be Introduced To The Int 21h Subroutines Provided By Dos Operating System For I O 2
Aim In This Experiment Students Will Be Introduced To The Int 21h Subroutines Provided By Dos Operating System For I O 2 (38.18 KiB) Viewed 40 times
Aim In This Experiment Students Will Be Introduced To The Int 21h Subroutines Provided By Dos Operating System For I O 3
Aim In This Experiment Students Will Be Introduced To The Int 21h Subroutines Provided By Dos Operating System For I O 3 (66.58 KiB) Viewed 40 times
Aim: In this experiment, students will be introduced to the INT 21H subroutines provided by DOS operating system for I/O programming Background: 1- Service Oth: Get character with echo MODEL SMALL STACK 64 .DATA .CODE mov ax, @data mov ds, ax mov ah, 01h int21h 2- Service 02: Print character MODEL SMALL STACK 64 DATA .CODE mov ax, @data mov ds, ax mov ah, 02h mov dl, ASCII Code int 21h mov ah, 4ch int 21h END AX mov ah, 4Ch int 21h END AX ASCII code of character (from keyboard) Ex: 61 01 02 AH AL AH AL DX ASCII Code DH DL
3- Service 08h: Get character without cho .MODEL SMALL STACK 64 DATA .CODE movax, data mov ds, ax 4- Service 09: Print string MODEL SMALL STACK 64 DATA MSG DB 'HELLO",13,10,'S .CODE movax, data mov ds, ax mov ah, Osh int 21h moy ah, 09h mov ds, offset MSG int 21h mov ah, 4Ch int 21h END ASCII code of character (thom keyboard moval, 4Ch int 21h END AX 7 08 AX AH AL 09 AH AL DX Offset of the message DH DL Experimental Work: 1. Use a text editor and write an 80x86 assembly language program that will read a character from the keyboard, echo it and print the next character on the screen. Sample output: Stepl. if you press g then Step2. gh should be printed on the screen 2. Use a text editor and write an 80x86 assembly language program that will read a character from the keyboard, echo it and print the next ten characters on the screen. Sample output: Stepl. if you press then Step2. CDEFGHIJKLM should be printed on the screen
ASCII Table: Dec Hex Char 32 20 Space 33 21 97 98 02 34 22 N Dec Hex Char 000 Nul 1 01 Start of heading 2 Start of text 3 03 End of text 4 04 End of transmit 5 05 Enquiry 6 06 Acknowledge 7 07 Audible bel 8 08 Backspace 9 09 Horizontaltab 10 OA Line foed 11 OB Vertical tab 12 OC Form feed 13 OD Carriage return 14 OE Shift out 15 OF Shift in 16 10 Datalink escape 17 11 Device control 1 18 12 Device control 2 13 Device control 3 20 Device control 4 21 15 Neg acknowledge 22 16 Synchronous ille 17 End trans block 24 18 Cancel 25 End of medium 26 1A Substution 27 13 Escape 28 10 File separator 29 10 Group separator 30 12 Record separator 31 17 Unit separator 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 Dec Hex Chor 64 40 @ 65 41 A 66 42 B 62 43 с 68 44 D 69 45 E 70 46 F 71 47 G 72 48 н 73 49 1 74 4A J 75 4B K 76 4С L 77 4D M 78 4E N 79 4F 80 50 P 81 51 82 52 R 83 53 84 54 T 85 55 U 86 56 V 87 57 W 58 X 59 Y Z 91 SB [ 92 5C 93 5D ] 94 SE A 95 SY 23 # 24 $ 25 5 26 G 27 + 28 ( 29 ) 2A . 2B + 2C . 2D 2E . 2F / 30 0 31 1 32 2 33 3 34 4 35 5 36 6 37 7 38 B 39 9 ЗА : 3B 30 < 3D эЕ » 3F 2 Dec Hex Char 96 60 61 62 b 99 63 100 64 d 101 65 e 102 66 t 103 67 g 104 68 h 105 69 1 106 6A 3 107 68 X 108 6C 1 109 6D m 110 6E n 111 6F o 112 70 р 113 71 a 114 72 r 115 73 3 116 74 t 117 75 u 118 76 V 119 120 78 X 121 79 Y 122 2 123 7B ( 124 70 1 125 7D > 126 7 127 78 0 ZOO 005 19 NNNN WNO OBOJ 0 14 лооли и о JONA NOON 23 77 55 56 09890889 OS. 19 57 7A 58 59 60 61 62 63 и 0 0 1 л олол -
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply