.globl _start
_start:
.text

    movl $122,%eax      # uname
    movl $m1,%ebx       # buf
    int $0x80

    movb $8,%al      # creatS
    movl $m2,%ebx    # filename
    movb $0,%cl      # attribute
    int $128

    movl %eax,%ebx   # descriptor
    movb $4,%al      # write
    movl $m1,%ecx    # address text
    movb $10,%dl     # size (full struct = 56 bytes)
    int $128


    movb $0x1,%al
    int $0x80

.data
m2: .string "test"
m1: .byte 0


