RTEMS-5
Annotated Report
Wed Aug 22 17:53:09 2018

40002c40 <rtems_print_buffer>:
                                       
{
                                                                    
40002c40:	9d e3 bf a0 	save  %sp, -96, %sp
                           
  if (length > 0) {
                                                  
40002c44:	80 a6 60 00 	cmp  %i1, 0
                                   
40002c48:	04 80 00 14 	ble  40002c98 <rtems_print_buffer+0x58>
       
40002c4c:	b6 0e 60 0f 	and  %i1, 0xf, %i3
                            
    for (i = 0; i < max; i += BYTES_PER_ROW) {
                       
40002c50:	b8 a6 40 1b 	subcc  %i1, %i3, %i4
                          
40002c54:	02 80 00 0b 	be  40002c80 <rtems_print_buffer+0x40>
        
40002c58:	80 a6 e0 00 	cmp  %i3, 0
                                   
40002c5c:	ba 10 20 00 	clr  %i5
                                      
      Dump_Line(&buffer[i], BYTES_PER_ROW);
                          
40002c60:	90 06 00 1d 	add  %i0, %i5, %o0
                            
40002c64:	7f ff ff b2 	call  40002b2c <Dump_Line>
                    
40002c68:	92 10 20 10 	mov  0x10, %o1
                                
    for (i = 0; i < max; i += BYTES_PER_ROW) {
                       
40002c6c:	ba 07 60 10 	add  %i5, 0x10, %i5
                           
40002c70:	80 a7 00 1d 	cmp  %i4, %i5
                                 
40002c74:	18 bf ff fc 	bgu  40002c64 <rtems_print_buffer+0x24>
       
40002c78:	90 06 00 1d 	add  %i0, %i5, %o0
                            
    if (mod > 0) {
                                                   
40002c7c:	80 a6 e0 00 	cmp  %i3, 0
                                   
40002c80:	12 80 00 04 	bne  40002c90 <rtems_print_buffer+0x50>
       
40002c84:	b2 10 00 1b 	mov  %i3, %i1
                                 
}
                                                                    
40002c88:	81 c7 e0 08 	ret 
                                          
40002c8c:	81 e8 00 00 	restore 
                                      
      Dump_Line(&buffer[max], mod);
                                  
40002c90:	7f ff ff a7 	call  40002b2c <Dump_Line>
                    
40002c94:	91 ee 00 1c 	restore  %i0, %i4, %o0
                        
    printk("Error: length must be greater than zero.");
              
40002c98:	31 10 00 3e 	sethi  %hi(0x4000f800), %i0
                   
40002c9c:	40 00 09 34 	call  4000516c <printk>
                       
40002ca0:	91 ee 21 38 	restore  %i0, 0x138, %o0