Skip to content

GeorgeFarao/mips_assembly_exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIPS assembly exercises

Various exercises in the MIPS Assembly Language.

  • %in_str.s places % symbol in each character of a string.
  • 8_to_2.s: converts an octal to binary by reading it's bytes.
  • all_to_uper: converts all lowercase letters to uppercase.
  • base_n_convert.s: converts a number from base n(given by the user) to decimal.
  • bi_to_oct.s: converts a binary number to octal.
  • calc_sum.s: given a n calculates the sum Σ(i/i+1) from 1 to n.
  • char_from_str.s: read number n and prints the n-th element of a string.
  • check_float_sign.s: checks the sign of a floating point number.
  • concat_strs.s: concatinates two strings.
  • converts.s: converts all characters of a string either to lowercase or uppercase.
  • copy_2_str.s: copies two strings one after another in the same memory space.
  • count_bi_oct_dec.s: counts binary, octal, and decimal numbers in a string.
  • count_bits.s: counts the sum of a number's bits.
  • count_chars.s: counts lowercase letters, uppercase letters and numbers and symbols in a string.
  • count_epan_of_bits.s: counts how many types a pattern of bits appears inside the bits of a number.
  • count_even.s: calculates the sum of even numbers up until a given number n.
  • count_from_dec.s: counts zeros and ones in the decimal part of a floating point number.
  • count_ints.s: reads numbers and counts how many integers where given.
  • count_pos_neg_zero.s: reads numbers and counts how many possitives, negatives and zeros where given.
  • count_possitive.s: reads numbers and counts how many possitve where given.
  • count_words.s: reads a sentence and counts how many words are in it.
  • dec_to_oct_and_find_max_digit.s: converts a decimal to octal and finds the biggest octal digit.
  • div_by7.s: finds how many numbers in an array are divided by 7.
  • div_by16.s: finds if a number is divided by 16 without using division.
  • dot_in_str.s: places a dot in each possition in a string.
  • even_odd.s: finds in a number is even or odd
  • expontial.s: calculates e^x using Taylor Series.
  • fact_of_7.s: calculates factorial of 7.
  • fibonacci.s: calculates the fibonacci sequence.
  • find_biggest_num.s & find_max.s: find the biggest element of an array.
  • find_min.s: finds the smallest element of an array.
  • hamming.s: finds the hamming distance between two strings.
  • int_dec_to_bi.s: converts a decimal integer to binary.
  • int_to_letter.s: converts an integer to it's coresponding letter.
  • is_float.s: checks if a number is float.
  • is_multiple.s: checks if a number x is multiple of a number y.
  • merge_2_strs.s: merges two strings.
  • multi_chars_from_str.s: reads n and prints each character of a string multiple times.
  • mul_with14.s: multiplies a number with 14 without using multiplication.
  • oct_two_bi.s: convert an octal number to binary.
  • power.s: reads x and y numbers and calculates x^y.
  • power_of_8.s: writes a number in sum of powers of 8.
  • power_of_10.s: writes a number in sum of powers of 10.
  • prime.s: finds if a number is prime.
  • print_dec_as_bi.s: prints a decimal number as binary.
  • print_exp_fraction.s: prints the exponent and the fraction of a floating point number.
  • print_fraction.s: prints fraction of a floating point number.
  • print_ieee.s: prints a floating point number in IEEE 754.
  • print_int_bit.s: prints and int bit by bit.
  • print_pairs_from_str.s: prints first and last letter of string as pairs, then second and second from end and so on.
  • pyramid.s: prints a string as pyramid and reverse pyramid.
  • pythogoras.s: finds if the theorem of Pythagoras is true for a triangle.
  • read_double.s: reads double and counts zeros in it's exponent.
  • read_floats.s: reads float and checks if it's greater or lower than 1000.0.
  • read_sp_and_print.s: prints a character from a string each time it reads space.
  • rectangle.s: calculates the volume and the area of a rectangle.
  • remove_spaces.s: removes spaces from a string.
  • res_from_bytes.s: reads a number, splits it into four bytes and finds the largest one, the smallest one, their sum and their mean.
  • reverse_reg_stack.s: recerses the values of five registers using the stack.
  • reverse_str.s: reverses a string.
  • rottate_bits.s: rottates the bits of a number( like rol or ror).
  • rottate_str.s & rottate_str_reverse.s: rottate the letters of a string.
  • scale.s: prints a string as a ladder.
  • skip_one_char.s: reads number n and print a string skipping it's n-th character.
  • star_in_str.s: prints string a loop placing a * in each character of a string.
  • star_end_of_str.s: reads number n and prints a string placing stars(*) after it's n-th bit.
  • str_dec_to_bi.s: convert a decimal number given as string to binary.
  • string_as_pyramid.s: prints string as pyramid.
  • sum_of_squares.s: calculates the sum of squares.
  • xnor.s: calculates the logical XNOR between two nunbers.

Releases

No releases published

Packages

No packages published