Write a subroutine, called FUZZY, that performs the I/O function that performs:
ID: 1933957 • Letter: W
Question
Write a subroutine, called FUZZY, that performs the I/O function that performs: If "In" is greater than or equal to "Th", then "Out" = 0, else if "In" is less than "Th" then "Out" = (255*(Th-In))/Th. In and Th are inputs and Out is the result. All parameters are 8-bit unsigned integers. A typical calling shows that the two inputs, In and Th, are passed on the stack and the return parameter Out, is returned in RegB. An example of the main program is this, I just need help with the subroutine. ldaa #150 psha ldaa #90 psha jsr FUSSY ins ins //Register B should now contain 102: which is (255*(150-90))/150 = 102Explanation / Answer
( Destination : in out String; Pointer : in out Integer; Value : Confidence; Field : Natural := 0; Justify : Strings_Edit.Alignment := Strings_Edit.Left; Fill : Character := ' ' );
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.