User Tag List

Results 1 to 5 of 5

Thread: Writing subs for multiple line codes?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Writing subs for multiple line codes?

    User Info Menu

    Writing subs for multiple line codes?

    Can someone explain in simple terms how to write a sub for a multiple line code?

    For example:

    #Some Made up Code
    0x00000004 0x00000000
    0x00040000 0x00000000
    0x00005000 0x00000000
    0x00000050 0x00000000

    I know the steps for writing a sub for a one line code...

    Such as:

    lui t0 $1stHalfAdd
    lui t1 $1stHalfHex
    lui t1, t1, $2ndHalfHex
    sw t1, $2ndHalfAdd(t0)
    Jr ra

    And so on....

    Can you show me sort of like I wrote it out above ^
    How I would do this for multiple line codes?

    I hope my question is easy to understand.
    I basically want/need to know how to write a sub for a multiple line code.
    Any help will be greatly appreciated and thanks!

    ----Edit----
    If your answer helps me I will gladly donate some points.

    ----Added 24/5/2009 at 11:41 AM----
    Thanks for the help!
    I got it figured out.
    But thanks for the help!
    Last edited by Shandai; 05-23-2009 at 04:27 PM. Reason: Add something

Tags for this Thread

Bookmarks

Posting Permissions

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