Welcome to mirror list, hosted at ThFree Co, Russian Federation.

isatty.s « sysvnecv70 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5f2c1d9c89fc8c2f1145b1ee32939a4152916575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	.globl	_isatty
	.globl	__isatty
	
_isatty:
__isatty:
	 prepare  #0x14
	 movea.w  -0x12[fp],[-sp]
	push	  #0x5401
	 push	  [ap]
	 call	  _ioctl,[sp]
	add.w	  #0xc,sp
	 test.w	  r0
	 jge	  ret1
	 mov.w	  #0x0,r0
	 dispose
	 ret	  #0x0
ret1:	 mov.w	  #0x1,r0
	dispose
	ret	#0