; generated by ARM C/C++ Compiler, 5.03 [Build 102]
; commandline armcc [--c90 --arm --forceinline --no_conditionalize --bss_threshold=0 --debug -c --asm --interleave --no_lower_rwpi --library_interface=aeabi_clib90 -oRetarget.o --asm_dir=asm --depend_dir=dep --depend=Retarget.d --retain=fns,paths,calls,data --cpu=Cortex-A5.vfp --fpu=VFPv4_D16 --fpmode=ieee_full --no_wchar -O0 --data_reorder --licretry --diag_warning=optimizations -I../src/A5 -DTOWER -DARMCC_A5 --no_alternative_tokens --no_trigraphs --remarks --phony_targets ../src/A5/Retarget.c]
                          ARM

                          AREA ||.text||, CODE, READONLY, ALIGN=2

                  fputc PROC
;;;25     
;;;26     int fputc(int ch, FILE *f) {
000000  e92d4070          PUSH     {r4-r6,lr}
000004  e1a04000          MOV      r4,r0
000008  e1a05001          MOV      r5,r1
;;;27     	//If \n, then add a carriage return at the beginning
;;;28     	if(ch == '\n')
00000c  e354000a          CMP      r4,#0xa
000010  1a000001          BNE      |L1.28|
;;;29     	{
;;;30     		uart_putchar(0x0D);
000014  e3a0000d          MOV      r0,#0xd
000018  ebfffffe          BL       uart_putchar
                  |L1.28|
;;;31     	}
;;;32     	uart_putchar(ch);
00001c  e20400ff          AND      r0,r4,#0xff
000020  ebfffffe          BL       uart_putchar
;;;33         return 1;
000024  e3a00001          MOV      r0,#1
;;;34     }
000028  e8bd8070          POP      {r4-r6,pc}
;;;35     
                          ENDP

                  fgetc PROC
;;;36     int fgetc(FILE *f) {
00002c  e92d4010          PUSH     {r4,lr}
000030  e1a04000          MOV      r4,r0
;;;37       return (uart_getchar());
000034  ebfffffe          BL       uart_getchar
;;;38     }
000038  e8bd8010          POP      {r4,pc}
;;;39     
                          ENDP

                  ferror PROC
;;;40     
;;;41     int ferror(FILE *f) {
00003c  e1a01000          MOV      r1,r0
;;;42       /* Your implementation of ferror */
;;;43       return EOF;
000040  e3e00000          MVN      r0,#0
;;;44     }
000044  e12fff1e          BX       lr
;;;45     
                          ENDP

                  _ttywrch PROC
;;;46     
;;;47     void _ttywrch(int ch) {
000048  e92d4010          PUSH     {r4,lr}
00004c  e1a04000          MOV      r4,r0
;;;48     	uart_putchar (ch);
000050  e20400ff          AND      r0,r4,#0xff
000054  ebfffffe          BL       uart_putchar
;;;49     }
000058  e8bd8010          POP      {r4,pc}
;;;50     
                          ENDP

                  _sys_exit PROC
;;;51     
;;;52     void _sys_exit(int return_code) {
00005c  e320f000          NOP      
                  |L1.96|
;;;53       while (1);    /* endless loop */
000060  eafffffe          B        |L1.96|
;;;54     }
                          ENDP


                          AREA ||.bss||, DATA, NOINIT, ALIGN=2

                  __stdout
                          %        4
                  __stdin
                          %        4
