Image text transcribed for accessibility: Due Monday Feb 20 at the beginning of class. Write a program segment using directives that initialize memory locations $6039 and $603A with decimal numbers 169 and 23. respectively. You only need to show the necessary lines of code, not a full functional program. Prepare a flowchart or pseudo code for an algorithm that will implement the following actions. Note that you do not need actual ASM code, just an outline for the algorithm. Initialize acc A and acc B to known values Without affecting values m acc A or acc B. sequentially read 16-bit data values from memory starting at $2600. and swap the contents of acc A and acc B whenever an even number is read stop reading values when an $00 is read Clear acc A and acc B before ending CCR Flags and Branches: Consider the instruction sequence: LDAB #$2A SUBB #$29 Evaluate the numeric result assuming S2C numbers. Determine the values of CCR flags C. V. Z. and N. Specify which of these branch instructions would be taken or not taken: BEQ. BNE. BMI. BPL. BVS. BVC. BHS. BHI. BLS. BLO For the code below identify the number of machine code bytes in each line and calculate the relative offset (in hexadecimal) required for the BRA instruction Do this by hand using the instruction tables and show your work. LDAB #$FF LDX $60FE STAB $01.X DECS DEX BRA Loop The program segment below includes a loop that will decrement acc A. For this program to store a value of $00 in address $6020. what label (AA. BB. etc.) needs to replace the XX in the BEQ XX instruction? LDAA #$CC AA BEQ XX BB LDAB #$FF CC DECA DD BRA AA EE STAA $6020 FF STAB $6021 What values are in memory locations $6150 and $615E after the following program segment is executed? LDY #$615D LDD #$403D STD O.Y BCLR 1.Y.$21 BSET O.Y.$44 What time delay is provided by the following program segment loop if the clock frequency is 10MHz? LP1 LDAA #SE0 LDX #S60E8 LP2 LDAB #SFF DECB ROR B.X DECA BEQ DUN BRA LP2 DUN END Write a program segment delay loop that will create a 0.5sec delay when the clock frequency is 500kHz. Show your calculations and your code.