Page 1 of 1
Ability to see the /COMMENTED assembly code in a split windo
Posted: Sat Aug 30, 2003 4:00 am
by LJ
Ability to see the /COMMENTED assembly code in a split window right next to the Purebasic code, or in the Debug window when you click on the Asm button, underneath the register monitor, a Window that shows the assembly code. The idea is to save time from having to go to console and type in /COMMENTED command to compile special assembly version, then open up .asm file with either notepad, Word, whatever, then go back into Purebasic, make a change, save the .pb file, then go back to console, re-compile using /COMMENTED tag, etc... Somehow integrate the option to see the assembly code into the Purebasic main GUI.
Now that would rock!
Re: Ability to see the /COMMENTED assembly code in a split w
Posted: Sat Aug 30, 2003 9:07 am
by PB
> Now that would rock!
Agreed. Good way to teach a bit of ASM, too.
Posted: Sat Aug 30, 2003 1:04 pm
by freak
What about that one for now?
Code: Select all
; Compile to exe, and add to 'Tools' Menu.
; Set 'Arguments' in Toolsmenu to "%TEMPFILE" (include the ")
; Enter your PB directory here:
#purebasic = "C:\PureBasic\"
RunProgram(#purebasic+"Compilers\pbcompiler.exe", Chr(34)+ProgramParameter()+Chr(34)+" /COMMENTED", #purebasic+"Compilers\", 1|2)
RunProgram(#purebasic+"PureBasic.exe", Chr(34)+#purebasic+"\Compilers\PureBasic.asm"+Chr(34), #purebasic)
End
See ASM source with 2 clicks (or set a Keyboard shortcut.)
Timo
Hmmm...
Posted: Sun Aug 31, 2003 12:23 am
by LJ
That's an inventive solution there...lol... sort of makes me think of how this television character would always get himself out of tight situations by taking whatever he could find laying around and jimmy it to get out of a tight jam. I applaud your thinking of using the RunProgram parameter as a work around, but this is far from having the functionality I mentioned in the first message of this thread. Nevertheless, brilliant thinking and funny too.

Posted: Sun Aug 31, 2003 6:16 am
by PB
Freak: Your example code doesn't work? I've compiled the exe and
added it to the Tools, but when I select it (with a source loaded) nothing
happens?
Posted: Sun Aug 31, 2003 11:38 am
by freak
Mmm, did you add the " 's around %TEMPFILE ?
If there are spaces in the path, it is interpreted as 2 arguments.
And if there is an error in the code you try to see, Ãt won't work, because
the compiler will not create the .asm file.
Timo
Posted: Sun Aug 31, 2003 12:23 pm
by PB
Got it working... had only the exe listed for the Command Line in the
tools editor... seems you need the entire path + exe.

Posted: Tue Oct 07, 2003 6:47 am
by waffle
this is a cool tip, but there is a bug...
i can't seem to generate a .asm file if the source
has a call to an included file. Is this a new PB bug?
Posted: Tue Oct 07, 2003 1:22 pm
by freak
waffle: It works quite fine here.
Timo
Posted: Mon Oct 13, 2003 12:20 pm
by waffle
bug.zip - this link removed 1/6/04 by waffle (me)
try it with this project.
also has a compilier bug, posted in bug forum.
but the source does compile, just not to asm...
Compiler bug fixed in 3.82
I haven't tested the make .asm yet to see if thats fixed...
Its not a major issue for me at this time.