assemblymipsspimmars-simulator

Storing a very large string in a mips .asciiz


I want to store a string like this in the .data section in this type of of format:

  str: .asciiz
  "*************************************/n
   *                                   */n
   *                                   */n
   *                                   */n
   *                                   */n
   *                                   */n
   ************************************* " 

Is this possible? Or do I have to store it in a single line like:

  str: .asciiz "*************************************/n*                                   */n*                                   */n.....etc

Solution

  • You will want the second method. Different simulators may not have support for multi-line strings.