Question: Use assembly language Lab 3.1.1: Straight Line Create a new project for this lab. Write and test an assembly language program that solves the following
Lab 3.1.1: Straight Line Create a new project for this lab. Write and test an assembly language program that solves the following straight line equation for y y mx b Generate an integer result as close as possible that solves the following straight-line equation for y. Generate an integer result as close as possible to the actual answer. Assume variable x is always an unsigned S-bit number The slope (m) is equal to 0.68 and the offset (b) is equal to 12, Leave the result in accumulator A. Assume value x is in the memory location labeled val. Use assembler directives to define these values. Note that the result will always fit in 8 bits Test and confirm the program is working properly by testing the following values in Val. Modify Val using the data window in the debugger. Val - Result:_ Val -10 Result: Val - 75 Result:_ Val# 200 Result: Val - 255 Result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
