Advertisement

04.14.2007 at 09:22AM PDT, ID: 22511460
[x]
Attachment Details

color coding in ASCII

Asked by saba84516 in Assembly Programming Language

Tags: color, ascii, background, code

Dear friends i am new on assembly language please writer the codes for these questions so that i can understand the assembly language more breifly. Thanks

1.      Write ‘A’ with white foreground and blue background color. (ASCII code of ‘A’ is 0x41).
                        
2.      Write ‘B’ with blue foreground and white background color. (ASCII code of ‘B’ is 0x42)
 
3.      Write ‘x’ with red foreground and green background color. (ASCII code of ‘x’ is 0x78)
                         
4.      Write ‘y’ with green foreground and red background color. (ASCII code of ‘y’ is 0x79)
                           
5.      Write ‘z’ with normal attribute and blinking. (ASCII code of ‘c’ is 0x7A).
                         
An example is solved for you:
•      Write ‘blank space’ on red background color. (ASCII code of ‘blank space’ is 0x20)

Solution:
      mov ax, 0x4720
Start Free Trial
[+][-]04.15.2007 at 12:32AM PDT, ID: 18913080

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Assembly Programming Language
Tags: color, ascii, background, code
Sign Up Now!
Solution Provided By: mzvika
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.16.2007 at 04:47PM PDT, ID: 18921441

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.21.2007 at 06:55PM PDT, ID: 19131332

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.26.2007 at 07:11PM PDT, ID: 19163298

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32