Write a subroutine in c which toggles the cursor, Computer Engineering

Assignment Help:

Q . Write a subroutine in C which toggles the cursor?

Write a subroutine in C which toggles the cursor. It takes one argument which toggles the value between on (1) and off (0) using simplified directives:

PUBLIC CURSW

.MODEL small, C

.CODE

CURSW PROC switch: word

MOV  AX, SWITCH                         ; get flag value

XOR  AX, AX                                  ; test zero / nonzero

:

:

   // routine to test the switch and accordingly

switch off or switch on the cursor //

:

:

CURSW ENDP

            END

In a similar manner variables can be passed in C as pointers also. Values can be returned to C either by altering the variable values in C data segment or by returning the value in registers as given previously.


Related Discussions:- Write a subroutine in c which toggles the cursor

C-programing, c-program for the minimum total number of shelves

c-program for the minimum total number of shelves

Argument be passed to a subroutine in programming, How many ways can an arg...

How many ways can an argument be passed to a subroutine in programming? Ans)  An argument can be passed in two way in a programming language. They are Pass by Value and Passi

Define the identifiers of c language, Define the Identifiers of c language?...

Define the Identifiers of c language? In C the names of the functions, variables and arrays and various other user - defined items are called identifiers. The first character o

Layout for the assumed penalty, Solve the following 8-department problem us...

Solve the following 8-department problem using the MIP method.  What is the resulting layout and flow-distance score?  Note that the aspect ratio of each department should be 2.

Why we need parallel programming languages, Q. Why we need parallel program...

Q. Why we need parallel programming languages? The parallel programming languages are created for parallel computer environments.  These are developed either by creating new la

Define cpu scheduling, Define CPU scheduling. CPU scheduling is the met...

Define CPU scheduling. CPU scheduling is the method of switching the CPU among various processes. CPU scheduling is the basis of multiprogrammed operating systems. By switching

Digital Design, Design a serial 2’s complementer with a shift register and ...

Design a serial 2’s complementer with a shift register and a flip-flop

What is switched mode power supply, Q. What is Switched Mode Power Supply? ...

Q. What is Switched Mode Power Supply? SMPS is the unit into which electric supply from the mains is connected to your PC and this supplies DC to internal circuits. It is more

Explain a multiprogramming operating system, Explain a multiprogramming ope...

Explain a multiprogramming operating system? A multiprogramming operating system: It is system which allows more than one active user program or part of user program to be st

Programs portable on unix, How do you make programs portable on Unix and Do...

How do you make programs portable on Unix and Does under such circumstances? Constructors are invoked themself when the object is created for a class. There may be any number o

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