Forum
How can I use ZXB as Assembler only - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: How-To & Tutorials (https://www.boriel.com/forum/forumdisplay.php?fid=13)
+---- Thread: How can I use ZXB as Assembler only (/showthread.php?tid=789)



How can I use ZXB as Assembler only - Luzie - 02-13-2017

I want to use ZXB "as Assembler only". So no single BASIC statement will be used.

E.g. I just want to assemble this:

ASM
ORG 50000
RET
END ASM

and after compiling this should result in just a .BIN or .TAP-File which contains the single $C9 mcode ($C9=201 dez for RET) and is in memory from adress 50000 dez.

Is there a simple way for doing this?


Re: How can I use ZXB as Assembler only - boriel - 02-13-2017

Just use the ZX Basic Assembler, included in the distibution.
Code:
zxbasm -TaB myfile.asm



Re: How can I use ZXB as Assembler only - Luzie - 02-14-2017

boriel Wrote:Just use the ZX Basic Assembler, included in the distibution.
Code:
zxbasm -TaB myfile.asm
Thank you very much. Works like a charm for me!