Jump to content
Wubi

La multi ani ps-axl!

Recommended Posts

Guest Kovalski
Posted (edited)

pai sarbatoritul asta (eu) este la munca deci... nu am cum sa fac party :) maine am sa fiu liber (maine party)

LE: era nasol, sa imi iau joi liber si vineri sa fiu de munca.. asa ca am decis sa imi iau vineri liber ca sa pot sa beau si sa ma odihnesc dupa aceea.. daca astazi imi luam liber maine trebuia sa fiu la munca.. si nu prea vad cum ar fi iesit treaba...

Edited by ps-axl
Posted

Happy Birthday from GAS Assembler


.data
T1: .ascii "\x20\x20\x20\x20\x2e\x0a"
T2: .ascii "\x20\x20\x2e\x2e\x6c\x2e\x2e\x0a"
T3: .ascii "\x20\x2e\x2e\x2e\x2e\x2e\x2e\x2e\x0a"
T4: .ascii "\x2e\x2e\x2e\x2e\x2e\x2e\x2e\x2e\x2e\x2e\x0a\x0a"
HS: .ascii "\x48\x61\x70\x70\x79\x20"
BS: .ascii "\x42\x69\x72\x74\x68\x64\x61\x79\x20"
PS: .ascii "\x70\x73\x2d\x61\x78\x6c\x0a\x0a"

.text
.globl _start
_start:
movl $4, %eax
movl $1, %ebx
movl $T1, %ecx
movl $6, %edx
int $0x80
movl $4, %eax
movl $1, %ebx
movl $T2, %ecx
movl $8, %edx
int $0x80
movl $4, %eax
movl $1, %ebx
movl $T3, %ecx
movl $9, %edx
int $0x80
movl $4, %eax
movl $1, %ebx
movl $T4, %ecx
movl $12, %edx
int $0x80
movl $4, %eax
movl $1, %ebx
movl $HS, %ecx
movl $6, %edx
int $0x80
movl $4, %eax
movl $1, %ebx
movl $BS, %ecx
movl $9, %edx
int $0x80
movl $4, %eax
movl $1, %ebx
movl $PS, %ecx
movl $8, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80

Howto:

Compiling

as -o HappyBirthday.o HappyBirthday.s

Linking through 'ld'

ld -o HappyBirthday HappyBirthday.o

Guest Kovalski
Posted

-bash-4.1# ./HappyBirthday
.
..l..
.......
..........

Happy Birthday ps-axl

-bash-4.1#

multumesc mosule :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...