Where did ASM go ?
I always run out of disk space, no matter what I do. I keep on buying external hard drives, I spend countless hours in erasing old information, but eventually I end up in the same place. And it’s not so much the multimedia content per se (although my Sony DSLR camera does tend to disagree), but just tons of software packages and their beloved dependencies that I have installed on my Debian box, and that I simply do not use, but that programs which I do need, use. Therefore I find myself wondering sometimes: where did Assembler go?
To commemorate my last 4 years of ASM-free code, I found an yet even older piece of code that I wrote as a contribution for http://linuxassembly.org (Hi Konstantin!) quite a few years back.
What a nice, simple life!
xor ebx, ebx
.divide:
xor edx, edx
div ecx
cmp dl, 10
jb .decimal
add dl, 'A'-10
jmps .continue
.decimal:
add dl, '0'
.continue:
push edx
inc ebx
test eax, eax
jnz .divide
mov esi, ebx
.store:
pop eax
stosb
dec ebx
test ebx, ebx
jnz .store
ret
Oh, and just for giggles, here’s another nostalgic piece. A soldering iron, some microcontroller, FreeBSD and NASM. What else can you ask for ? Sorries to all the non-ro readers. Free lesson? =)
I’m curious if everyone considers assembly code obsolete. I mean with all the GCC 4.3+ optimizations, folks are raving about how well their code runs now, by completely relying on their compilers to do the job.