Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please provide a working MIPS MARS assembly code. I am asked to convert decimal(ascii) to binary. The code cannot have input syscall or syscall 35.

Please provide a working MIPS MARS assembly code. I am asked to convert decimal(ascii) to binary. The code cannot have input syscall or syscall 35. For the input you must have it in the program arguments box(Similar to the first picture). I am asked to have bitmasks in the code from decimal to binary, strings, and a mult/multu.

The mult/multu will be used so the digit can move over one space and the next digit can take the ones place. When you convert ascii to decimal

To get the program argument box its SETTINGS -> check "Program arguments provided in MIPS argument"

image text in transcribed

image text in transcribedthese are sample outputs

E: File Edit Run Settings Tools Help Run speed at max Edit Execute Text Segment Program Arguments: 1234567 Bkpt Address Code Basic Source 0x00003000 0x00000000 nop 0x00003004 0x00000000 x0000300e 0xeca80000 1w 8,0x00000000 (65)4: 0x0000300c 0x81090000 1b 59,0x00000000 (58)5: 0x00003010 0x00000000 nop 2: 3: nop lw Sto, (a1) E: File Edit Run Settings Tools Help Run speed at max Edit Execute Text Segment Program Arguments: 1234567 Bkpt Address Code Basic Source 0x00003000 0x00000000 nop 0x00003004 0x00000000 x0000300e 0xeca80000 1w 8,0x00000000 (65)4: 0x0000300c 0x81090000 1b 59,0x00000000 (58)5: 0x00003010 0x00000000 nop 2: 3: nop lw Sto, (a1)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions