Question: II. I/O Programming Examples A. Write and execute the program as follows and note the results: XXXX address Instruction Comment 100 MOV cx, 001A ;WE

 II. I/O Programming Examples A. Write and execute the program as

II. I/O Programming Examples A. Write and execute the program as follows and note the results: XXXX address Instruction Comment 100 MOV cx, 001A ;WE WILL USE CX AS A COUNTER, 1A=26 DECIMAL MOV DL, 40 ; PREPARE HEX CHARACTER FOR WRITING TO SCREEN. INC DL ;VALUE NOW IS 41H OR THE LETTER A IN ASCII. MOV AH,02 ;SERVICE FOR WRITING TO SCREEN IS 02 AND INT 21 INT 21 ;WRITE CHARACTER FROM DL REG. TO THE SCREEN. DEC CX ;SEE IF IT IS 26 TIMES, IF NOT, JNZ XXXX ;GO BACK AND ADD 1 TO CL TO GET NEXT LETTER. INT 3 ;HALT IF 26 TIMES (ALL 26 ALPHABETS WRITTEN). Set the IP to 100 and execute the program by entering G. B. Change the program to write the numbers 0 thru 9 to the screen. III. Using the BX Register in the Register Indirect Mode An instruction that has the BX register placed in square brackets is register indirect addressing. This means to use the number that is in the BX register as an address. Therefore, if 41H (the ASCII value for the letter A) is placed at the address 400, then the instructions MOV BX, 400 followed by MOV DL, [BX] will move the code for the letter A into the DL register. Demonstrate this by placing the code for A at address 400, moving this code to the DL register and writing the letter to the screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!