mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-30 19:53:46 +00:00
20 lines
274 B
ArmAsm
20 lines
274 B
ArmAsm
.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
|