V-FORTH - Forth-83 for the VIC

Basic and Machine Language

Moderator: Moderators

funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

hello thanks for help.

greeting
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

hello, good day.

my test text for forth gives an error message.
I transferred the text to a dsk.d64.

when I load the file with "include test.fs"
the error message appears.

your other fs work.
they are on the same disk.

where is the error.

thanks.
regards
Attachments
Bild2.jpg
fehler.jpg
User avatar
srowe
Vic 20 Scientist
Posts: 1471
Joined: Mon Jun 16, 2014 3:19 pm

Re: V-FORTH - Forth-83 for the VIC

Post by srowe »

funkheld wrote: Tue Nov 05, 2024 4:46 am my test text for forth gives an error message.
I transferred the text to a dsk.d64.
How are you copying the file? You probably have the wrong line endings. If you're using c1541 I think you have to specify ,s to ensure that the file type is correct.
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

thanks for the info.
the end of the line was missing in the text.

your vforth has been wonderfully expanded.

greetings
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

how do you do this character " ' " in vforth : 'test
with winvice in vforth?

thanks.
regards
User avatar
srowe
Vic 20 Scientist
Posts: 1471
Joined: Mon Jun 16, 2014 3:19 pm

Re: V-FORTH - Forth-83 for the VIC

Post by srowe »

That will depend a lot on which version of vice you're using and what keymap you have selected. With new versions there are positional and symbolic, along with translation for localized host keyboards. Best ask in "Emulation and Cross Development" for help.
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

hello thanks for help.

greeting
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

hello, good day.

I started the vforth rom and entered my program:
: hello ." hello vc20" ;

now I want to save the whole vforth with my program as myforth.prg.

how do I do that please?

thanks.
regards
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

hello, good day.

how can I use the address from $a000 - $bfff with the vforth rom?

thanks.
greetings
Attachments
Bild22.jpg
User avatar
srowe
Vic 20 Scientist
Posts: 1471
Joined: Mon Jun 16, 2014 3:19 pm

Re: V-FORTH - Forth-83 for the VIC

Post by srowe »

funkheld wrote: Wed Nov 06, 2024 9:01 am how can I use the address from $a000 - $bfff with the vforth rom?
I'm not sure I understand your question, you load the image into $A000 and start it using

Code: Select all

xvic -memory all -cartA vforth.rom
User avatar
srowe
Vic 20 Scientist
Posts: 1471
Joined: Mon Jun 16, 2014 3:19 pm

Re: V-FORTH - Forth-83 for the VIC

Post by srowe »

funkheld wrote: Wed Nov 06, 2024 8:31 am I started the vforth rom and entered my program:
: hello ." hello vc20" ;

now I want to save the whole vforth with my program as myforth.prg.

how do I do that please?
There's no simple way to make a completely standalone executable. You can create a dictionary that automatically executes a word on loading using the AUTOSAVE vocabulary, example shown here

https://www.sleepingelephant.com/ipw-we ... 36#p117736
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

hello thanks for help.

greeting
funkheld
Vic 20 Devotee
Posts: 251
Joined: Tue Sep 10, 2019 4:23 am

Re: V-FORTH - Forth-83 for the VIC

Post by funkheld »

hello, good day.

where can I find 2000 bytes free for myself with an address to use?

where can I find the memory list for the vforth.rom?

where can I find the memory list for the vforth.prg?

thanks.
greetings.
User avatar
srowe
Vic 20 Scientist
Posts: 1471
Joined: Mon Jun 16, 2014 3:19 pm

Re: V-FORTH - Forth-83 for the VIC

Post by srowe »

funkheld wrote: Fri Nov 08, 2024 8:32 am where can I find 2000 bytes free for myself with an address to use?
The FORTH approach to memory allocation is to take it from the free space at the end of the dictionary using

Code: Select all

2000 allot
This leaves the address of the space on the stack.
where can I find the memory list for the vforth.rom?

where can I find the memory list for the vforth.prg?
The memory map which shows these is in docs/memory-map.txt
User avatar
pixel
Vic 20 Guru
Posts: 1548
Joined: Fri Feb 28, 2014 3:56 am
Location: Bielefeld, Germany

Re: V-FORTH - Forth-83 for the VIC

Post by pixel »

Could something like this (full-screen text editor, mostly ANS-FORTH) ever make it into VFORTH or would that be rather illusory, considering the limited heap?:
https://github.com/benhoyt/fe
A man without talent or ambition is most easily pleased. Others set his path and he is content.
https://github.com/SvenMichaelKlose
Post Reply