Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
usage [2019/06/27 07:44] – neils | usage [2020/02/20 09:52] – [Step 2: install xcbasic64] neils | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Usage ====== | ====== Usage ====== | ||
- | Since version 1.0, the DASM executable is included in the project and **XC=BASIC** sources can be compiled to machine code using a single command. | + | //Note: the bellow guide applies to versions 2.3 or later. If you're looking for the older usage guide, please read the [[https:// |
- | Usage in Windows: | + | ===== Installation ===== |
- | xcb.bat | + | Before getting started, have a look at this figure to understand how **XC=BASIC** |
- | + | ||
- | Usage in Linux: | + | |
- | ./xcb source.bas target.prg | + | {{ ::toolchain.png? |
- | + | ||
- | Usage in macOS: | + | |
- | ./xcbmac source.bas target.prg | + | ==== Step 1: install DASM ==== |
- | + | ||
- | That's all you have to use in most of the cases. However, you can still use the binaries in the '' | + | |
- | The command line usage of the binarry is: | + | * Go to [[https:// |
+ | * Extract the package to a location that you'll remember | ||
+ | * On Linux, you have to add the executable permission: '' | ||
+ | * Recommended: | ||
- | xcbasic64 | + | ==== Step 2: install |
- | + | ||
- | You can omit the output redirection if you just want to see the result on the screen. | + | |
- | The target then can be compiled using DASM: | + | * Go to [[https:// |
+ | * Extract the package to a location that you'll remember | ||
+ | * On Linux, you have to add the executable permission: '' | ||
+ | * Recommended: | ||
- | dasm target.asm | + | ===== Usage ===== |
- | + | ||
- | Or using a singe line command: | + | |
- | xcbasic64 | + | You can now invoke |
+ | xcbasic64 [-options] source.bas target.prg | ||
+ | |||
+ | The following command line options can be used: | ||
+ | |||
+ | |||
+ | |||
+ | | '' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||