devctl.h: update for POSIX-1.2024
[newlib-cygwin.git] / newlib / libc / sys / sysvnecv70 / isatty.S
blob5f2c1d9c89fc8c2f1145b1ee32939a4152916575
1         .globl  _isatty
2         .globl  __isatty
3         
4 _isatty:
5 __isatty:
6          prepare  #0x14
7          movea.w  -0x12[fp],[-sp]
8         push      #0x5401
9          push     [ap]
10          call     _ioctl,[sp]
11         add.w     #0xc,sp
12          test.w   r0
13          jge      ret1
14          mov.w    #0x0,r0
15          dispose
16          ret      #0x0
17 ret1:    mov.w    #0x1,r0
18         dispose
19         ret     #0