Recent content by Margarita0076

  1. Margarita0076

    Engineering HL Programming: Mini-Assembler in Java

    This is my first time encountering bit encryption in Java. My methods: int makeR(byte opcode, byte rs, byte rt, byte rd, byte shamt, byte funct) Constructs a 32-bit integer from the component parts for an R-type instruction. int makeI(byte opcode, byte rs, byte rt, short immed) Constructs a...
  2. Margarita0076

    Engineering MIPS - Fibonacci Series: Main and fib function

    I use Mars interpreter. There are two files here. I think that I can not correctly transfer the function to a separate file. With such a transfer of code, my program simply does not start. -------1 file------- # MAIN METHOD .data prompt1: .asciiz "Enter the sequence length " prompt2: .asciiz...
  3. Margarita0076

    Engineering HL Programming: Mini-Assembler in Java

    I already wrote the regToByte method, but I don't understand how to write the makeI and makeR methods correctly. Create a mini-Assembler for a 32-bit MIPS processor; Program should accept input lines from the user until HALT is read. With each line, translate the line into MIPS machine code...
  4. Margarita0076

    Engineering MIPS - Fibonacci Series: Main and fib function

    Write and test the fib function in two linked files (Fib.asm, fib_main.asm). Your solution must be made up of a function called fib(N, &array) to store the first N elements of the Fibonacci sequence into an array in memory. The value N is passed in $a0, and the address of the array is passed in...
  5. Margarita0076

    Engineering Assembly Programming (MIPS): Convert BCD to Decimal

    I have this code which convert decimal number to binary number, but I do not understand how representation 8762 like 1000 0111 0110 0010. 8 7 6 2 1000 0111 0110 0010 .data strmsg: .asciiz "please Enter a decimal number: " .text #main method .globl main #main function main...
Back
Top