summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/lib/shared/uustoa.src
blob: 18041e9e69900e18fd6ea805c45429a0c3a940ff (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	"..\UUSTOA.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_ustoa - convert an unsigned short 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_ustoa(unsigned short n)
;   25	{
__u_ustoa:
	CALL	__frameset0
;   26	  _u_ultoa((unsigned long)n);
	LD	BC,(IX+6)
	CALL	__stoiu
	LD	C,0
	LD	B,0
	PUSH	BC
	PUSH	HL
	CALL	__u_ultoa
	POP	BC
	POP	BC
;   27	}
	LD	SP,IX
	POP	IX
	RET	


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


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


	XREF __u_ultoa:ROM
	XREF __stoiu:ROM
	XREF __frameset0:ROM
	XDEF __u_ustoa
	END