logs archiveIRC Archive / Undernet / #asm / 2006 / July / 1 / 1
Tommek
hi
can any1 take a loop at a four line code?
mov eax,0
cmp ebx,condition
je getoutoftheloop
inc eax
-
shouldn'
it be eax to be compared?
Chiu_Lee
not necesarely
depends on algorithm specific
s
Tommek
wanna do an example for sheep counting until asleep = false
Chiu_Lee
well then the comparison will not be made against eax since eax is holding the counter
xor eax, eax (faster)
loop:
cmp bx,asleep
je break
inc eax
jmp loop
break:
---
Tommek
tnx
the882
hi all
dbtid
hi
the882
sup bro?
dbtid
we're not related
         

the882
oh common dude
dbtid
i'm not common either
the882
ok ok chill it buddy
(Action) slaps dbtid around a bit with a large trout
dbtid
(Action) kicks the882 in the balls with a steel-toed boot! touchdown!
klfpk
hi, anyone here who knows powerpc?
doesn't seem to have division instructions, did i get that right?
integer div
i read somewhere that there is one....but it's not portable. but i'd like to know its name anyway?? :(