flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
2 08 Nov 2006, 23:26
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. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.