| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> hi? <0> hi <1> Hi Dayus. <0> hi <0> :) <0> im seeking help <1> Okay. <1> Help in what? <0> you know nasm? <1> I don't use nasm. <0> hmmm <1> Is it a problem with NASM or ASM in general? <0> well i guess both <0> im not very good in ASM <1> Maybe you can tell me about the problem. <0> and i have a work to do ...
<0> im a lil confuse <1> You mean school ***ignment? :] <1> Nevermind, explain your problem. <0> the notes given by the teacher are not clear at all <1> Paste me the note. <0> its like 84 pages in pdf :P <1> hmm....what's the point of the whole note? <0> it talk a lot about memory <1> Okay. <1> And? <0> but very little about the operation <1> It ***umes you have the basics to work by the instruction given by the manual. <1> Anyway, maybe you can get into the point. <0> like if id like to know about MUL <0> its doesntn explain it at all <0> it show not clear example of its use... <1> That's when your INTEL manuals comes in handy. <0> really? <0> :P <1> Yes. <0> i should check it out <0> but anyway <0> i want to check the marks of student <0> to see how many there is that are over 90 <0> so the mark scale is from 0 to 100 <0> and they say its stored in a single bytes unsigned integer <0> and right there im confuse <0> 1 byte is 4 bits <2> no, 1 byte is usually 8 bits <0> so 4 binary number <0> 8 bits <0> oups <0> ok <0> so 8 binary <0> making 2 hexa <0> 00h <0> right? <2> yar <1> So? <0> so 0 to 100 would be <0> 00h to ... <0> hmmm <2> 64h <0> oh thanks <2> max value of a byte is FFh <2> which is 255 <0> so <0> all result above 5Ah <0> is to be counted <2> ok <1> Dayus: What's the real problem? <0> i dont know how to do it... <1> You can't do the ***ignment or there is something wrong in the code? <1> Which part exactly? <0> how do you compare <1> cmp <1> cmp eax, 4 <1> for example <0> so i do cmp ebx, eax <1> Yes. <0> eax being 5Ah
<0> ? <1> I dont really know whats the value inside EAX <0> but thats not telling me its over 90% it tell me its the same... <1> It depends to you <2> say your byte is in al.... cmp al, 5Ah | jg OVER_90 | jmp FAIL <0> in ebx i put the socre of one student <2> jg == jump if greater <1> jge <0> aawww <0> yes <0> so i do the cmp <2> ok yep... jge is the correct one <0> and after <0> i do the jg <1> jge <0> make sens <1> Yes. <2> no jge... jump if greater or equal <0> ok <1> Yes, he have a range to check Inode. <1> HE won't be taking only 1 point. <0> if not i dont increment if it is i do increment my register... <2> i meant.... <2> no to... <0> i do the jg <1> Okay. <1> Sorry, misread it. <2> heh bad grammar sorry <0> well thanks guy <1> Np, bad sight ^_^ <0> i should be able to do this easy one :P <1> I guess so. <0> but some more difficult ahead :S <1> Dauys: How are you getting the scores of the students? <0> i should have kept my old notes about ASM <1> Through a file or a hardcoded array? <0> they dont really specify <1> I see. <0> i just have to write part of the code <1> You will write a function then. <0> they say it start a some address <1> Ahh, okay. <1> Then it wil be p***ed to your function <1> Just ***ume the data is p***ed to you in EAX or something <1> and start working from there. <0> so i just do a add [ebx], something <0> to move in the memory <1> Why? <1> Why would you add? <0> cause the score a 1 byte <0> so i move ebx one byte everytime <0> to see the next score <0> no? <2> you don't use add for that <1> inc <0> inc is one byte? <0> wait <1> I think 1/2 <1> That's not HALF, btw. <1> Inode: I think he doesn't know what he's talking about. <1> Am going to sleep. <1> Goodnight! <0> so you want me to do inc [ebx] <2> inc is increment by 1, it'll work for 8 (al), 16 (ax) and 32 (eax) bit regs <0> ok <2> you would do... inc ebx <0> wont it increment the value in ebx? <2> because i guess ebx would hold a pointer (address of the scores) to the scores <0> yes <0> ok <2> yar <0> i get it <0> ok ill try to write it <2> so to get the next byte, you'll add 1 to the pointer <0> make sense
Return to
#asm or Go to some related
logs:
#london gay marriages, Bristish
hello gagico rdpclient linux yuya shina sex what does substring do?
#MissKitten armani-Ghost at malta
lpklpp #linux
|
|