	.include	"features.inc"
	.section	.text
	.global	open
	.syntax	divided
open:
	ldr	r2, full	@ Create will full permission
	.ifdef	NetBSD
	swi	#10485765	@ 10485760 + WRITE system call number
	.else
	str	r7, [sp, #-4]!	@ Preserve R7
	mov	r7, #5		@ System call number for WRITE
	swi	#0
	ldr	r7, [sp], #4	@ Restore R7
	.endif
	RET
full:
	.word	511
