Search found 645 matches
- 05 Sep 2021, 20:03
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
I will probably add a label modifier that allows you to manually disable the emitted push for gosub labels, thus giving the programmer maximum flexibility, (super dangerous, but must be manually enabled, so user assumes all responsibility). Something like this: MODDLST:(NO_PUSH) asm PUSH endasm MODD...
- 05 Sep 2021, 19:49
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
OK. I got it. I have translated an assembler program into basic. The assembler program uses a lot of techniques to reduce memory usage this being one of them. I am working through the program flow now from start to end. I can't remember if I ever used goto and gosub with the same label when I progr...
- 05 Sep 2021, 19:29
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
I have another issue. I have some code in a subroutine where there is a GOTO another subroutine2 but when the subroutine2 hits RETURN it processes the next line as after the GOTO instead of the return from subroutine1. Looks like GOTO might be putting a return address on the call stack and it shoul...
- 04 Sep 2021, 11:50
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
I just checked the parser and it is broken for both comments and operators in compound initialisers, (so you can't use the OR statement). I have fixed it my end in my current version of the compiler, but that it isn't going to be released for a while. If you need comments and operators within compou...
- 04 Sep 2021, 10:55
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
You probably can't use comments in compound initialisers, I'd have to check the parser. What's most likely happening is that the first comment breaks the parser and the initialiser uses the last valid field to fill in the rest of the array, (which is a feature). So in your case 0x00 is the last vali...
- 31 Aug 2021, 07:33
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
- Use arrays or DEF BYTE/WORD when you run out of zero page vars, both of these are somewhat slower to access than zero page vars, so plan accordingly. IF ... THEN ... IF ... ... ENDIF IF ... ... ELSE ... ENDIF IF ... ... ELSEIF ... ... ELSEIF ... ... ELSE ... ENDIF ELSE must always come after all o...
- 22 Aug 2021, 00:24
- Forum: Hardware and software hacking
- Topic: Gigatron vs. Arduino Uno
- Replies: 5
- Views: 3517
Re: Gigatron vs. Arduino Uno
Your Arduino Uno should be running BabelFish, once it is running BabelFish it will be able to interpret a whole host of ASCII commands, (there is plenty of documentation on BabelFish both in the forums and in the repo).
- 22 Aug 2021, 00:22
- Forum: Hardware and software hacking
- Topic: how to compile the ROM
- Replies: 5
- Views: 3322
Re: how to compile the ROM
Sharing some info: under Win7 you should install and older version of python (I've chosen the 3.6.5) and change the makefile, replacing all the instances of "python3" with "python". And, of course, run the make from a dos shell with administrative privileges. Would this work on ...
- 22 Aug 2021, 00:12
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
It still returns me the 0xc000007b error. Must to be said I'm using your pre-compiled emulator, so I don't absolutely need to discover why it doesn't work... still, I wish to know how to fix it. I'd have to check, but I am fairly certain that was compiled for a copy of Windows7 x86, i.e. a 32bit ex...
- 20 Aug 2021, 20:24
- Forum: Hardware and software hacking
- Topic: gtBASIC
- Replies: 435
- Views: 102329
Re: gtBASIC
Do you mean the Visual C++ redistributable? I installed both x86 and x64 (2017 - 14.16.27033)... Yes, the redistributable contains the CRT and whatever other DLLs/LIBs your current version of Windows and Visual Studio requires, (i.e. STL, C++, etc). Did you download the correct one for your version...