DATA: section .data ;The stuff which follows is data
org $1000
array dc.w -2185,1468,3017,-3662,388,-2305
loopf ldx array ;check index i
cpx -7 ;if i is greater than n2, exit the loop … ; performs loop operations
blt next: ; if no less than -7 just increment array
emuls ;multiply if greater than -7
sty array ;m[$1000] Å Y
inc array
next: inc array
end
. Declare the following array of words at address $1000: {-2185, 1468, 3017, -3662, 388, -2305...
e. te the complete assembler directive to achieve the followings: Write the complete directive Action Declare byte memory variable VAR1 and initialize it to hex 7A Declare 16-bit memory variable VAR1 and initialize it to hex 7A6D Declare array ARRAY1 which contains 100 bytes Set the assembler to begin at address hex 2000 HCS12 branch instructions: h. Action Write the corresponding instruction Branch if Greater Than or Cqual Branch if Greater Than Branch if Less Than or Equal Branch if...
(By using HCS12 assembly)You have a table of 10 Fahrenheit temperatures stored as words in Flash. Use the posted lab1_b.asm file as starting point. Write an assembly program that converts every Fahrenheit temperature element in Fahrs array into a Celsius temperature and stores the result at the corresponding element in Cels array. Use this relation: C = (5/ 9) * (F 32) for conversion. Because temperatures are signed, you will have to use signed multiplication and division instructions in your...
5 Exercises Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A- The MiteASM Assembler and Appendix B - The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should display a count on the 7-segment display. The count should increase by 1 when button 0 is 1. pressed. It should reset to 0 when button 1 is...
There is an example below
Now that everything is working you can try the following exercises. To complete them you will need to refer to the documentation in Appendix A The MiteASM Assembler and Appendix B The MiteFPGA Processor. Write an assembly language program for an over counter for a cricket umpire. This should 1. display a count on the 7-segment display. The count should increase by 1 when button 0 is pressed. It should reset to 0 when button...