| |
| |
| |
|
Page: 1 2
Comments:
<0> hey <0> take care all <1> hello all <1> ppl any one alive ? <2> yeah <3> Who cares if we're alive or not... <1> i do ,how can i find the founder <3> I bet he doesn't even know he's lost. <1> does he come alive at any time ? <1> Ace1013 <3> Not usually at this time of day. <1> ok <1> for how long uv been here in this channel as an op ? <3> He's usually around late at night, or early morning. <3> Couple of years or so.
<3> Those are central european times, btw. <1> did u know a dude with niick cerberos ? <3> Nope <3> Sounds vaguely familiar, but I don't think I've ever spoken to him. <1> man i was sop here 5 years ago <1> :) <1> i used to come here still in 2000 <3> I can't remember when I first came here. <1> def where are you from ? <3> UK originally. <1> kewl <1> iv been to england <4> using indirect addressing i want to access 3rd element of array of struct <4> asume name of the array is people <4> mov bx, offset people <4> lea dx, person ptr [bx][3] doesnt do it for me <5> woohoo <5> a questiopn <4> can i give different meaning to offset? since its displacement in bytes from the start address <1> Ace1013 at last got ya <4> anyway to tell masm that this offset there means 2 elements of person struct to skip <5> blackbox: Which ***embler? <4> MASM 5 <5> yes, scale <5> how many bytes is each struct? <5> cheerio tortured :) <5> are you cerber0s? <1> nope <5> ok <1> iam if you remeber anthrax}{ <1> :) <5> aha <4> "type person" can give that <1> how ya doin dude <5> long time no see :) <1> yep <1> it has been 5 years <4> asume there are 10 bytes <5> blackbox: "type person" won't cut it. You need it to be a power of two less than 16 <1> Ace1013 we'll talk later after you finish the dude ok <5> ***embly is not so high level. Although masm tries to make it look that way. ***embly is much cooler :) <5> there is a scale on x86 <5> you can do for example: <5> lea edx, [person+ebx*4] <4> ebx has the base address of array? <5> if you can ***ume you have a 386 or newer, it might be wise to use 32 bit regs <5> no <5> ebx was an index <4> person is the struct <5> presuming each struct element was 4 bytes <5> you can have a scale, index and base <5> in 32 bit modes <5> in 16 bit modes you have to choose something like bx+si, bx+di etc. <5> basically you can use either bp or bx in combination with si og di <5> and add an offset to that <5> in 32 bit modes you can use any two registers, scale one of them by a power of two, and add a label/constant <4> person is the name of the struct what does that specify in the lea example you gave?
<5> this is legal for example: <5> brb, phone <4> shouldnt person be 'people' instead (name of array of person) <5> yeh, people <5> sorry <5> anyway, you can do things like: <4> hmmmm i didnt know i could multiply as well <5> mov eax, DWORD [eax+ecx*8+people] (nasm syntax) <5> in 32-bit modes you can <5> not in 16 bit modes <5> the addressing uses an extra byte <5> so "type person" is no good <5> there is hardwired machinery in the cpu to read a certain two bits of a certain SIB-byte (scale-index-base) in the resulting machine code, interpreting it as a scale of a power of two <5> you can't scale an index by 3 <5> if you wanted to, you'd have to mul it seperately <5> or worse still, add it to itself twice <4> oh thanks alot <5> np :) <5> of course, in masm, you will be writing "byte ptr [blablabla]" or something similar <4> i can use scale only if my struct is of size in power of 2 and less than 16 right? <5> chanserv is a rewdbwoy <5> yup <5> scale can be 1, 2, 4 or 8 <5> you can actually use lea as a mul sometimes too. Like "lea ebx, [ebx*8]" <5> can be good for optimation <5> can do "lea ebx, [ebx+ebx*4]" too, to mul by five. There are tricks like that <4> cool <5> *optimisation <5> yup :) <5> I have to run, I'm late for work <5> ttyl :) <5> good luck <4> thanks once again <5> np :) <6> hello sir ;) <5> hey :) (I've got to run, ttyl :) ) <6> good day sir :) <1> Scooby_foo u r from india right ? <6> torturedsoul: yes. <1> i remeber you <1> oraaaa <1> another nick i know <1> lol <1> 5 years ago we had a fight with you here <1> lol <1> kia hal he ? <6> fight with me 5 years back? <6> I have been in #***embly for less than 4 years. <1> when i say 5 i dont mean to say 365*5 || 365.333333*5 <6> oh well, I have been using this nick for barely two years. <6> may be less. <1> i remeber an indian coming to this chan long time back <1> and he was keeping saying SIR <6> most likely it was me. <1> yes it is <1> becuase evrey sentence u used sir <1> anyway <1> how is your ***embly going ? <6> do you find something wrong with it? <1> dont ask mer <1> don't ask me <1> about this <1> i know you indians have your point of view about respect <1> and i look naturly at that <1> no negativly || positivly <1> do u get me <1> >? <6> yes. <1> how is your ***embly going ? <6> bad, ace sir hasn't been teaching lately.
Return to
#assembly or Go to some related
logs:
aaya india,huha india ktorrent handbook pontianka #allnitecafe WWW.SİTRES
#allnitecafe reklam botu #allnitecafe Net/Telnet/Cisco.pm windows
drubicza
|
|