~ubuntu-branches/ubuntu/oneiric/kde4libs/oneiric-proposed

« back to all changes in this revision

Viewing changes to kate/tests/hl/highlight.asm-nasm

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-07-08 00:08:34 UTC
  • mto: This revision was merged to the branch mainline in revision 247.
  • Revision ID: package-import@ubuntu.com-20110708000834-dr9a8my4iml90qe5
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; Example file for nasm.xml kate syntax file
2
 
; compile with `nasm example.asm -f elf -o example.o`
3
 
; and link with 'gcc example.o -o example`
4
 
; Public domain
5
 
; kate: hl Intel x86 (NASM);
6
 
 
7
 
section .data
8
 
 
9
 
hello dd 'Hello World', 0x0A, 0h
10
 
printf_param dd '%s', 0q
11
 
 
12
 
section .text
13
 
 
14
 
extern printf
15
 
 
16
 
global main
17
 
main:
18
 
        push ebp
19
 
        mov ebp, esp
20
 
        
21
 
        push hello
22
 
        push printf_param
23
 
        call printf
24
 
        
25
 
        mov eax, 0b
26
 
        leave
27
 
        ret