FAQ  •  Register  •  Login

--asm and --tap together

<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Tue Apr 20, 2010 10:05 am

--asm and --tap together

Some times I need to check the assembler, and I have to compile the sources twice in order to get also the .TAP file, because anyway I need to execute the program too.

Maybe in the future both the assembler file and the object file could be created with one single command?
<<

LCD

Posts: 571

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Tue Apr 20, 2010 4:10 pm

Re: --asm and --tap together

This can be easy done, I think. But it is also a planed feature for my Editor which I'm working on. It is called "BorIDE". It will share the same codebase as Retro-X EXIDE, but designed only for Boriels ZX BASIC Compiler, and not multible colpiler targets: ZXBC, z88dk, and so on.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

boriel

Site Admin

Posts: 1278

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Tue Apr 20, 2010 6:25 pm

Re: --asm and --tap together

I agree with LCD. In fact, you can create a simple script to do that:

compile.bat (in WIN32):
  Code:
@echo off
zxb -A %1
zxb -taB %1

Invoke with compile source.bas

compile.sh (In Mac OSX / Linux):
  Code:
#!/bin/bash
./zxb.py -A $1
./zxb.py -tAB $1

Invoke with ./compile.sh source.bas
<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Tue Apr 20, 2010 7:21 pm

Re: --asm and --tap together

boriel wrote:I agree with LCD. In fact, you can create a simple script to do that:


Of course! But I'd rather compile just once because the program is quite long. I think LCD meant it's easy to do by the compiler, not by me. Anyway I suppose the whole assembler is created in any case, and then passed to the Z80 compiler. Is it right? That's why I was suggesting the ZX Basic compiler to keep it anyway. But maybe my assumption is wrong.
<<

boriel

Site Admin

Posts: 1278

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Wed Apr 21, 2010 10:24 am

Re: --asm and --tap together

programandala.net wrote:
boriel wrote:I agree with LCD. In fact, you can create a simple script to do that:

Of course! But I'd rather compile just once because the program is quite long. I think LCD meant it's easy to do by the compiler, not by me. Anyway I suppose the whole assembler is created in any case, and then passed to the Z80 compiler. Is it right? That's why I was suggesting the ZX Basic compiler to keep it anyway. But maybe my assumption is wrong.

That's right. You can assemble zxb generated asm code with the same options you pass to zxb. So the script would be
  Code:
zxb -A source.bas
zxbasm -taB source.asm

Return to Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO