Search found 50 matches

by rkd77
Tue Jan 10, 2023 2:04 pm
Forum: Sinclair ZX
Topic: tc2048 and esxdos
Replies: 4
Views: 906

Re: tc2048 and esxdos

There is also check for __NEXTOS_DOT_COMMAND or NEXTOS_VERSION. If they are set and non-zero there is error:
"Requires NextZXOS" or similar message.
by rkd77
Mon Jan 09, 2023 7:18 pm
Forum: Sinclair ZX
Topic: tc2048 and esxdos
Replies: 4
Views: 906

Re: tc2048 and esxdos

Thanks, added +zxn -startup=16 to zcc
and

Code: Select all

#pragma output NEXTOS_VERSION = 0
#pragma redirect CRT_OTERM_FONT_8X8 = _font_8x8_vga_rom
and something is shown.
Parameters are counted from 0, so argv[0] is the first filename.
Is it standard for zxn or bug?
by rkd77
Sat Jan 07, 2023 4:15 pm
Forum: Sinclair ZX
Topic: tc2048 and esxdos
Replies: 4
Views: 906

tc2048 and esxdos

Good morning, I've got following configuration (Timex2048 and esxdos), wrote code: #pragma printf = "%c" #pragma output CLIB_EXIT_STACK_SIZE = 3 /* /snap/bin/z88dk.zcc +zx -vn -subtype=dot -startup=5 -clib=sdcc_iy -SO3 --max-allocs-per-node200000 --opt-code-size more64.c -o more64 -create-...
by rkd77
Wed Mar 03, 2021 8:54 am
Forum: Sinclair ZX
Topic: Custom font
Replies: 6
Views: 3231

Re: Custom font

Thank you! I the meantime I rewrote my code and it works with conio.h. I noticed that conio's cputs does not work right and ansi puts_cons either. https://github.com/rkd77/tmxsnake .Version 0.0.5 is an old code, if you change Makefile a bit you can compile it. In this version there are these puts_co...
by rkd77
Mon Mar 01, 2021 2:43 pm
Forum: Sinclair ZX
Topic: Custom font
Replies: 6
Views: 3231

Re: Custom font

If it is possible, please add choice of text modes and font in +ts2068 -clib=ansi.
I have an old code and porting to conio.h and genconsole did not suceed yet.
by rkd77
Sun Feb 28, 2021 5:08 pm
Forum: Sinclair ZX
Topic: Custom font
Replies: 6
Views: 3231

Custom font

Hi, could you tell me how to set own font 8x8 or 6x8 for ansi timex mode?
Second question, how to get modes 85x24 and 64x24 for Timex ansi? I know I can modify Makefile and recompile libraries, but I would like out of the box solution without "recompilation". Latest version checked was 2.1.
by rkd77
Sun Jan 26, 2014 5:10 pm
Forum: Sinclair ZX
Topic: Kempston Mouse - how to read?
Replies: 7
Views: 9521

github.com/rkd77/zxvnc
Spectrum (spectranet,kempston mouse) <-> zxvnc <-> vncserver
by rkd77
Sat Jan 25, 2014 11:27 am
Forum: Sinclair ZX
Topic: Kempston Mouse - how to read?
Replies: 7
Views: 9521

Thanks, zxvnc is ready, but performance is poor.
by rkd77
Mon Jan 20, 2014 2:52 pm
Forum: Sinclair ZX
Topic: Kempston Mouse - how to read?
Replies: 7
Views: 9521

Kempston Mouse - how to read?

Hello, I wanted to write a program using Kempston Mouse. /* zcc +zxansi -vn -lndos -create-app -o kemp.bin kemp.c */ #include <input.h> #include <stdio.h> #include <graphics.h> #include <games.h> uchar in_KempcoordX, in_KempcoordY, in_KemprawX, in_KemprawY; static void move_cursor(unsigned char y, u...
by rkd77
Sat Aug 10, 2013 11:30 am
Forum: Bug reports
Topic: w_stencil
Replies: 18
Views: 19191

In #15 there is code for checks C and Z flags for various values of DL, HL and results of l_cmp on Spectrum. As one can see LD HL,-1 LD DE,511 does not print C In #16 there is new procedure l_cmp_unsigned. The goal of this procedure is to cover negative values and overflow, but C flag values are inv...
by rkd77
Sat Jul 27, 2013 9:50 am
Forum: Bug reports
Topic: -Wformat -Werror=format-security
Replies: 1
Views: 3488

-Wformat -Werror=format-security

