Translate the following high-level code to LEGv8 assemblycode:
double cm2inches (double cm) {
return (2.54 × cm);
}
Assume cm is in D12, return result in D0, and the constant is inglobal memory space (Base addr: X27, offset:#8)
Solution
Translate the following high-level code to LEGv8 assemblycode:
double cm2inches (double cm) {
return (2.54 × cm);
}
Assume cm is in D12, return result in D0, and the constant is inglobal memory space (Base addr: X27, offset:#8)
Solution