In and th are inputs and out is the result all parameters


Write a subroutine in assembler for the HCS12, 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.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: In and th are inputs and out is the result all parameters
Reference No:- TGS0564245

Expected delivery within 24 Hours