Page 1 of 1

Please write assembly file with the following instructions. Note: The coding language is Assembly and the board is used

Posted: Tue Jun 07, 2022 11:24 am
by answerhappygod
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.
Please Write Assembly File With The Following Instructions Note The Coding Language Is Assembly And The Board Is Used 1
Please Write Assembly File With The Following Instructions Note The Coding Language Is Assembly And The Board Is Used 1 (49.07 KiB) Viewed 37 times
logic gate example of the problem:
Please Write Assembly File With The Following Instructions Note The Coding Language Is Assembly And The Board Is Used 2
Please Write Assembly File With The Following Instructions Note The Coding Language Is Assembly And The Board Is Used 2 (69.12 KiB) Viewed 37 times
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.