1. get the NppExec plugin - it provides an output console and (just installed 
it so not sure) allows you to do something with the resulting file
2. there seems to be an issue with pyz80 and qualified input file names - as 
soon as you try to run python pyz80.py c:\source.s it chokes (also from the 
command line) with:

Process started >>>
pass  1 ...
Traceback (most recent call last):
  File "D:/Users/Public/Documents/pyz80/pyz80", line 1835, in <module>
    assembler_pass(p, inputfile)
  File "D:/Users/Public/Documents/pyz80/pyz80", line 1678, in assembler_pass
    if global_currentfile.startswith(this_currentfilename+":") and 
int(global_currentfile.split(':',1)[1]) != consider_linenumber:
ValueError: invalid literal for int() with base 10: 
'/Users/public/Documents/specpang.s:0'
<<< Process finished. (Exit code 1)

If I comment out line 1678 and 1679 then the error is gone, but I have no idea 
what I've broken at the same time :-) 

Over to Andrew...

Regards,


Stefan 



-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of SCjoe
Sent: zondag 6 oktober 2013 14:58
To: sam-users
Subject: pyz80 with Notepad++ integration

Hi,

please help me with the idea how to integrate pyz80 into the Notepad++ (Win7).

I tried many forms of the Notepad++´s  Menu Run, from the simple sentence...
PYTHON PYZ80.PY source.s
(which works in the CMD line)

... to ...
c:\python25\python c:\python25\pyz80.py "$(FULL_CURRENT_PATH)"
... or ...
cmd /c c: && cd python25 && python pyz80.py "$(FULL_CURRENT_PATH)" || pause

Also created a BAT file in order to have the  "RUN" sentence as short as 
possible...

And yes, I have set the system PATH variable in Windows 7 for the the PYTHON25 
directory and copy the file pyz80 into it.

Thanks
Josef

Reply via email to