13. Complete the table below. Use only hexadecimal numbers only EBX STACK AL CODE mov ax, 5D6h push ax pushw 3467h mov ebx,3ABCDOh push ebx. DoD ax pop ebx 13. Complete the table below. Use only...
10. Complete the table below only using hexadecimal numbers: AL CODE EBX EAX [EAX] mov eax, 2567922 mov ebx, 2567922h mov [eax], eax mov ebx, [eax]
F. Complete the table below. Use only hexadecimal numbers only. All numbers are hexdecimal Instructions ebx 1 2 3 4 5 6 7 8 9 10 11 mov eax, 6 mov ebx 2E0D61E mov [eax], ebx mov eax, 4 mov ebx 7942 mov [eax], ebx mov ebx, 5 mov ebx 'Ouch' mov eax 1 mov [eax], ebx
Is this right? 15. Complete the following table in hexadecimal numbers only: INSTRUCTIONS eax ebx BYTES: 9 10 11 12 13 14 15 16 17 mov eax, 2ACB16h 002ACB16h mov ebx, 9d 002ACB16h 9h add ebx, 1d 002ACB16h Ah mov [ebx], eax 002ACB16h Ah 1 6 C B 2 A 0 0 add [ebx], ebx 002ACB16h Ah 2 0 C B 2 A 0 0 add eax, ebx 002ACB20h Ah 2 0 C B 2 A 0 0
Assume no syntax errors and all partial programs are
correct and can be run. No numbers with a minus sign is
accepted.
13. Complete the table below only using hexadecimal numbers: AL INSTRUCTIONS ebx eaX mov eax, 2 mov ebx 7D12Eh mov [eax], ebx mov eax, 4 mov ebx, 568923h mov [eax], ebx mov ebx, 3 mov [eax], ebx
8. Use pop and push operations to change the numbers in a stack from 2018 to 2019 by loading number 9 from the data section into the stack. (10 points) Final stack: Initial stack: I unknown data I unknown data 2 I- 0 9 .text .globl main main: # Your code here! .data num: .word 9
9. Consider the code below. At the location indicated by “RIGHT HERE”, what does the stack currently look like? Please draw a picture. Where will ESP and EBP currently be pointing? Add these pointers to your picture. main: push 13 push 17 call func_a add esp, 8 ret func_a: push ebp mov ebp, esp sub esp, 12 mov DWORD [ebp – 4], 19 mov DWORD [ebp – 8], 23 ; <-- RIGHT HERE. Draw a picture ; What does the...
4. Complete the following table using only hexadcimal numbers in the table P=((((2+7+5) *743) *7-1)*7 + 4) *7-2 ASSEMBLY LANGUAGE PSEUDO-CODE AL PSEUDO-CODE PEAXX mov x7 mov p. EAX:= P mov eax, p mul x add eax,5 mov p. eax mov eax. p mul x add eax, 3 mov p, eax EAX:= EAX + 5 P := P*X + 3 EAX:= P EAX: EAX*X EAX:= EAX + 3 P:= EAX
Complete StackArray.java code below. Use StackArrayDemo.java to test your implementation of StackArray.java. StackArray.java below. public class StackArray <T> { public static int CAPACITY = 100; private final T[] elements; private int topIndex; // Constructor public StackArray() { // Initialize elements // Initialize topIndex to -1 } public T peek() { // If topIndex is less than zero, return null. // Otherwise, return element from top of the stack. } public T pop() { // If topIndex is less than zero,...
Assembly MASM x86 Write a complete program that sorts dword unsigned integer array in descending order. Assume that the user doesn’t enter more than 40 integers. You MUST use the template and follow all the directions there. You can’t add any more procedures to the template. The procedures can’t use any global variables (variables that are inside .data segment). The caller of any procedures sends its argument through the stack. Inside any procedures, if you need to use a register,...
Need Help ASAP!! Below is my code and i am getting error in
(public interface stack) and in StackImplementation class. Please
help me fix it. Please provide a solution so i can fix the
error.
thank you....
package mazeGame;
import java.io.*;
import java.util.*;
public class mazeGame {
static String[][]maze;
public static void main(String[] args)
{
maze=new String[30][30];
maze=fillArray("mazefile.txt");
}
public static String[][]fillArray(String file)
{
maze = new String[30][30];
try{...