CS609 ASSIGNMENT 1 SOLUTION 2022.
CS609 ASSIGNMENT 1 SOLUTION FALL 2021
SEE ALSO:
CS431 ASSIGNMENT 1 SOLUTION 2021
1)data about intdos()feature:intdos()characteristic’s signature is:int intdos(union regs *in_regs, union regs *out_regs);this function units the check in values as given in in_regsand then calls dos machine call 0x21. On go back, out_regsis set to the value of the gadget registers.
2)regs union:the whole regs union is defined in dos.H header record and it’s miles to be had in lecture 2 (web page 17 of handouts). Anticipate there is a cflagvariable described in fullstruct….Unsigned int cflag;…
Three)after invokingintdos()function, if deliver flag is about, printyour entire pupil identity and if carry flag is not set, print your whole name.
Four)sample output:the output of this characteristic might also appear like:(screenshots in answer aren’t required. Screenshots do no longer deliver any marks. Simplest code of the feature is needed)
Checking bring flag = set
My student id is bc123456789
Checking carry flag = no longer-set
My name is muhammad umair
Query 2: calculating value of ax from ah and al(5 marks)in intel 8088/8086,the general-reason register ax includes parts, the excessive-part ah and the low-part al. Assume ah incorporates 10 and al contains 116. Calculate the cost of ax (show all calculations).