Web Emulator and Vpoke

Chat about anything CX16 related that doesn't fit elsewhere
Post Reply
mortarm
Posts: 302
Joined: Tue May 16, 2023 6:21 pm

Web Emulator and Vpoke

Post 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.
TomXP411
Posts: 1785
Joined: Tue May 19, 2020 8:49 pm

Re: Web Emulator and Vpoke

Post by TomXP411 »

Yes it does.
Screenshot 2023-05-20 162554.png
Screenshot 2023-05-20 162554.png (2.92 KiB) Viewed 4465 times
Edmond D
Posts: 489
Joined: Thu Aug 19, 2021 1:42 am

Re: Web Emulator and Vpoke

Post 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.
DragWx
Posts: 345
Joined: Tue Mar 07, 2023 9:07 pm

Re: Web Emulator and Vpoke

Post 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.
User avatar
Daedalus
Posts: 229
Joined: Fri Nov 11, 2022 3:03 am

Re: Web Emulator and Vpoke

Post 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!
mortarm
Posts: 302
Joined: Tue May 16, 2023 6:21 pm

Re: Web Emulator and Vpoke

Post 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.
User avatar
StephenHorn
Posts: 565
Joined: Tue Apr 28, 2020 12:00 am
Contact:

Re: Web Emulator and Vpoke

Post 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.
Developer for Box16, the other X16 emulator. (Box16 on GitHub)
I also accept pull requests for x16emu, the official X16 emulator. (x16-emulator on GitHub)
TomXP411
Posts: 1785
Joined: Tue May 19, 2020 8:49 pm

Re: Web Emulator and Vpoke

Post 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.
mortarm
Posts: 302
Joined: Tue May 16, 2023 6:21 pm

Re: Web Emulator and Vpoke

Post 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.
Post Reply