source:
trunk/libs/newlib/src/newlib/libc/sys/sysvnecv70/isatty.S
@
444
Last change on this file since 444 was 444, checked in by , 6 years ago | |
---|---|
File size: 274 bytes |
Rev | Line | |
---|---|---|
[444] | 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 |
Note: See TracBrowser
for help on using the repository browser.