summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/lib/shared/uuitoa.src
blob: 79a7db420fed6a237a9fadd9e333aaadbbe36dd0 (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
; Zilog eZ80 ANSI C Compiler Release 3.4
; -optsize -nomodsect -peephole -globalopt -localcse
; -const=ROM 
	FILE	"..\UUITOA.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_uitoa - convert an unsigned int 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_uitoa(unsigned int n)
;   25	{
__u_uitoa:
	CALL	__frameset0
;   26	  _u_ultoa((unsigned long)n);
	LD	BC,(IX+6)
	LD	DE,BC
	XOR	A,A
	LD	C,A
	LD	B,0
	PUSH	BC
	PUSH	DE
	CALL	__u_ultoa
	POP	BC
	POP	BC
;   27	}
	LD	SP,IX
	POP	IX
	RET	


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


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


	XREF __u_ultoa:ROM
	XREF __frameset0:ROM
	XDEF __u_uitoa
	END