Hi, some distributions build packages with -Wformat -Werror=format-security. Build of z88dk fails with these options. Could you fix it? --- z88dk/src/z80asm/die.c.old 2013-03-14 16:05:23.173003307 +0100 +++ z88dk/src/z80asm/die.c 2013-03-14 16:05:47.210041707 +0100 @@ -66,7 +66,7 @@ void die( e4c_ex...
by rkd77
Mon Jul 15, 2013 10:40 am
Forum: Bug reports
Topic: Ansi - printing at bottom right corner causes scroll up
Replies: 18
Views: 19557

Index: f_ansi_putc.asm =================================================================== RCS file: /cvsroot/z88dk/z88dk/libsrc/stdio/ansi/f_ansi_putc.asm,v retrieving revision 1.2 diff -u -r1.2 f_ansi_putc.asm --- f_ansi_putc.asm 13 Apr 2001 14:13:59 -0000 1.2 +++ f_ansi_putc.asm 15 Jul 2013 10:2...
by rkd77
Thu Jul 11, 2013 4:48 pm
Forum: Bug reports
Topic: Ansi - printing at bottom right corner causes scroll up
Replies: 18
Views: 19557

Ansi - printing at bottom right corner causes scroll up

Here is an example code: /* zcc +zxansi ... */ #include <input.h> #include <stdio.h> void print_at(unsigned char y, unsigned char x) { printf("\033[%d;%dH", y+1, x+1); } int main(void) { int i,j; for (j = 0; j < 23;j++) { print_at(j, 0); printf("%d", j); } print_at(23, 0); for (j...
by rkd77
Wed Mar 06, 2013 11:09 am
Forum: Bug reports
Topic: w_stencil
Replies: 18
Views: 19191

Here is the l_cmp_unsigned procedure, which covers both cases (negative and bigger than the limit), but conditions ret c and ret nc must be reviewed (probably must be inverted). .l_cmp_unsigned or a; flag C = 0 push hl sbc hl,de pop hl ret; flag Z is set when HL == DE, flag C is set when DE < 0 or D...
by rkd77
Tue Mar 05, 2013 8:41 pm
Forum: Bug reports
Topic: w_stencil
Replies: 18
Views: 19191

Here is the test code. As you can see for HL = -1 the C flag is not set. plot(-1, 10) pokes somewhere in the RAM, instead of "do nothing". int main(int argc, char **argv) { /* Try different values for HL, eg. -1, 10, 511, 530 */ #asm ld hl,-1 ld de,511 call l_cmp jr c,cset jr z,zero ret .c...
by rkd77
Sat Mar 02, 2013 6:46 pm
Forum: Bug reports
Topic: w_stencil
Replies: 18
Views: 19191

Thanks.
BTW, I'm afraid that call l_cmp in the hires mode (w_plotpixl etc.) is not sufficient.
What with negative values?
For example plot(-1, 0).
-1 < 511, but is equivalent of plot(65535, 0).
Am I right or not here?
I didn't test it.
by rkd77
Thu Feb 28, 2013 7:42 pm
Forum: Bug reports
Topic: w_stencil
Replies: 18
Views: 19191

When the test.c is compiled in the hires mode, rabbits are thin and small.
In the normal version they are thick and big.
What params did you pass to the z80svg and then to the zcc to get the same (thick and big rabbits) results in ts2068 hires mode?
by rkd77
Sat Feb 23, 2013 9:03 am
Forum: Bug reports
Topic: w_stencil
Replies: 18
Views: 19191

Fixed. It was due to w_stencil_init setting up a too big boundary thus shifting to negative values instead setting "very big" numbers. Onto the buffer side, while the 'normal' stencils need two byte vectors as long as the Y axis, the 'wide' ones use words; (with the values I'm currently u...
by rkd77
Tue Feb 19, 2013 6:14 pm
Forum: Sinclair ZX
Topic: Specialised ts2068 ansi procedures
Replies: 9
Views: 11603

Alas, I don't have the real 2068. Tested the turbo loader on the emulator and on the real TC2048. Yes, it's stable and three times faster than original. Good job!
TZX or PZX output would be great.
by rkd77
Sun Feb 17, 2013 3:11 pm
Forum: Sinclair ZX
Topic: Specialised ts2068 ansi procedures
Replies: 9
Views: 11603

At http://rkd.republika.pl/ts2068an_2.patch there is a small improvement. A few tacts less. Multiplication by 8 instead of addition in a loop.
Are attachments on the forum enabled?
by rkd77
Sat Feb 09, 2013 11:21 am
Forum: Sinclair ZX
Topic: Specialised ts2068 ansi procedures
Replies: 9
Views: 11603

Specialised ts2068 ansi procedures

Ansi screen procedures are universal, but slow. Especially 80/85 Timex columns mode. At [url]rkd.republika.pl/ts2068an.patch[/url] there is the patch, which add specialised version for 64 and 80/85 columns. I didn't measure it, but guess they are faster. Even if 80 column mode is not faster, it is m...
by rkd77
Thu May 17, 2012 5:18 pm
Forum: Sinclair ZX
Topic: None of Spectrum examples work as expected
Replies: 5
Views: 7281

Yes, spectrum examples work with nightly 20120517
by rkd77
Sun Apr 29, 2012 6:26 pm
Forum: Bug reports
Topic: Off by one??
Replies: 2
Views: 4669

Thanks!
by rkd77
Tue Apr 24, 2012 9:13 am
Forum: Sinclair ZX
Topic: Timex 2068 and CHNG_VIDMOD
Replies: 2
Views: 5877

Timex 2068 and CHNG_VIDMOD

Hi, When TC2068 or TS2068 is used without the Spectrum emulator cartridge in the hires mode after the back to Basic the computer crashes. By default there is some machine code and other stuff in the second display area. You can see it invoking OUT 255,6 after reset. There is a "solution" t...
by rkd77
Tue Apr 24, 2012 8:49 am
Forum: Bug reports
Topic: Off by one??
Replies: 2
Views: 4669

Off by one??

/* gfx.c * To build: * zcc +ts2068 -zorg=32768 -startup=2 -lgfx2068hr gfx.c -o gfx.bin -lndos -create-app -lm */ #include <graphics.h> main() { draw(0, 0, 510, 47); circle(128, 128, 4, 1); drawr(-20, -30); return 0; } This code is miscompiled. In drawr w_respixl is used instead of w_plotpixl. These ...