I have to write a little program in assembly for the MIPS architecture. To be more specific it should be a procedure which takes a register and prints the value of it. It is allowed to use everything excepted a call of print_int. My procedure does: 1. Split up the given register into digits 2. Convert them into ascii 3. Store them on the stack I now have values like 52 or 53 on the stack and I want to print them with print_string but how can I achieve this? Thanks for your help.
1
There are 1 answers
Related Questions in ASSEMBLY
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- How to call a C language function from x86 assembly code?
- Binary Bomb Phase 2 - Decoding Assembly
- AVR Assembly Clock Cycle
- Understanding the differences between mov and lea instructions in x86 assembly
- ARM Assembly code is not executing in Vitis IDE
- Which version of ARM does the M1 chip run on?
- Why would %rbp not be equal to the value of %rsp, which is 0x28?
- Move immediate 8-bit value into RSI, RDI, RSP or RBP
- Unable to run get .exe file from assembly NASM
- DOSbox automatically freezes and crashes without any prompt warnings
- Load function written in amd64 assembly into memory and call it
- link.exe unresolved external symbol _mainCRTStartup
- x86 Wrote a boot loader that prints a message to the screen but the characters are completely different to what I expected
- running an imf file using dosbox in parallel to a game
Related Questions in ASCII
- Dart: how to convert Hex String to Ascii string
- Reading character entity reference tag content in C++
- Convet byte[] in ASCII
- Visual C++ - how can I turn a unicode character into char or string?
- Saving a numpy array in ascii format
- Ascii doc syntaxes not provide consistent output & not working as expected
- Why does $'\141' convert to ASCII 'a' as expected, but constructing the same string doesn't convert?
- How would one render a QR code in the logs of a GitHub workflow?
- Is there a recommended way to plot data using ascii symbols?
- Converting ASCII to Unary
- Doesnt \n remain in the buffer?
- Are we able to specify the Answer's XML encoding? Or does Mturk control that?
- C ASCII to Hex (atoh) Function
- ASCII to decimal conversion
- Bcrypt Password Truncation issue solution or Hashing Long Passwords with Bcrypt in Java?
Related Questions in MIPS
- My prompt message not working in mips program
- How do I extract ints from an array using MIPS Assembly?
- MIPS Aiken to Binary
- Can anyone help me understand why my MIPS assembly code isn't adding or subtracting correctly?
- MIPS runtime error "line 31: Runtime exception at 0x00400038: address out of range 0x7fbffffc Go: execution terminated with errors."
- Getting the error "Error in : invalid program counter value: 0x00000000 Go: execution terminated with errors. " in MIPS assembly
- MIPS $a_ and $v_ registers producing incorrect output
- MIPS pipeline forwarding
- -- program is finished running (dropped off bottom) --
- Implementing beq instruction to a simple control unit in logisim
- MIPS Assembly Language invalid program counter value error
- Code wont stop running in MIPS assembly simulation
- How to read controle signals from the opcode for a single-clock processor
- "Illegal instruction" appear when try to get PRID by mfc0 instruction on Loongson-3A R4 (MIPS64)?
- Seeking Verification: MIPS Cache Set Update Analysis
Related Questions in SPIM
- Continuous Arithmetic Overflow
- Spim MIPS Simulator not launching (Stanford cs143)
- MIPS lbu doesn't work unless program is run twice
- Floating Point Numbers but the output is always 0
- How would I go about programming the recursive sequence below in QtSpim/MIPS
- using stack frame to push in parameters in order to calculate Fibbonnacci sequence but keep getting a 1 as a return value
- Having trouble printing strings in MIPS using (qtSPIM)
- Why A and B registers are used in multicycle Datapath?
- How do you enter command line arguments in SPIM
- Keep getting an exception 5 [address error in store] followed by unaligned address in store. How can I fix this?
- how to empty all the registers already used, to restart the program in MIPS?
- MIPS - SPIM parser immediate value out of range for bitwise ANDI
- initial stack pointer is not 0x7fffffff in MIPS
- Undefined symbol in MIPS
- Substitution for %hi and %lo in MIPS
Related Questions in QTSPIM
- Qtspim mips assembly
- Having trouble getting MIPs code to work specifically in QTSpim due to apparent lack of support for registers a4 and a5
- MIPS: Loading values from memory, adding them, then storing them back in memory
- I can't find the error in my MIPS assembly code
- Why am i getting an error on the sb function in my integer to string loop?
- My beq condition isnt working - why cant it see the whitespace?
- I am having an issue with byte alignment and im not sure what to change or how to fix it (MIPS)
- Why am I getting an error on QtSpim when I try to accumulate the red values in a pixel for calculating the average
- Just Downloaded QtSPim and I cannot run the first program
- MIPS lbu doesn't work unless program is run twice
- Identify original text, assembled code and machine code in QtSPIM simulator
- Call label in different mips file
- How can I resolve this error in miips for taking input of array elements and printing them?It gives the error Unaligned address
- MIPS 2x2 Matrix Multiplication Code Logical Error
- QtSpim probably misbehaves when loading a value of a .byte element
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You write 3. Store them on the stack. Since you are allowed to use everything excepted a call of print_int why don't you store them in succesive memory bytes before using print_string to ouput the result.