CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Posts
    3

    Exclamation A very easy question (MIPS Assembly) !?

    Hi...

    I would like to print out first char ( Which is "s" ), then second char ( Which is "c" ), then ... all chars from the code below (with looping

    str: .asciiz "school"

    ...

    I can load chars with

    ---
    lb $t1, char($t2) # t2 will be increased each itme
    ---

    but I couldn`t print each char one by one...

    I use

    ---
    move $a0, $t1
    li $v0, 4
    ---

    but it aleays gives (null)...

    Any suggestion how to print one single intgeger then another from an array ???
    Thanks

  2. #2
    Join Date
    Apr 2003
    Posts
    1,755

    Re: A very easy question (MIPS Assembly) !?

    You can do the same thing as my suggestion on your other thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured