flat assembler
Message board for the users of flat assembler.

Index > Linux > Hey,I think I finally got the hang of linux.

Author
Thread Post new topic Reply to topic
2



Joined: 26 Sep 2006
Posts: 92
2
I did my binary counting program! It runs fine in the terminal of ubuntu.

Code:
format elf executable

p0:
mov eax,4
mov ebx,1
mov ecx,b
mov edx,9
int 128

mov cl,1
mov ebx,8

p1:
dec ebx
mov ch,cl
and ch,[b+ebx]
xor [b+ebx],cl
mov cl,ch
cmp ebx,0
ja p1

inc [c]
cmp [c],0
ja p0

mov eax,1
int 128
b db '00000000',10
c db 0
    


I also added it to my binary tutorial.

http://chandlerprogramming.50webs.com/bintutor.txt

_________________
There are 10 kinds of people in the world.
Those who know binary and those who haven't met me.
Post 08 Nov 2006, 23:26
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.