ARM GAS  divide.s 			page 1


   1              	/* --------------------------------------------------
   2              	   Define required labels for EGTAPI
   3              	   -------------------------------------------------- */
   4              	        .global main, Stop, CodeEnd
   5              		.global DataStart, DataEnd
   6              	
   7              		.global i1, i2, s1, s2, b1, b2	
   8              	
   9              	/* --------------------------------------------------
  10              	   Begin of the program instructions
  11              	   -------------------------------------------------- */
  12              		.text
  13              	main:
  14              	
  15              	   // This is how you compute  14 / 3
  16              	
  17 0000 0E00A0E3 	   mov   r0, #14		// Try some other value...
  18 0004 0310A0E3 	   mov   r1, #3			// Try some other value...
  19 0008 FEFFFFEB 	   bl    __aeabi_idiv           // r0 will contains the quotient or 14/3  
  20              	
  21              	
  22              	Stop:
  23              	CodeEnd:
  24 000c 00F020E3 	    	nop
  25              	
  26              	/* --------------------------------------------------
  27              	   Begin of the permanent program variables
  28              	   -------------------------------------------------- */
  29              		.data
  30              	DataStart:
  31              	
  32              	DataEnd:
  33              	
  34              		.end
ARM GAS  divide.s 			page 2


DEFINED SYMBOLS
            divide.s:13     .text:0000000000000000 main
            divide.s:22     .text:000000000000000c Stop
            divide.s:23     .text:000000000000000c CodeEnd
            divide.s:30     .data:0000000000000000 DataStart
            divide.s:32     .data:0000000000000000 DataEnd
            divide.s:17     .text:0000000000000000 $a

UNDEFINED SYMBOLS
i1
i2
s1
s2
b1
b2
__aeabi_idiv
