summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/lib/shared/uitoa.src
blob: 439917235c7712c34cb3df229e43d92183ee1476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
; Zilog eZ80 ANSI C Compiler Release 3.4
; -optsize -nomodsect -peephole -globalopt -localcse
; -const=ROM 
	FILE	"..\UITOA.C"
	.assume ADL=1
	SEGMENT CODE
;    1	/*************************************************
;    2	 *  Copyright (C) 1999-2008 by  Zilog, Inc.
;    3	 *  All Rights Reserved
;    4	 *************************************************/
;    5	
;    6	#include <stddef.h>
;    7	#include <format.h>
;    8	
;    9	/*************************************************
;   10	*
;   11	* _u_itoa - convert an integer to a number of base rad
;   12	*
;   13	* Inputs:
;   14	*	int - int to be converted
;   15	*	str - target char array
;   16	*	rad - radix
;   17	*	fmt - format structure with conversion info
;   18	*
;   19	* Returns:
;   20	*	next address past the end of the string
;   21	*
;   22	*************************************************/
;   23	#ifndef _MULTI_THREAD
;   24	void _u_itoa(int n)
;   25	{
__u_itoa:
	CALL	__frameset0
;   26	  _u_ltoa((long)n);
	LD	BC,(IX+6)
	CALL	__itol
	LD	DE,BC
	LD	C,A
	LD	B,0
	PUSH	BC
	PUSH	DE
	CALL	__u_ltoa
	POP	BC
	POP	BC
;   27	}
	LD	SP,IX
	POP	IX
	RET	


;**************************** __u_itoa ***************************
;Name                         Addr/Register   Size   Type
;__u_ltoa                            IMPORT  -----   function
;n                                     IX+6      3   parameter


; Stack Frame Size: 9 (bytes)
;       Spill Code: 0 (instruction)


	XREF __u_ltoa:ROM
	XREF __itol:ROM
	XREF __frameset0:ROM
	XDEF __u_itoa
	END