fig-forth

By samsaga2

Resident (52)

samsaga2's picture

29-07-2016, 09:38

I'm trying to use z80 fig-forth on the msx-dos but I have some problems using the 8080/z80 assembler.

All seems to work but when I try to use the assembler:

13 LOAD
ASSEMBLER HEX
CODE TEST
2 C MVI
41 E MVI
5 CALL
DD C, E9 C,
C;

TEST

I don't know what to do to exit from the assembler function. I try to add a JP (IY) but it not works. The zip contains all the source code. Any help?

Login or register to post comments

By samsaga2

Resident (52)

samsaga2's picture

31-07-2016, 09:20

I've solved my problem. Someone maybe interested (or not).

First I've defined two words to use the registers ix and iy:

: IX DD C, 4 ;
: IY FD C, 4 ;

Now I can do:

CODE TEST
IX PUSH IY PUSH B PUSH
EXX 2 C MVI 41 E MVI 5 CALL EXX
B POP IY POP IX POP
PCIX C;

And it fully works.

Fig-forth it's very nice. It's fast and works very well on msx-dos.

By ARTRAG

Enlighted (6060)

ARTRAG's picture

31-07-2016, 10:04

what is it for?

By jltursan

Prophet (2120)

jltursan's picture

31-07-2016, 11:33

Quote:

what is it for?

Do you mean "what is it forth?". Hehe, man, I can't resist...

@samsaga: I remember your MSX forth implementation, are you still working on it?. The robots game is the one and only game in Forth for MSX I know, and it's not bad at all Smile

By samsaga2

Resident (52)

samsaga2's picture

01-08-2016, 08:07

MSX forth was a cross compiler using camelforth as a backend. It's stopped because it's working. But now I would like to develop some little game using forth directly on a MSX instead cross compiling.

By astharot

Supporter (5)

astharot's picture

06-01-2019, 15:30

Hello, i resurrect this post because i search help how use Forth on Msx.. here in Italy i no found more stuff.. maybe you have idea where found msx books magazine where is describe forth for msx? thanks at all

By Sylvester

Champion (383)

Sylvester's picture

06-01-2019, 16:41

Maybe there are some hints in the Kuma Forth manual: https://cintasmsx.webcindario.com/dirlistingv2/K/Kuma%20Fort... ?

By Louthrax

Paragon (1921)

Louthrax's picture

06-01-2019, 17:10

May the Forth be with you (sorry).

By hamlet

Scribe (2148)

hamlet's picture

06-01-2019, 17:18

That's what Harrison Forth would say. (sorry2).

My MSX profile