Search found 15 matches
- Wed Feb 07, 2024 12:00 am
- Forum: Guides and Tutorials
- Topic: Loading a .bas or .bas.txt file
- Replies: 4
- Views: 2844
Re: Loading a .bas or .bas.txt file
Thanks for the info. I’ll give that a try on the emulator but what about the actual hard ware? How do I pull it up, I can’t do the x16emu -bas filename.bas there. The simple way is to use the emulator and save the PRG to your SD card. However, there is a trick using BLOAD and the new EXEC command: ...
- Tue Feb 06, 2024 11:58 pm
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
Yes LOCATE seems a lot better. Looking at this persons code it is crazy the way they manipulated the cursor. Commodore BASIC V2 didn't have any commands for cursor control, so short of manipulating the cursor position by POKEing values into locations 211 and 214, using control characters was basica...
- Tue Feb 06, 2024 11:52 pm
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
My only real criticism is that he chose to include the "home" character in the Y position string, which does confuse matters somewhat, and his use of a three-letter variable name: "VTB$" could cause issues, as it will be interpreted as just "VT$" and would clash with a...
- Tue Feb 06, 2024 11:50 pm
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
I think the variables are used for the star field. And I see so many GOSUBs that just go to a return. What's the purpose of that, time delay? Figuring out this spaghetti code is rough. It would seem pretty odd to me to use an EMPTY GOSUB as a Time Delay. Thinking of my Own BASIC coding style I migh...
- Tue Feb 06, 2024 11:47 pm
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
I don't know if you've already dealt with this one... 3390 POKE 198,0 This clears the keyboard buffer. Another way is just to use GET to read the keyboard until nothing is left: 3390 GET A$:IF A$<>"" GOTO 3390 There's some stuff on the line after the POKE, but that can move to 3395 Yeah I...
- Mon Feb 05, 2024 10:34 pm
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
Yes LOCATE seems a lot better. Looking at this persons code it is crazy the way they manipulated the cursor. He has a couple of variables he sets up that they setup and use through out. 100 SP$="{space*39}" 110 VTB$="{home}{down*25}" Then has lines like this: 990 PRINTLEFT$(VTB$,...
- Mon Feb 05, 2024 2:58 am
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
Those are called Tok64 codes. They were a convention started in type-in magazines in the 80s. It just means you need to press that key when typing in the code, or you can use the PETCAT program that comes with the VICE emulation suite to turn it back into a PRG file. (I'm also working on a tokenize...
- Sun Feb 04, 2024 6:46 pm
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
The good news is Commander has a COLOR command, so the POKE to change color can be done with COLOR. The SYS for RESET is also not needed. We have a RESET command that actually does a hardware reset of the system. Thanks for the info. Yes COLOR should work nice. From what I have been able to figure ...
- Sun Feb 04, 2024 6:19 pm
- Forum: Programming
- Topic: Translate Peeks and Pokes from c64 BASIC Program?
- Replies: 25
- Views: 5083
Re: Translate Peeks and Pokes from c64 BASIC Program?
Ok so right now I think the port looks best in the lower rez screen, just hit the 40/80 display button before you run it. `SCREEN 3` is your friend. That's the 40x30 text mode that approximates the typical 80s 8-bit computer screen. Thank you for the info on the screen, I'll use that for this direc...
- Sun Feb 04, 2024 1:42 pm
- Forum: Guides and Tutorials
- Topic: Loading a .bas or .bas.txt file
- Replies: 4
- Views: 2844
Re: Loading a .bas or .bas.txt file
Thanks for the info. I’ll give that a try on the emulator but what about the actual hard ware? How do I pull it up, I can’t do the x16emu -bas filename.bas there.