source: trunk/libs/newlib/src/newlib/libc/sys/sysvnecv70/isatty.S @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 274 bytes
Line 
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
17ret1:    mov.w    #0x1,r0
18        dispose
19        ret     #0
Note: See TracBrowser for help on using the repository browser.