Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
q determine the use of loop instructionprogramthis program prints the alphabets a-z register used ax cx dxcode segmentassume cs
q define looping in assembly languagelooping program assume a constant inflation factor that is added to a series of prices stored in the memory
q show the conditional jump in programcmp ax bx compare
example cmp axbx compare
q programming with loops and comparisonsthis segment deals with more practical illustrations employing comparison loops and shift instructionssimple
q how are comparisons done in 8086 assembly language there is a compare instruction cmp though this instruction just sets the flags on comparing two
add a byte number from one memory location to a byte from subsequent memory location and put sum in the third memory location also save carry flag in
application using shift operationsrotate and shift instructions are helpful even for division andmultiplication these operations are not normally
q find the average of two valuesfind the average of two values which are stored in memory locations named first and second and puts result in
q program for interchanging the values of two memory locationsprogram for interchanging the values of two memory locations input two memory
data transfertwo most fundamental data transfer instructions in 8086 microprocessor are xchg and mov lets give illustrations of the use of these
preparation of writing the program 1 write an algorithm for your program closer to assembly language for instance the algorithm for preceding
data segment num1 db 15h first number num2
q illustration of equivalent exe programan illustration of equivalent exe program for com program is abstract this program adds 2 8-bit numbers in
q define about exe programsan exe program is stored on disk with extension exe exe programs are longer than com programs as every exe program is
cseg segment assume cscseg dscseg sscseg org 100hstartmov ax cseg initialise data segment mov ds ax register using ax mov al num1 take
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