Please write assembly file with the following instructions.
Note: The coding language is Assembly and the board is used in
the instruction the DE10-NANO.
logic gate example of the problem:
Count how many times the pushbutton has been pressed and show the number on the 7-segment displays in Hexadecimal representation. Whenever it counts to the number which exceeds OxFF (255), the counter will be back to 0x00 (0) and count all over again. For implementation, rising edge-triggered scheme is recommended. KEY1 ↑ ↑ Cnt++ cnt++ cnt++ ↑ Cnt++
CHECK: Load KEY BASE Load JP1/JP7; //Load LED; Load LOOKUP Change Directions for JP1/JP7 while is used as output Init R6 = 0 Display the values on two 7-segment displays Check the pushbutton, the same as Lab 2 LDR R2, =KEY_BASE MOV R6, #0 The two 7-segment are starting from "00" The same as Lab 3.2, but do not need to load values from switches and do not need the LOOP here. Use R6 instead. Is pushbutton pressed? YES Add R6 by 1; Display the values on two 7-segment displays. Check the button; Wait for releasing the button, if the value is not equal to 0, looping; otherwise, jump to the CHECK ADD_ONE: WAIT: NO The same as Lab 3.2, but do not need LOOP here.
Please write assembly file with the following instructions. Note: The coding language is Assembly and the board is used
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am