Search found 21 matches

by sblendorio
Mon Sep 13, 2021 12:50 pm
Forum: CP/M, FLOS and OS related
Topic: Time-limited get-key
Replies: 4
Views: 3061

Re: Time-limited get-key

thank you!
by sblendorio
Sat Sep 11, 2021 3:16 pm
Forum: CP/M, FLOS and OS related
Topic: Time-limited get-key
Replies: 4
Views: 3061

Re: Time-limited get-key

It's an IMSAI 8080, so it's an Intel 8080 @ 2 MHz
by sblendorio
Fri Sep 10, 2021 2:42 pm
Forum: CP/M, FLOS and OS related
Topic: Time-limited get-key
Replies: 4
Views: 3061

Time-limited get-key

Hi, I'm trying to make a pause (like "sleep()" or "msleep()") that can be interruptable by a key pression. I tried this but did not work. char pausekey() { int t; char ch; for (t=0; t<1000; ++t) { ch = getk(); if (ch) return ch; msleep(10); } return 0; } Target is CP/M on 8080 (c...
by sblendorio
Thu Jan 28, 2021 4:40 pm
Forum: CP/M, FLOS and OS related
Topic: CP/M, Intel 8080 and math functions
Replies: 1
Views: 2548

Re: CP/M, Intel 8080 and math functions

Just opened an issue https://github.com/z88dk/z88dk/issues/1687 having found a little segment which causes the error. It's related to a cast between double <-> long types. #include <stdio.h> #include <stdlib.h> #include <math.h> void main(int argc, char *argv[]) { long a = 6; long b = 3; double c; c...
by sblendorio
Thu Jan 28, 2021 10:33 am
Forum: CP/M, FLOS and OS related
Topic: how to exit without reloading CCP?
Replies: 8
Views: 5428

Re: how to exit without reloading CCP?

Interesting. There is now an option?
by sblendorio
Thu Jan 28, 2021 10:02 am
Forum: CP/M, FLOS and OS related
Topic: CP/M, Intel 8080 and math functions
Replies: 1
Views: 2548

CP/M, Intel 8080 and math functions

Hi, I'm trying to compile this source (which uses floating points) under CP/M for Intel 8080: #include <stdlib.h> #include <math.h> void plotCubicBezier(char mode, int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3); void plotCubicBezierSeg(char mode, int x0, int y0, float x1, float y1, ...
by sblendorio
Wed Jan 27, 2021 1:11 pm
Forum: CP/M, FLOS and OS related
Topic: Call "in a,(0x88)" then read "a" register from a C program
Replies: 7
Views: 4162

Re: Call "in a,(0x88)" then read "a" register from a C program

Did it.

Code: Select all

void set_port(int port) __z88dk_fastcall {
#asm
    ld a,l
    ld (portsmc+1),a
#endasm
}

int read_port() __z88dk_fastcall {
#asm
portsmc:
    in a,(0x00)
    ld l,a
    ld h,0
#endasm
}
by sblendorio
Wed Jan 27, 2021 10:02 am
Forum: CP/M, FLOS and OS related
Topic: Call "in a,(0x88)" then read "a" register from a C program
Replies: 7
Views: 4162

Re: Call "in a,(0x88)" then read "a" register from a C program

In order to reduce the instructions executed, how to make something like this?

Code: Select all

{
    set_port(0x88);
    ...
    ...
    int value = read_port()
}
by sblendorio
Mon Jan 25, 2021 6:10 pm
Forum: CP/M, FLOS and OS related
Topic: Call "in a,(0x88)" then read "a" register from a C program
Replies: 7
Views: 4162

Re: Call "in a,(0x88)" then read "a" register from a C program

Thank you, it works perfectly.

Is there a way to parametrize the port number at runtime?
by sblendorio
Mon Jan 25, 2021 8:39 am
Forum: CP/M, FLOS and OS related
Topic: Call "in a,(0x88)" then read "a" register from a C program
Replies: 7
Views: 4162

Call "in a,(0x88)" then read "a" register from a C program

Hi,

I need to call from a C program, this ASM instruction

Code: Select all

in a,(0x88)
...then put the content of A in a variable. How should I do it?

Thanks in advance
by sblendorio
Sun Jan 24, 2021 6:04 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

Maybe fputs, fputc using stdin? Is it possible on 8080?
by sblendorio
Sun Jan 24, 2021 3:47 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

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?
by sblendorio
Sun Jan 24, 2021 3:27 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

Recompiling I got this message: 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...
by sblendorio
Sun Jan 24, 2021 3:01 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

@dom, I did a git pull of Z88DK, recompiled demo I tried before, it didn't work. Disassembling I found this LDIR : .data:000012f1 36 a0 ld (hl),0xa0 .data:000012f3 ed b0 ldir .data:000012f5 c9 ret I compiled using: zcc +cpm -clib=8080 demo.c -lgfxvti -pragma-define:CONSOLE_COLUMNS=64 -pragma-define:...
by sblendorio
Fri Jan 22, 2021 1:01 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

I just tried to compile this demo.zip with this command line, it worked with the Nino Porcino's emulator (vti start addres = 0xc000). zcc +cpm -clib=8080 demo.c -lgfxvti -pragma-define:CONSOLE_COLUMNS=64 -pragma-define:CONSOLE_ROWS=16 --generic-console -pragma-export:VTI_DISPLAY=0xc000 -o demo.com T...
by sblendorio
Fri Jan 22, 2021 9:27 am
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

@dom are there also corresponding for:

* vti_print_at (print strings at x,y text coordinates)
* vit_read_pixel (read pixel status)
* XOR version of plot

?
by sblendorio
Thu Jan 21, 2021 4:22 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

Suggestion for testing. This is Antonino Porcino's emulator for General Processor, configured to be used with VTI, mapped at address $C000 (hex) 49152 (dec) https://nippur72.github.io/gpmodelt-emu/?poly88=true After the prompt appears A> , just drag'n'drop file demo.com from my github repository int...
by sblendorio
Thu Jan 21, 2021 12:01 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

@Dom could you also provide an "hello world" (a dot, a line...) which could run under CP/M and the command line to be used to build it?
by sblendorio
Thu Jan 21, 2021 8:26 am
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

@Stefano AFAIK there is no way to detect the start address of VTI, since there are hardware dip-switches to set it. I'm looking through documentation. Here is a board description: https://deramp.com/polymorphic-computers/boards.html Here is the manual: https://deramp.com/polymorphic-computers/manual...
by sblendorio
Wed Jan 20, 2021 1:44 pm
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

The test can be done by me and my friend Andrea Matteucci. The key function is just this, to draw a dot. mode = 0 = erase 1 = plot 2 = xor static unsigned char pow[] = {32, 16, 8, 4, 2, 1}; void vti_plot(char mode, int x, int y) { static unsigned char *addr; static int gx, gy; static unsigned char s...
by sblendorio
Tue Jan 19, 2021 9:30 am
Forum: Feature Requests
Topic: VTI board for S100 computer (Poly88, IMSAI, ...)
Replies: 33
Views: 19932

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

Hi, I recently used Z88DK to make a demo for "VTI" board. It's a S100 board for computers like IMSAI 8080, Altair 8800, Poly88. It was born for Poly88 but it works also for other ones. Here is a description of the board: http://www.s100computers.com/Hardware%20Folder/PolyMorphic/Video%20Bo...