Me playing with wp-syntax

Found this plugin, thought I would give it a try, line numbers with a “Hello World” program in Assembly.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 .text
 .global main
 main:
 
 mov $4, %eax /* write system call */
 mov $1, %ebx /* stdout */
 mov $msg, %ecx
 mov $msgend-msg, %edx
 int $0x80
 
 mov $1, %eax /* _exit system call */
 mov $0, %ebx /* EXIT_SUCCESS */
 int $0x80
 
 .data
 
 msg: .ascii "Hello, world\n"
 msgend:
This entry was posted in General. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">