VTI board for S100 computer (Poly88, IMSAI, ...)

Requests for features
sblendorio
Member
Posts: 20
Joined: Tue Jan 19, 2021 9:03 am

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by sblendorio »

@dom, I did a git pull of Z88DK, recompiled demo I tried before, it didn't work. Disassembling I found this LDIR:

Code: Select all

                           .data:000012f1 36 a0                            ld (hl),0xa0
                           .data:000012f3 ed b0                            ldir
                           .data:000012f5 c9                               ret
I compiled using:

Code: Select all

zcc +cpm -clib=8080 demo.c -lgfxvti -pragma-define:CONSOLE_COLUMNS=64 -pragma-define:CONSOLE_ROWS=16 --generic-console -pragma-export:VTI_DISPLAY=0xe800 -o demo.com
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by dom »

Did you recompile gfxvti? - See the instructions above.
sblendorio
Member
Posts: 20
Joined: Tue Jan 19, 2021 9:03 am

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by sblendorio »

Recompiling I got this message:

Code: Select all

sblendorio@LOCALPC:/github/z88dk/libsrc$ make gfxvti.lib

--- Building VTI graphics Library ---

TARGET=vti TYPE=8080 z88dk-z80asm -d -I/../ -m8080 -DFORvti -x/mnt/data/github/z88dk/libsrc//gfxvti @./video/vti/video_vti.lst
Error at file 'video/vti/stdio/generic_console.asm' line 25: cannot read file 'ioctl.def'
make: *** [Makefile:1700: gfxvti.lib] Error 1
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by dom »

That usually means you've not got ZCCCFG set in that shell, I'm not sure how anything would have worked without that though! However:

export ZCCCFG=/mnt/data/github/z88dk/lib/config/
sblendorio
Member
Posts: 20
Joined: Tue Jan 19, 2021 9:03 am

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by sblendorio »

I just recompiled ALL after changing Makefile as you stated before, with:

Code: Select all

$ sudo rm bin/*
$ sudo ./build.sh
$ sudo make install
Now it works on IMSAI. Thanks.

A question: should be possibile to choose to "printf" on VTI card and/or to stdout in the same program?
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by dom »

sblendorio wrote: Sun Jan 24, 2021 3:47 pmA question: should be possibile to choose to "printf" on VTI card and/or to stdout in the same program?
That's a great question, at the moment no - it's switched over completely (the --generic-console option) which is usually the right thing to do for machines with just a single display.

Given the the funopen() functionality isn't available for 8080 (it uses ix a lot) which would be the obvious way to handle this (basically providing a new FILE * to point to the other device), I think the best thing to do is to provide a function that toggles where stdout/stderr are directed to - let me work on that.
sblendorio
Member
Posts: 20
Joined: Tue Jan 19, 2021 9:03 am

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by sblendorio »

Maybe fputs, fputc using stdin? Is it possible on 8080?
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by dom »

sblendorio wrote: Sun Jan 24, 2021 6:04 pm Maybe fputs, fputc using stdin? Is it possible on 8080?
You can call fputc_cons_native() as is - that will output via BDOS on CP/M. I'm just trying to make it possible to switch between the graphics and serial console (in this case) for printf etc
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: VTI board for S100 computer (Poly88, IMSAI, ...)

Post by dom »

I forgot to back to you on this one. I added a set_fputc_cons() function which allows the implementation to be switched at runtime.

There's some details in the header file: https://github.com/z88dk/z88dk/blob/mas ... dio.h#L346
Post Reply