~manxi-david/pyeffect/pyeffect

« back to all changes in this revision

Viewing changes to src/Examples/unicode.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
Byteconstant_string000:
 
3
        .byte   0
 
4
Byteconstant_string011:
 
5
        .byte   0
 
6
Byteconstant_string022:
 
7
        .byte   0
 
8
Byteconstant_string033:
 
9
        .byte   0
 
10
Byteconstant_string044:
 
11
        .byte   0
 
12
Byteconstant_string055:
 
13
        .byte   0
 
14
Byteconstant_string066:
 
15
        .byte   0
 
16
Byteconstant_string077:
 
17
        .byte   0
 
18
.section .text
 
19
.globl _start
 
20
_start:
 
21
#Begin of program:
 
22
        #       print("España\n")
 
23
        movb    $69,    Byteconstant_string000
 
24
        movb    $115,   Byteconstant_string011
 
25
        movb    $112,   Byteconstant_string022
 
26
        movb    $97,    Byteconstant_string033
 
27
        movb    $195,   Byteconstant_string044
 
28
        movb    $177,   Byteconstant_string055
 
29
        movb    $97,    Byteconstant_string066
 
30
        movb    $10,    Byteconstant_string077
 
31
        movq    $1,     %rax
 
32
        movq    $1,     %rdi
 
33
        movq    $8,     %rdx
 
34
        movq    $Byteconstant_string000,        %rsi
 
35
        syscall
 
36
        #       exit(0)
 
37
        xorq    %rdi,   %rdi
 
38
        movq    $60,    %rax
 
39
        syscall
 
40
#End of program