Write an assembly function which hides the cursor, Computer Engineering

Assignment Help:

Q. Write an assembly function which hides the cursor?

Write an assembly function which hides the cursor. Call it from a C program.

            . PUBLIC CUROFF

            . MODEL small, C

            . CODE

CUROFF PROC

MOV                        AH, 3                 ; get the current cursor position

XOR                         BX, BX             ; empty BX register

INT                           10h                     ; use int 10hto do above  

OR                            CH, 20h             ; force to OFF condition

MOV                        AH, 01               ; set the new cursor values

INT                           10h  

RET   

CUROFF ENDP

END 

The C program to test this routine is as follows:

# include < stdio.h 

void curoff(void);

void main()

 {

printf("%s\n, "The cursor is now turning off);

curoff();

 }

You can write another procedure in assembly language program to put cursor on. This can be done by replacing OR CH, 20h instruction by AND CH, 1Fh. You can call this new function from C program to put cursor on after curoff.


Related Discussions:- Write an assembly function which hides the cursor

How to develop an object model, How to develop an object model To deve...

How to develop an object model To develop an object model firstly identify classes and their associations, as they affect overall problem structure and approach. Then prepare

Adaptive mechanism in Ais, pls give the list of adaptive mechanism in arti...

pls give the list of adaptive mechanism in artificial immune system

Propositional inference rules - artificial intelligence, Propositional Infe...

Propositional Inference Rules -Artificial intelligence : Equivalence rules are specifically useful because of the vice-versa aspect,that means we can discover forwards andbackw

Collision free network, Hello Sir/Mam, Actually i am trying to implement th...

Hello Sir/Mam, Actually i am trying to implement the concept of MAC layer protocols in NS2..... But unfortunately i am not able to do that.... and not even able to get the code fo

Power supply in computer system, Q. Power supply in computer system? Co...

Q. Power supply in computer system? Computer operate electronically- either by power supply attained from your electric plug or batteries in case of portable computers. Though

State about sixth generation electronic computers, Sixth Generation (1990 -...

Sixth Generation (1990 - ) This  generation  begun  with  many  gains  in  parallel  computing,  both  in  hardware area and in improved understanding of how to build up algori

Operating sustem, describe the action by thread library to context switch ...

describe the action by thread library to context switch between user level threads

Future trends of microcontrollers, Currently microcontrollers are embedded ...

Currently microcontrollers are embedded within most products, typical uses are in Camera's for auto focus and display drivers, Laser printers to compute fonts and control printing.

Hardware required for superscalar processing, Q. Hardware required for supe...

Q. Hardware required for superscalar processing? For applying superscalar processing a number of special hardware should be offered that is discussed below: • The necessity

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd