about summary refs log blame commit diff stats
path: root/mu-init-test.subx
blob: 1b2d16832b1c896501affafb9ec1c24bead67407 (plain) (tree)
1
2
3
4
5
6
7


                                   
                                                                            

                                     
                                                                









                            
                                     
                               
                                    
                                               
                                
                              













                                        
# Just a test stub for mu-init.subx
#
# Try it out like this:
#   $ ./translate_subx init.linux [0-9]*.subx mu-init.subx mu-init-test.subx
#   $ ./a.elf  # should run all tests

main:  # args: (addr array (addr array byte)) -> result/ebx: int
    # . prologue
    55/push-ebp
    89/<- %ebp 4/r32/esp
    # . save registers
    50/push-eax
    56/push-esi
    # esi = args
    8b/-> *(ebp+8) 6/r32/esi
    {
      # if (argc <= 1) break
      81 7/subop/compare *esi 4/imm32
      7e/jump-if-<= break/disp8
      # if (argv[1] != "test") break
      (string-equal? *(esi+8) "test")  # => eax
      3d/compare-eax-and 0/imm32
      74/jump-if-= break/disp8
      #
      (run-tests)
      # return *Num-test-failures
      8b/-> *Num-test-failures 3/r32/ebx
      eb/jump $main:end/disp8
    }
$main:end:
    # . restore registers
    5e/pop-to-esi
    58/pop-to-eax
    # . epilogue
    89/<- %esp 5/r32/ebp
    5d/pop-to-ebp
    c3/return
5@gmail.com> 2012-08-22 00:30:24 +0100 Added some logging and updated man page' href='/danisanti/profani-tty/commit/docs/profanity.1?id=4dbd8bbefac5ad695271541cc186fa3e1db984e8'>4dbd8bbe ^
4dbd8bbe ^
e53e94f1 ^
4dbd8bbe ^


3e92c60e ^


4dbd8bbe ^
a198c9e8 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
                                                       
        
                                                     

            
                                

               
                                                                        
                                                                       


   
                         


                      
                                   



                                    



                                      
   
                        


                                                       
                   
                                                                        


                                                                                 
                                                            



                 
                                    
                                                                                                
   
        
                                                                            

   
                                             







                                                      



                                 

   
           
                                                              


                                                                             


                          
                         
                                                                                                                     
.TH Profanity 1 "February 2015" "Profanity XMPP client"
.SH NAME
Profanity \- a simple console based XMPP chat client.
.SH SYNOPSIS
.B profanity
[\-vh] [\-l level] [\-a account]
.SH DESCRIPTION
.B Profanity
is a simple lightweight console based XMPP chat client. Its emphasis is 
on having a simple and configurable command driven UI, see the homepage
at:
.br
.PP
<http://www.profanity.im>
.SH OPTIONS
.TP
.BI "\-v, \-\-version"
Show version and build information.
.TP
.BI "\-h, \-\-help"
Show help on command line arguments.
.TP
.BI "\-a, \-\-account "ACCOUNT
Auto connect to an account on startup,
.I ACCOUNT
must be an existing account.
.TP
.BI "\-l, \-\-log "LEVEL
Set the logging level,
.I LEVEL
may be set to DEBUG, INFO (the default), WARN or ERROR.
.SH USING PROFANITY
The user guide can be found at <http://www.profanity.im/userguide.html>.
.SH SEE ALSO
.B Profanity
itself has a lot of built\-in help. Check the /help command for more information.
Type "/help help" for information on how to use help itself.
.SH CONFIGURATION
Configuration for
.B Profanity
is stored in
.I $XDG_CONFIG_HOME/profanity/profrc
, details on configuring Profanity can be found at <http://www.profanity.im/configuration.html>.
.PP
.SH BUGS
Bugs can either be reported by raising an issue at the Github issue tracker:
.br
.PP
<https://github.com/boothj5/profanity/issues>
.br
.PP
or to the mailing list at:
.br
.PP
<https://groups.google.com/forum/#!forum/profanitydev>
.br
.PP
or by sending a mail directly to:
.br
.PP
<boothj5web@gmail.com>
.br
.PP
.SH LICENSE
Copyright (C) 2012 \- 2016 James Booth <boothj5web@gmail.com>.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH AUTHORS/CREDITS
.B Profanity
was written by James Booth
.B <boothj5web@gmail.com>
with many contributions from others, see the full list at: <https://github.com/boothj5/profanity/graphs/contributors>