Page 1 of 1

Web Emulator and Vpoke

Posted: Sat May 20, 2023 6:14 pm
by mortarm
Greetings:
Does Vpoke work with the online emulator? I've tried all the example in the BASIC programming guide and none of them work, no matter which browser I use. I'm on a Win10 box.

Thanks.

Re: Web Emulator and Vpoke

Posted: Sat May 20, 2023 11:27 pm
by TomXP411
Yes it does.
Screenshot 2023-05-20 162554.png
Screenshot 2023-05-20 162554.png (2.92 KiB) Viewed 4471 times

Re: Web Emulator and Vpoke

Posted: Sat May 20, 2023 11:27 pm
by Edmond D
It does work in the emulator for R43. This little program (stollen from the thread viewtopic.php?p=27278#p27278)

will put the @ symbol all over the screen. It's an example of mixing the VPOKE and POKE commands, which is not the best example, but a quick one.

10 VPOKE $11,$B000,0
20 POKE $9F23,$01
30 FOR I=2 TO 128*59
40 POKE $9F23,$0
50 POKE $9F23,$01
60 NEXT

If you search the forum you'll find better examples to play with. Also look at the basic documentation and the VERA guide too.

Re: Web Emulator and Vpoke

Posted: Sun May 21, 2023 12:07 am
by DragWx
I think what's happening is, you found some older BASIC program examples that were written back when the Kernal used a different memory layout for the screen. The current VRAM addresses the Kernal uses for text and bitmap modes can be found here.

Re: Web Emulator and Vpoke

Posted: Sun May 21, 2023 1:17 pm
by Daedalus
DragWx wrote: Sun May 21, 2023 12:07 am I think what's happening is, you found some older BASIC program examples that were written back when the Kernal used a different memory layout for the screen. The current VRAM addresses the Kernal uses for text and bitmap modes can be found here.
Oh! That's where the correct BASIC reentry vector is hiding! I've been using the one I found in the KERNAL page like a chump! That's much better! Thanks!

Re: Web Emulator and Vpoke

Posted: Tue May 23, 2023 7:36 pm
by mortarm
TomXP411 wrote: Sat May 20, 2023 11:27 pm Yes it does.

Screenshot 2023-05-20 162554.png
This does not conform to any of the examples from the book, which I referred to in my original post. If this only works with hex values, that needs to be specified in the User Guide.

Re: Web Emulator and Vpoke

Posted: Tue May 23, 2023 8:50 pm
by StephenHorn
What documentation were you referring to? Link please. But I'm going to guess that you were referring to https://github.com/commanderx16/x16-docs and not https://github.com/x16community/x16-docs.

The latter (x16community) is the current official source for documentation and updates. The community forked because the original owner of the commanderx16 repo was incommunicado. I'm sorry for the confusion, but it was a question of forking, or basically being stuck and unable to continue development.

Re: Web Emulator and Vpoke

Posted: Tue May 23, 2023 9:49 pm
by TomXP411
This just highlights the fact that we really need to get Michael to hand off the original repos… this has caught quite a few people by surprise.

Re: Web Emulator and Vpoke

Posted: Tue Aug 01, 2023 2:47 am
by mortarm
StephenHorn wrote: Tue May 23, 2023 8:50 pm What documentation were you referring to? Link please. But I'm going to guess that you were referring to https://github.com/commanderx16/x16-docs and not https://github.com/x16community/x16-docs.
Neither, actually. I got it from the the Downloads section of the forum, but I notice it's not there anymore.