Please help and answer in a PSEUDO Code format in assembly language! Thanks
a) 23567=>nb; b=9
Begin:
Input: 2356
Output: nb
Convert Decimal:
initialise i=0, sum=0
while input not equal 0
sum=sum+(input%10)*7i
input=input/10
increment i by 1
end while
return sum
Convert Base 9:
initialise val=0
initialise i=0
while sum not equal 0
val=(sum%9)*10i +val
sum=sum/9
increment i by 1
end while
return val
End
Answer is 23567=11719
b) nb=nc b,c<10
Begin:
Input: nb
Output: nc
Convert Decimal:
initialise i=0, sum=0
while input not equal 0
sum=sum+(input%10)*bi
input=input/10
increment i by 1
end while
return sum
Convert Base c:
initialise val=0
initialise i=0
while sum not equal 0
val=(sum%c)*10i +val
sum=sum/c
increment i by 1
end while
return val
End
Please help and answer in a PSEUDO Code format in assembly language! Thanks PROJECT (a) write...
Easy 68k code - assembly language Write a 68K program that reads two integers (>10 and <225) of the keyboard, adds them together and multiplies them, writes the numbers and the results of addition and multiplication on the screen. If the numbers are not on the range, writes an error message and requests a new number. Example of the execution: Insert the first number: 10 Insert the second number:15 The sum is: 25 The product is: 150 Please take a...
1) Convert the following C code into MIPS assembly For (b-0; b<N, ++b) C-Z[b] If (Z[b]>W) W-Z[b] note: assign array Z, integers C and integer W to registers $SO, $S1, $S2 respectively. Put comments for each assembly line to explain its purpose.
1.Write a set of PIC assembly language instructions for each of the following flowcharts: 〈VALUE-20H TRUE VALUE> 30 TRUE 11 FALSE □ FALSE Instruction Set Instruction Set
Using scheme language, write the code for the following question 3 Define a procedure "Product" that takes two parameters and returns the product of them. Then, call you procedure using [5 points] > (Product 1040) 03d
This code needs to be written in Assembly language using Keil uvision 5. Please use Keil Assembler. Or ARM assembly. Thanks. int main(void) { // initializing int R0 = 5; int R1 = 10; // for loop addition with CMP while(RO <=| 10) R$++; // for loop subtraction without CMP#10 while(R1 > 0) R1--; // if else statement if (RO > 0) R0 = 10; R1 = 10; else | R0 = 20; R1 = 30; // must using branching...
Please answer the Stochastic Calculus in Finance question 12 and write legibly 12. Let p and q be constants with p > 0, and let zi and z2 be extended numbers. Verify that /2p where Φ(00) :--1 and Φ(-oo) :--0.
5. Use Rice's Theorem to prove the undecidablity of the following language. P = {< M > M is a TM and 1011 E L(M)}.
8. RC step response 1point possible (graded) + 01 5 AF The voltage source is V, (t)- 30u(t) Write a formula for the voltage vi (t) in volts for t > 0: Submit
The sequence of the first twelve Lucas numbers is: 2,1,3,4,7,11,18,29,47 … Please write a program for calculating the Lucas number Ln given the number n. Print out the results given: a) n=2 ; b) n=5 and c) n=10 (**please answer in Python**) Ln 2 1 (Ln-1 + Ln-2 if n= 0 if n = 1 if n >1
2.17 [51<82.5> Provide the type, assembly language instruction, and binary representation of instruction described by the following MIPS fields: rt-8 , Just looking at the fields provided, what's the instruction op-0x23, rs-16, const-0x25F0 a. format? R-type_I-typeJ-type b. What's the instruction? In which register is the base address stored? What value will be added to that base address (in decimal): In which register will the result be stored? c. d. e.