summaryrefslogtreecommitdiff
path: root/frontends/calculator/CEdev/lib/static/atof.src
blob: bfabf06f3e1a30729aa599d83bc923087eb739ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
	.ref __frameset0
	.ref _strtod
	.def _atof
	.assume adl=1

; double atof(char *str);

_atof:
	pop	hl
	pop	bc
	push	bc
	push	hl
	or	a,a
	sbc	hl,hl
	push	hl
	push	bc
	call	_strtod
	pop	bc
	pop	hl
	ret