Post Reply 
[WP34S] New GUI features
01-23-2016, 10:18 AM (This post was last modified: 01-23-2016 10:47 AM by fhub.)
Post: #69
RE: [WP34S] New GUI features
(01-23-2016 09:32 AM)pascal_meheut Wrote:  I'll start working on the Qt complex_mode emulator. Renaming the state, backup & library files is easy.
When it comes to the assembler, I can hardcode the "-op" but as I'm not familiar with it, I want to be sure this of the command line syntax the emulator must execute.
Well, without '-op ...' option the assembler uses the file 'wp34s.op' in the same folder where the assembler is located by default. To use any other op-file you have to use this option '-op' (with the full pathname of this op-file).
So if your're calling the assembler currently with "PATH\wp34s_asm.exe PARAMS" (where PATH is the folder set in your custom tools option and PARAMS are the remaining parameters), you just have to add this '-op' option anywhere, e.g.:
"PATH\wp34s_asm.exe -op PATH\wp34c.op PARAMS"

An other possible method would be, that the user doesn't only specify the PATH of the tools folder, but even the complete call to the assembler EXE - this is the ways the normal (non-Qt) emulator works.
This means that the user has to enter the complete commandline in your tools option dialog (e.g. "..\myfolder\wp34s_asm.exe -op ..\myfolder\wp34c.op"), and the emulator just adds the rest (e.g. some other options (like -pp) and the filename to compile) - this has the advantage that the user could even add any additional wanted assembler options.
(in fact for the normal emulator it's even more flexible, because in the INI file you can even use a batchfile for calling the assembler (with any wanted options), which allows to execute other commands before or after calling the assembler, e.g. deleting temporary files).

PS: This is how I do it for the normal complex emulator:
Code:

content of my wp34c.ini:
------------------------
COM1:           # Com port
wp34c_asm.bat   # Assembler

content of my wp34c_asm.bat:
------------------------------
@echo off
..\tools\wp34s_asm.exe -op ..\tools\wp34c.op %1 %2 %3 %4 %5 %6 %7 %8 %9
rd /S /Q %TEMP%\p2xtmp-0000 >nul


Franz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[WP34S] New GUI features - Marcus von Cube - 01-01-2016, 10:56 PM
RE: [WP34S] New GUI features - fhub - 01-02-2016, 11:26 AM
RE: [WP34S] New GUI features - fhub - 01-02-2016, 12:34 PM
RE: [WP34S] New GUI features - fhub - 01-02-2016, 02:00 PM
RE: [WP34S] New GUI features - fhub - 01-02-2016, 06:25 PM
RE: [WP34S] New GUI features - BarryMead - 01-02-2016, 06:54 PM
RE: [WP34S] New GUI features - fhub - 01-02-2016, 07:18 PM
RE: [WP34S] New GUI features - BarryMead - 01-02-2016, 07:26 PM
RE: [WP34S] New GUI features - BarryMead - 01-02-2016, 08:48 PM
RE: [WP34S] New GUI features - BarryMead - 01-02-2016, 09:19 PM
RE: [WP34S] New GUI features - Dieter - 01-02-2016, 10:00 PM
RE: [WP34S] New GUI features - fhub - 01-03-2016, 01:45 PM
RE: [WP34S] New GUI features - fhub - 01-03-2016, 03:27 PM
RE: [WP34S] New GUI features - fhub - 01-03-2016, 04:21 PM
RE: [WP34S] New GUI features - BarryMead - 01-03-2016, 12:15 AM
RE: [WP34S] New GUI features - BarryMead - 01-03-2016, 04:22 PM
RE: [WP34S] New GUI features - BarryMead - 01-03-2016, 05:13 PM
RE: [WP34S] New GUI features - BarryMead - 01-02-2016, 09:40 PM
RE: [WP34S] New GUI features - BarryMead - 01-03-2016, 05:29 PM
RE: [WP34S] New GUI features - fhub - 01-04-2016, 11:32 AM
RE: [WP34S] New GUI features - fhub - 01-04-2016, 03:57 PM
RE: [WP34S] New GUI features - fhub - 01-04-2016, 04:20 PM
RE: [WP34S] New GUI features - fhub - 01-04-2016, 11:45 PM
RE: [WP34S] New GUI features - BarryMead - 01-07-2016, 11:04 PM
RE: [WP34S] New GUI features - BarryMead - 01-08-2016, 12:01 PM
RE: [WP34S] New GUI features - BarryMead - 01-08-2016, 06:33 PM
RE: [WP34S] New GUI features - BarryMead - 01-08-2016, 09:30 PM
RE: [WP34S] New GUI features - fhub - 01-09-2016, 12:59 PM
RE: [WP34S] New GUI features - Nigel (UK) - 01-10-2016, 09:25 PM
RE: [WP34S] New GUI features - fhub - 01-11-2016, 02:32 PM
RE: [WP34S] New GUI features - fhub - 01-11-2016, 04:10 PM
RE: [WP34S] New GUI features - fhub - 01-23-2016 10:18 AM
RE: [WP34S] New GUI features - fhub - 01-23-2016, 03:06 PM
RE: [WP34S] New GUI features - fhub - 01-23-2016, 03:36 PM
RE: [WP34S] New GUI features - BarryMead - 01-11-2016, 07:20 PM
RE: [WP34S] New GUI features - fhub - 01-11-2016, 10:00 PM
RE: [WP34S] New GUI features - Nigel (UK) - 01-22-2016, 09:58 PM
RE: [WP34S] New GUI features - Nigel (UK) - 01-23-2016, 02:38 PM
RE: [WP34S] New GUI features - fhub - 01-23-2016, 03:11 PM
RE: [WP34S] New GUI features - fhub - 01-26-2016, 08:19 PM
RE: [WP34S] New GUI features - fhub - 01-26-2016, 10:15 PM



User(s) browsing this thread: 1 Guest(s)