//
//    sysinfo struct:
//
//    offset           decriptions          lenght
//
//

.globl _start
_start:
.text
    movl $116,%eax   # statsS
    movl $m1,%ebx    # buf
    int $0x80

    movb $8,%al      # creatS
    movl $m3,%ebx    # filename
    movb $0,%cl      # attribute
    int $128

    movl %eax,%ebx   # descriptor
    movb $4,%al      # write
    movl $m1,%ecx    # address text
    movb $148,%dl    # size (full struct = 56 bytes)
    int $128

    movb $0x1,%al
    int $0x80

.data
m3:  .string "test"
m1:  .byte 0




