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.
Search found 50 matches
- Tue Jan 10, 2023 2:04 pm
- Forum: Sinclair ZX
- Topic: tc2048 and esxdos
- Replies: 4
- Views: 906
- 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
and something is shown.
Parameters are counted from 0, so argv[0] is the first filename.
Is it standard for zxn or bug?
and
Code: Select all
#pragma output NEXTOS_VERSION = 0
#pragma redirect CRT_OTERM_FONT_8X8 = _font_8x8_vga_rom
Parameters are counted from 0, so argv[0] is the first filename.
Is it standard for zxn or bug?
- 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-...
- 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...
- 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.
I have an old code and porting to conio.h and genconsole did not suceed yet.
- 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.
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.
- Sun Jan 26, 2014 5:10 pm
- Forum: Sinclair ZX
- Topic: Kempston Mouse - how to read?
- Replies: 7
- Views: 9521
- Sat Jan 25, 2014 11:27 am
- Forum: Sinclair ZX
- Topic: Kempston Mouse - how to read?
- Replies: 7
- Views: 9521
- 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...
- 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...
- 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...
- 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...
- 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...
- 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...
- Tue Mar 05, 2013 8:41 pm
- Forum: Bug reports
- Topic: w_stencil
- Replies: 18
- Views: 19191
- Sat Mar 02, 2013 6:46 pm
- Forum: Bug reports
- Topic: w_stencil
- Replies: 18
- Views: 19191
- Thu Feb 28, 2013 7:42 pm
- Forum: Bug reports
- Topic: w_stencil
- Replies: 18
- Views: 19191
- Sat Feb 23, 2013 9:03 am
- Forum: Bug reports
- Topic: w_stencil
- Replies: 18
- Views: 19191
- Tue Feb 19, 2013 6:14 pm
- Forum: Sinclair ZX
- Topic: Specialised ts2068 ansi procedures
- Replies: 9
- Views: 11603
- 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?
Are attachments on the forum enabled?
- 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...
- Thu May 17, 2012 5:18 pm
- Forum: Sinclair ZX
- Topic: None of Spectrum examples work as expected
- Replies: 5
- Views: 7281
- Sun Apr 29, 2012 6:26 pm
- Forum: Bug reports
- Topic: Off by one??
- Replies: 2
- Views: 4669
- 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...
- 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 ...