Please create the assembly code file with following instructions. Note: The coding language is Assembly and the board is
Posted: Tue Jun 07, 2022 11:23 am
Please create the assembly code file with following
instructions.
Note: The coding language is Assembly and the board is the
DE10-NANO:
logic gate example:
To extend the previous program, we aim to determine the values of A and C dynamically by controlling external DIP switch set with 8 positions. For example, A3 A₂ A₁ A= C₂ C₂ C₁ C₂ ON WP A[3:0] WP[1:4] (D7-4-0b1010) and C[3:0] WP[5:8] (D3-0=0b0011). 12345678 Dq Ds Ds Dg Dj D₂ Dj Do Check the memory location of ANS and take a screenshot of the answer in the MEMORY page from the Monitor Program.
AND logic Logic Shift Load Base Address of JP1 or JP7 Load the values from the JP1/7 Use a MASK to get LEFT four bits, do some transform to get the value as A; Load B Use a MASK to get RIGHT four bits to get the value as C; Load D Multiply A by B, and C by D. Add (A*B) to (C*D) Load the MA of ANS Store the result to ANS
instructions.
Note: The coding language is Assembly and the board is the
DE10-NANO:
logic gate example:
To extend the previous program, we aim to determine the values of A and C dynamically by controlling external DIP switch set with 8 positions. For example, A3 A₂ A₁ A= C₂ C₂ C₁ C₂ ON WP A[3:0] WP[1:4] (D7-4-0b1010) and C[3:0] WP[5:8] (D3-0=0b0011). 12345678 Dq Ds Ds Dg Dj D₂ Dj Do Check the memory location of ANS and take a screenshot of the answer in the MEMORY page from the Monitor Program.
AND logic Logic Shift Load Base Address of JP1 or JP7 Load the values from the JP1/7 Use a MASK to get LEFT four bits, do some transform to get the value as A; Load B Use a MASK to get RIGHT four bits to get the value as C; Load D Multiply A by B, and C by D. Add (A*B) to (C*D) Load the MA of ANS Store the result to ANS