| |
| |
| |
|
Page: 1 2
Comments:
<0> hey , im trying to learn the basics of ***embly and i have a problem with compiling my project to exe file , im using a program called most and when i press compile it generates .obj file , .bak file and .txt file if anyone knows this program how do i get an .exe file with it??? or what do you suggest thank you for your time and sorry about my noob question :) <1> You will probably need a linker, sir. <0> this program includes a Link.exe file in its folder <0> oh no wait <1> If you run the object file through the linker, it will generate the exe for you. <0> tlink.exe <1> Usually ***emblers offer an option for executable generation. <1> Ah yes. Turbo Linker will link executables for you :) <0> :DD <1> However, it working depends on your ***embly code. <0> i will try it sec <0> love <1> If your code is written for and executable, then it will work. But simpler programs are usualy ***embled into .com files. <0> i dragged the obj file on the tlink.exe and it generated an .exe file <1> There you go :) <1> Does it work?
<0> thank you <1> Anytime, sir :) <0> i will try to debug it <0> program has no sibol table :( <0> symbol <1> Yes, that will probably be the debugger trying to load the debug information out of the executable. <1> Did it run okay? <0> mmm <0> how do i know if it runs ok <0> i have writen a simple project <1> What does the project do? <0> that adds tow numbers <0> :D <0> im just starting <1> Okay, it might be better to start ***embly programming with .com files. <0> the project acording to most have no errors <1> Or should I say, easier :) <0> but i wanna know why cant i debug the exe file? <1> Because there are no symbols in it. So there is nothing to debug. <1> Or atleast, your debugger thinks there aren't any. <1> :) <1> Can I see your code? <0> sure <0> www.pastebin.com ? <1> Whichever is your preference :) <0> pastebin is stuck <0> you have another paste site link? <1> Try www.nomorepasting.com <0> thx <0> URL: http://www.nomorepasting.com/paste.php?pasteID=66543 <0> i must make the debugger to work <1> I unfortunately don't have an ***embler that will ***emble TASM code, but if you check the options on Tasm, it should generate debug information. <0> it doesnt have any option tab <0> or im blind <1> Try the command line :) "tasm /h" I think. <1> That should list the options. <0> /zi,/zd Debug info: zi=full, zd=line numbers only <0> that? <1> Yeah, try with /zi. <1> That might give your debugger something to chew on :) <0> :D <0> trying <0> mmm what that command line suppose to do? <0> it didnt generate any file or anything <1> Add debugging information to the .obj file. So the debugger can do things like ***ociate an address in the machine-code with a line in your source. <1> You will need to add that as an option to a normal ***emble: tasm /zi input.asm <0> oh <1> Something like that. <0> i did <0> and then link the OBJ? <1> That's right, better to check to make sure the linker won't strip the debug information too :) <0> still same error <0> :/ <1> Blast. <0> mmm <0> look <0> i'll paste the command i did and the result <0> maybe u'll understand something <0> sec <0> URL: http://www.nomorepasting.com/paste.php?pasteID=66545 <1> Shame I don't have TASM here
<0> lol <0> maybe i'll send u mine <1> Give me a minute to have a dig around :) <0> k <0> its 800k <0> if u want i can host it <1> Just a moment, sir. <0> np <1> Aye, you'd better :) <0> better what? <1> I have no TASM :( <0> shall i host it or send via irc? <1> Probably best to host it, if that is not too much trouble :) <0> nah <0> you have a dump site? <1> Not myself, no. <0> any known one i mean <1> Sorry, no. <0> k i'll look <1> Got it. <1> Nope, not got it : <1> :/ <1> LoL. <0> lolz <0> cant find anything with no registration <1> Blast. <1> Well, I chewed your code so MASM will compile it, but now the linker doesn't like it! LoL. <0> omg <1> MS linker ****s sometimes. <1> LINK : fatal error LNK1221: a subsystem can't be inferred and must be defined <1> Neat. <0> i want exe file with symbol table :,( <1> Odd that your debugger doesn't just debug the exe with no symbols... <0> what does it mean? <1> The symbol table tells the debugger what element in, say the data segment, ties to what symbol in your source code. <0> yea <0> maybe my debugger just ****s <1> Well, I've linked it now :/ <1> And it crashes spectacularily :) <0> lol <0> hymm <0> what does it mean <0> :P <1> Just a moment. <1> Btw, about your code... <1> Where did you get it from? <0> from a book <1> Why sub bx, bx; mov ax, [bx] <1> When bx isn't initialised with any value? <0> maybe just in case <0> :p <1> Eh? <0> it cant have any grabage on it? <0> gurbage <1> LoL. <1> It seems that there is garbage, sir. <0> lol <1> And the mov ax, [bx] is trying to read from such a garbaged address. <1> Unless I'm missing something ;) <1> Have you checked your book to make sure the program is the same? <0> mm <0> yes <0> mm <0> [bx] should have the first 2 bytes of the data segment if im not wrong <1> ax and ds will. <0> should point <0> which mean pointing to 5678 <1> Where did that number come from? <0> from first dd 12345678H <1> Ah, okay. <1> AX and DS will point to the datasegment. <0> sub bx,bx will make bx = 0 <0> and then bx will point there <1> But bx will be zero, not ds.
Return to
#assembly or Go to some related
logs:
#chat-world #c++ #india #chat-world matt keon #kl #allnitecafe #india #worldchat #india
|
|