Please first read the question carefully
ID-2015200000091
Section- 11
May this will help you...
.LC0:
.string "%lf"
main:
stp x29, x30, [sp, -64]!
mov x29, sp
str d8, [sp, 16]
fmov d0, 1.1e+1
str d0, [sp, 56]
adrp x0, .LC1
ldr x0, [x0, #:lo12:.LC1]
str x0, [sp, 48]
ldr d0, [sp, 48]
bl first_two
fmov d1, d0
ldr d0, [sp, 56]
fmul d8, d1, d0
ldr d0, [sp, 48]
bl last_two
fmul d0, d8, d0
str d0, [sp, 40]
ldr d0, [sp, 40]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
ldr d8, [sp, 16]
ldp x29, x30, [sp], 64
ret
first_two:
sub sp, sp, #16
str d0, [sp, 8]
b .L4
.L5:
fmov d0, 1.0e+1
ldr d1, [sp, 8]
fdiv d0, d1, d0
str d0, [sp, 8]
.L4:
ldr d0, [sp, 8]
mov x0, 4636737291354636288
fmov d1, x0
fcmpe d0, d1
bge .L5
ldr x0, [sp, 8]
fmov d0, x0
add sp, sp, 16
ret
last_two:
stp x29, x30, [sp, -48]!
mov x29, sp
str d0, [sp, 24]
mov x0, 4636737291354636288
str x0, [sp, 40]
ldr d1, [sp, 40]
ldr d0, [sp, 24]
bl fmod
ldp x29, x30, [sp], 48
ret
.LC1:
.word 2072358912
.word 1115509556
Please first read the question carefully ID-2015200000091 Section- 11 Question 1. Write an assembly(8085) code to...
MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by providing the full MARIE RTN (register transfer notation) for the described operation. Your answer should include the fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. When you see X in these instructions, this is a main memory address (the last 12 bits of the 16-bit instruction) – refer to this as IR[11..0] and not X. Problem: LoadZero X – this is...
x86 Assembly Language:
Question 49 5pts Write a short code segment. Make your code as short as possible Create a macro named Mult16 that multiplies any two signed 16 bit memory operands and produces a 16-bit product. Assume the calculations are never exceeding 16 bits at any time. HTML B TVA. I Exaaxx - Du 01
MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by providing the full MARIE RTN (register transfer notation) for the described operation. Your answer should include the fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. When you see X in these instructions, this is a main memory address (the last 12 bits of the 16-bit instruction) – refer to this as IR[11..0] and not X. Also, assume there is an additional...
MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by providing the full MARIE RTN (register transfer notation) for the described operation. Your answer should include the fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. When you see X in these instructions, this is a main memory address (the last 12 bits of the 16-bit instruction) – refer to this as IR[11..0] and not X. Problem: ClearIndirect X – X is...
MARIE Assembly Code Problem For the following problem, please create new MARIE instructions by providing the full MARIE RTN (register transfer notation) for the described operation. Your answer should include the fetch, decode, operand fetch (if necessary), execution and store result (if necessary) stages. When you see X in these instructions, this is a main memory address (the last 12 bits of the 16-bit instruction) – refer to this as IR[11..0] and not X. Problem: ClearIndirect X – X is...
Write in c++ please Read and write 5 students information such as, Student ID, first name, last name, GPA and Student Major from the txt file using Structure.
In this problem, you will write a LC-3 assembly code that removes blank spaces from a string. Assume that the string starts at memory location 0x5000, and is terminated by a ‘\0’ character (ASCII value = 0). Your program should store the modified string in the memory location starting at 0x5100. You do not need to modify the original string stored at 0x5000. You can assume that the original string at 0x5000 will always be less than 100 characters in...
Examination #2 100 points CS248 Theory of Computation 1. Please read all instructions (including these) carefully. You should look through the entire exam before strategy. You have 50 minutes to complete the exam. This exam is closed books and closed notes. 2. Please write your solutions in the spaces provided on the exam. Make sure your solutions are neat and the exam pages as scratch paper. (Last 4 digits o NAME: (Print) First Last In accordance with both the letter...
Please code following question in Java. Q) Prompt the user to enter the first initial of their first name. Then prompt the user to enter their full last name. Then prompt the user to enter the last 4 digits of their student ID.
1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx ) - (eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax = 0x15DBCB19. At the end of your code ecx = 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5. Write one line of code in...