dc1f69be83
there's a nasty memory corruption somewhere which needs investigating.
26 lines
314 B
ArmAsm
26 lines
314 B
ArmAsm
#
|
|
! $Source$
|
|
! $State$
|
|
! $Revision$
|
|
|
|
! Declare segments (the order is important).
|
|
|
|
.sect .text
|
|
.sect .rom
|
|
.sect .data
|
|
.sect .bss
|
|
|
|
.sect .text
|
|
|
|
! Say whether a file exists with the given name.
|
|
|
|
.define __sys_exists
|
|
__sys_exists:
|
|
mov ebx, esp
|
|
mov edx, 4(ebx)
|
|
mov eax, 0x4300
|
|
int 0x21
|
|
sbb eax, eax
|
|
inc eax
|
|
ret
|