Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write an MC68000 assembly language program that will computethe net pay for an e

ID: 3609420 • Letter: W

Question

Write an MC68000 assembly language program that will computethe net pay for an employee    * The employer has povided the individual'sgross earning     * Taxes must be deducted from thegross earnings as follows:          Federal tax =35% of gross amount          SocialSecurity & Medicare = 7% of gross amount          Statetax =2% of gross amount    * The individual's net pay can be computedas:         Net pay = Grossearnings - Sum of all taxes. Your program should assume that the gross earnings amount hasbeen initially stored in register D1 Your program should store the results in the followingregisters    (D4) = Federal tex    (D3)=Social Security & Medicare    (D2)=State tax    (D6)= Net pay All amounts can be kept in round $$(alternatively as$$.cc) Start your program at address $1600 Use all necessary assembly directives Include global comments... Write an MC68000 assembly language program that will computethe net pay for an employee    * The employer has povided the individual'sgross earning     * Taxes must be deducted from thegross earnings as follows:          Federal tax =35% of gross amount          SocialSecurity & Medicare = 7% of gross amount          Statetax =2% of gross amount    * The individual's net pay can be computedas:         Net pay = Grossearnings - Sum of all taxes. Your program should assume that the gross earnings amount hasbeen initially stored in register D1 Your program should store the results in the followingregisters    (D4) = Federal tex    (D3)=Social Security & Medicare    (D2)=State tax    (D6)= Net pay All amounts can be kept in round $$(alternatively as$$.cc) Start your program at address $1600 Use all necessary assembly directives Include global comments...

Explanation / Answer

Dear, floating point values will store fp registers. Forfloating point instructions we have to use if ADD we replace forfloting point add as FADD, etc.   ORG       $1600     CLR D4 CLRD1                                 FMOVE $$value1,FP4    // Move 0.35value to FP4 MOVE   $$value2, D1   //Gross earnings amount move to FP1 FMUL    D1,FP4      // Federal Tax will store inFP4 MOVE   FP4,D4      // Store federal tax inD4           CLR D3   FMOVE  $$value3,FP3    //Move 0.07 value to FP3   FMUL    D1,FP3      // Social Security &Medicare Tax will store in FP3 MOVE   FP3,D3      // Store Social Security& Medicare tax in D3      FMUL    D1,FP3      // Social Security &Medicare Tax will store in FP3 MOVE   FP3,D3      // Store Social Security& Medicare tax in D3 CLR D2   FMOVE  $$value4,FP2    //Move 0.07 value to FP2   FMUL    D1,FP2      // State Tax will storein FP2 MOVE   FP2,D2      // Store State tax inD2 CLR      D6 ADD      D4,D6      // Federal tax store inD6   ADD      D3,D6      // Social Security &Medicare tax add in D6 ADD      D2,D6     // State tax add to D6 (now the sum of 3taxes has added) SUB   D1,D6         // Net payamount has stored in D6. I hope this will helps you!!   FMUL    D1,FP2      // State Tax will storein FP2 MOVE   FP2,D2      // Store State tax inD2 CLR      D6 ADD      D4,D6      // Federal tax store inD6   ADD      D3,D6      // Social Security &Medicare tax add in D6 ADD      D2,D6     // State tax add to D6 (now the sum of 3taxes has added) SUB   D1,D6         // Net payamount has stored in D6. I hope this will helps you!!
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote