Author: Anonymous Language: text
Description: No description Timestamp: 2008-11-20 10:56:19 -0400
View raw paste Reply
  1. infixLoop       lw      r3, (r30)               ; load curr node
  2.                 seq     r4, r3, r0              ; node null?
  3.                 bt      r4, infixReturn         ; returns to previous node
  4.  
  5.                 lw      r1, 4(r3)               ; r1 -> left integer value
  6.                 lw      r2, -32(r14)            ; r2 -> space (8 numbers should be sufficent)
  7.                 jal     intToStr
  8.                 subui   r14, r14, 128           ; space for intToStr conversion
  9.                 sw      -4(r14), r1             ; ->left = '-24-128(r14)'
  10.                 subui   r14, r14, 4             ; space for node
  11.                 jal     infix                   ; save r31 and go to next node
  12.         ; from return (last line)
  13.                 addui   r14, r14, 132           ; conversion and node
View raw paste Reply