Re: gtBASIC
Posted: 13 Jul 2022, 00:59
All good, glad you got it running!
Ok, if it was me setting this up, I would have a directory structure more like this:NewTechPhobic wrote: ↑16 Jul 2022, 18:03 I renamed the gigatron demo (gigatron.gbas) to Test .gbas just to avoid confusion. The emulator and all of it's components are in the root directory of my C drive
C:/gtemuAT67_v1.9R/tools/Test.gbas
Code: Select all
C:/
|
+---gtemuAT67_v1.9R (folder)
| |
| +---gtemuAT67.exe (file)
| +--- .
| +--- .
| +--- .
| +---SDL2.dll (file)
| |
| |
| +---tools (folder)
| | |
| | +---gt1torom.exe (file)
| | +--- .
| | +--- .
| | +--- .
| | +---gtsplitrom.exe (file)
| |
| |
| +---gbas (folder)
| |
| Test.gbas (your file)
| |
| +---apps (folder)
| +--- .
| +--- .
| +--- .
| +---tinybasic (folder)
| +---README.md (file)
This means gtBASIC could not find that file in it's expected place, i.e. "../runtime" which in your case would translate to:NewTechPhobic wrote: ↑16 Jul 2022, 18:03 Compiler ::initialiseMacros() : failed to open file 'C/gtemuAT67_v1.9R/tools//macros.i
Code: Select all
C:/gtemuAT67_v1.9R/runtime/macros.i
Code: Select all
C:/gtemuAT67_v1.9R/gbas/runtime/macros.i
Yes, but also the runtime files are probably missing, I was a little vague in previous descriptions when I said you needed to clone/download the main gigatron repo; which is why I added the new DropBox link above for gbas.zip which contains all the gtBASIC examples and runtime.NewTechPhobic wrote: ↑16 Jul 2022, 18:03 The program as it came from GitHub had a header with the following defaults
_runtimePath_ "../runtime"
_codeRomType_ ROMv1
I'm guessing the first line is where I screwed up I assume this line is to tell the emulator where to go and what to do.
Kind of, it specifies the target ROM you want to produce code for, so if you want your code to run on all possible versions of gigatrom ROM's, then you would use ROMv1, this will produce the most compatible code, but also the slowest and most inefficient code, (I don't think any active users use ROMv1 anymore). But if you specify a higher ROM, such as ROMv5a, (which most active users have upgraded to), gtBASIC will produce fast and efficient, (smaller size), code.NewTechPhobic wrote: ↑16 Jul 2022, 18:03 The second line I'm guessing only needs the rom version changing to match the hardware gigatrons rom and in the emulator.
For best compatibility with everyone and everything, always set it to ROMv1.NewTechPhobic wrote: ↑16 Jul 2022, 18:03 The problem is I really do not understand the first line and how it should go together.
You don't need to modify any of the config files if you are able to download .gt1 files to real hardware, i.e. the way you have them now sounds fine.NewTechPhobic wrote: ↑16 Jul 2022, 18:03 Do the configs for the loader need to be changed the comm port and its settings are OK , I was usure about the path for the GCL files.