Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
q define com programsa com command program is binary image of a machine language program it is loaded in memory at the lowest available segment
q explain types of assembly programsassembly language programs can be written in two manners com program having all segments as part of one segment
q show a string in assembly languagemov ah 09hmov dx offset buffint 21hhere data in input buffer stored in data segment is
displaying a number supposing that two digit number 59 is stored as number 5 in bh and number 9 in bl to convert them to equivalent ascii we will add
q example to show a single digit displaying a single digit 0 to 9presume that a value 5 is stored in bl register then to output bl as ascii value add
q illustration of display on video monitordisplaying a single character display contents of bl register presume that it has a single charactermov ah
code segment set ds registermov ax data boiler plate code to set the ds register so that themov ds
q example of input a single digitinput a single digit for example 01 2 3 4 5 6 7 8 9 code segment read a single digit in bl register with
i input a single ascii character into bl register without echo on screen code segment mov ah 08h function
int 21h supports about 100 different functions a function is recognised by putting the function number in ah register for illustration if we want to
q explain keyboard input and video output a keystroke read from keyboard is termed as a console input and a character displayed on the video screen
q explain processing of an interruptthe interrupt is processed asstep 1number field in int instruction is multiplied by 4 to get its entry in
q input output in assembly programsoftware interrupt is a call to an interrupt servicing program situated in the operating system generally the
defining types of data the subsequent format is used for defining data definition format for data definition name
q define stack segment 8086 microprocessor supports word stack stack segment parameters tell the assembler to alert linker that this segment
q what is code segmentthe logical program segment is termed as code segment when linker links a program it makes a note in header section of programs
q what is segment directivesegment directive defines logical segment to which following instructions or data allocations statement belong it also
end directive ends directive ends a segment and endp directive ends a procedure and end directive ends whole program which appears as last
q what do you mean by proc directiveproc directive code segment comprises executable code for a program that includes one or more procedures defined
q define hex directivehex hex directive enables the coding of hexadecimal values in body of the program that statement directs assembler to treat
q explain list directive in assembly languagea list directive causes assembler to generate an annotated listing on printer video screen disk drive or
q what do you mean by directivesassembly languages support numerous statements this allows you to control the way in which a source program assembles
q define parameters used in program annotationparameters a parameter refines and extends the meaning that assembler attributes to keyword in a
q define keyword and identifierskeyword a keyword is a statement which defines nature of that statement if statement is a directive then keyword
q explain program source codeprogram source code every assembly language statement appears asidentifier keyword parameter