//
// syslog type :
//      0 - close the log. Currently a NOP
//      1 - open the log. Currently a NOP
//      2 - read from the log
//      3 - read up to the last 4k of messages in the ring buffer
//      4 - read and clear last 4k of messages in the ring buffer
//      5 - clear ring buffer
//      6 - disable printk's to console
//      7 - enable printk's to console
//      8 - set level of messages printed to console
//
.globl _start
_start:
.text
    movl $103,%eax   # syslogS
    movl $3,%ebx     # type
    movl $m1,%ecx    # buf
    movl $250,%edx   # lenght
    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
    movl $250,%edx   # size (full struct = 56 bytes)
    int $128

    movb $0x1,%al
    int $0x80

.data
m3:  .string "test"
m1:  .short 0




