~manxi-david/pyeffect/pyeffect

« back to all changes in this revision

Viewing changes to Examples/glut.s

  • Committer: dvspeed
  • Date: 2011-12-26 13:18:36 UTC
  • Revision ID: manxi.david@gmail.com-20111226131836-mvoy9y32z0ujxvm1
-Change of folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.section .data
2
 
Bytey00:
3
 
        .byte   0
4
 
Bytey11:
5
 
        .byte   0
6
 
Bytey22:
7
 
        .byte   0
8
 
Bytey33:
9
 
        .byte   0
10
 
Bytey44:
11
 
        .byte   0
12
 
Bytey55:
13
 
        .byte   0
14
 
Bytey66:
15
 
        .byte   0
16
 
Bytey77:
17
 
        .byte   0
18
 
Bytey88:
19
 
        .byte   0
20
 
Bytey99:
21
 
        .byte   0
22
 
Bytey1010:
23
 
        .byte   0
24
 
Bytey1111:
25
 
        .byte   0
26
 
Bytey1212:
27
 
        .byte   0
28
 
Bytey1313:
29
 
        .byte   0
30
 
Bytey1414:
31
 
        .byte   0
32
 
Bytey1515:
33
 
        .byte   0
34
 
Bytey1616:
35
 
        .byte   0
36
 
Bytey1717:
37
 
        .byte   0
38
 
Bytey1818:
39
 
        .byte   0
40
 
Bytey1919:
41
 
        .byte   0
42
 
Bytey2020:
43
 
        .byte   0
44
 
Bytey2121:
45
 
        .byte   0
46
 
Byte0:
47
 
        .byte   0
48
 
Byte1:
49
 
        .byte   0
50
 
Byte2:
51
 
        .byte   0
52
 
Byte3:
53
 
        .byte   0
54
 
Byte4:
55
 
        .byte   0
56
 
Byte5:
57
 
        .byte   0
58
 
Byte6:
59
 
        .byte   0
60
 
Byte7:
61
 
        .byte   0
62
 
.section .text
63
 
.globl _start
64
 
_start:
65
 
#Begin of program:
66
 
        #       y="Effect - Glut Example\0"
67
 
        movb    $69,    Bytey00
68
 
        movb    $102,   Bytey11
69
 
        movb    $102,   Bytey22
70
 
        movb    $101,   Bytey33
71
 
        movb    $99,    Bytey44
72
 
        movb    $116,   Bytey55
73
 
        movb    $32,    Bytey66
74
 
        movb    $45,    Bytey77
75
 
        movb    $32,    Bytey88
76
 
        movb    $71,    Bytey99
77
 
        movb    $108,   Bytey1010
78
 
        movb    $117,   Bytey1111
79
 
        movb    $116,   Bytey1212
80
 
        movb    $32,    Bytey1313
81
 
        movb    $69,    Bytey1414
82
 
        movb    $120,   Bytey1515
83
 
        movb    $97,    Bytey1616
84
 
        movb    $109,   Bytey1717
85
 
        movb    $112,   Bytey1818
86
 
        movb    $108,   Bytey1919
87
 
        movb    $101,   Bytey2020
88
 
        movb    $0,     Bytey2121
89
 
        #       f=0
90
 
        #       glut.glutInit(&f)
91
 
        movq    $Byte0, %rdi
92
 
        call glutInit
93
 
        #       glut.glutInitDisplayMode(18)
94
 
        movq    $18,    %rdi
95
 
        call glutInitDisplayMode
96
 
        #       glut.glutInitWindowSize(800,600)
97
 
        movq    $800,   %rdi
98
 
        movq    $600,   %rsi
99
 
        call glutInitWindowSize
100
 
        #       glut.glutCreateWindow(y)
101
 
        movq    $Bytey00,       %rdi
102
 
        call glutCreateWindow
103
 
        #       glut.glutMainLoop()
104
 
        call glutMainLoop
105
 
        #       exit(0)
106
 
        xorq    %rdi,   %rdi
107
 
        movq    $60,    %rax
108
 
        syscall
109
 
#End of program