Search found 343 matches

by siggi
Wed Dec 30, 2020 10:42 am
Forum: Sinclair ZX
Topic: Source level debugger
Replies: 6
Views: 4508

Re: Source level debugger

A feature request does already exist:
https://z88dk.org/forum/viewtopic.php?f=8&t=2372
;)
Siggi
by siggi
Wed Jun 10, 2020 9:05 pm
Forum: Sinclair ZX
Topic: Is IM2 mode supported on the ZX81 ?
Replies: 5
Views: 4641

If you check the schema of the ZX81, you will notice that the /NMI line is driven by the ULA and /INT is driven by the Z80. Thus it's not easy to drive the /INT line by an external device ...

Siggi
by siggi
Wed Jun 10, 2020 8:34 pm
Forum: Sinclair ZX
Topic: Is IM2 mode supported on the ZX81 ?
Replies: 5
Views: 4641

The ZX81 uses /INT and /NMI to generate the display. Thus you cannot use any other interrupt during SLOW mode.
Maybe your code will run during FAST mode of ZX81. But restore all registers AND the original int-mode before switching back to SLOW mode to show a result ...

Siggi
by siggi
Tue Mar 03, 2020 3:04 pm
Forum: Sinclair ZX
Topic: Trying Steven McDonald zx81 Pseudo Hires routines
Replies: 44
Views: 23290

You've been warned, I tuned it on EightyOne, A real TV set might behave differently. And a real ZX81 might also behave differently! Don't forget, that the region in ROM, pointed by I, might contain different patterns, because nowadays there are a lot of new (BIGBANG) or patched (for LOAD/SAVE from ...
by siggi
Thu Oct 11, 2018 7:30 am
Forum: z88dk-users
Topic: [Z88dk-users] Searching in the new WIKI???
Replies: 6
Views: 8586

From my point of view (as normal user) searching in the new WIKI (my primary use case) is a big step backwards. It's part of a migration to github. I don't know if anything can be done about how github searching works. Unfortunately the older resources cost money to maintain which dom has been payi...
by siggi
Mon Oct 08, 2018 10:26 am
Forum: Sinclair ZX
Topic: quickly blit a custom 4x6 font character to screen?
Replies: 13
Views: 11551

tschak909 wrote:And if you have FUSE with Spectranet set up, you can do the following:

%mount 0,"irata.online"
%load""

:)
I will check that using my Zeddy and ZeddyNet ;)


Siggi
by siggi
Mon Oct 08, 2018 8:27 am
Forum: z88dk-users
Topic: [Z88dk-users] Searching in the new WIKI???
Replies: 6
Views: 8586

Yes that works. But a lot of new clicks are necessary to get to the same result: New WIKI: - enter "strstr" at search filed on top of page (step 1) - select "In this repository" (step 2) - click at item 2 "listing" (step 3) - >page "string.h" is shown (top of ...
by siggi
Fri Oct 05, 2018 1:00 pm
Forum: Bug reports
Topic: ZX81: zx_setstr() does not cut existing longer strings correctly
Replies: 8
Views: 10855

zx_setstr() is also buggy and does also handle strings of length 0 not correct. Test program: // zcc +zx81 -create-app -startup=2 -vn -o test.bin test.c #include <stdio.h> #include <zx81.h> #include <input.h> void main(void) { in_WaitForNoKey(); printk("press any key to continue\n"); in_Wa...
by siggi
Mon Sep 17, 2018 2:14 pm
Forum: Sinclair ZX
Topic: LPRINT on ZX81?
Replies: 99
Views: 89282

I'm also thinking at the zx_fast() workaround. zx_lprintc should have been safe, because it is restoring the registers before doing ROM related stuff but obviously something is not working.. is zx_fast() needed also when you run in other modes than WRX ? Hi Stefano, the routine "SLOW/FAST"...
by siggi
Mon Sep 17, 2018 1:00 pm
Forum: Sinclair ZX
Topic: LPRINT on ZX81?
Replies: 99
Views: 89282

Hi Stefano
why does zx_lprintc.asm contain a special handling of LF? I think, the normal coversion function asctozx81() would also cover this special char.

Siggi
by siggi
Sat Sep 15, 2018 6:36 am
Forum: Sinclair ZX
Topic: LPRINT on ZX81?
Replies: 99
Views: 89282

stefano wrote:zx_lprintc is just a bridge to the rom function, so the used font is the rom one
Thus it's not possible to lprint UDG like zx_hardcopy does?
by siggi
Fri Sep 14, 2018 11:56 am
Forum: Sinclair ZX
Topic: LPRINT on ZX81?
Replies: 99
Views: 89282

Yes, zx_fast() is also necessary for usual text mode (EO also shows the problem). Maybe its not a problem or registers, but system variables (which are also set/reset by zx_slow/zx_fast)? I thought, that zx_lprintc() would use the same font/characters that are used for current screen output. So only...
by siggi
Thu Sep 13, 2018 7:09 pm
Forum: Sinclair ZX
Topic: LPRINT on ZX81?
Replies: 99
Views: 89282

Hi Stefano using the nightly build the state is the same: printing works, when printing is done in fast mode, like this: void lprintc (unsigned char c) { if (c == '\n') zx_fast(); /* Workaround for Z88DK problem during print */ zx_lprintc(c); if (c == '\n') zx_slow(); } What must I do to get 64 char...
by siggi
Thu Sep 13, 2018 8:37 am
Forum: Sinclair ZX
Topic: zx_line
Replies: 18
Views: 12496

Yes: nice to have, but low priority ;-)
by siggi
Tue Sep 11, 2018 9:03 am
Forum: Sinclair ZX
Topic: ZX81: "DOS BOX" or "shell" possible?
Replies: 6
Views: 5860

And the BASIC lines 2000-2100 as given above are also a good example, what should be handled by a "shell" (if this commands are entered manually)
by siggi
Tue Sep 11, 2018 7:46 am
Forum: Sinclair ZX
Topic: ZX81: "DOS BOX" or "shell" possible?
Replies: 6
Views: 5860

Yes. This code executes line 2000-2100 to execute an external asm or C program (called by BASIC): This are some typical lines, executed by the function: 2000 POKE 0,2 2005 PRINT "LOAD FILE TO 32768" 2010 RAND USR 8198 2020 LET ADDR=32768 2030 LET LEN=PEEK 16438+256*PEEK 16439 2050 POKE 0,...
by siggi
Tue Sep 11, 2018 7:24 am
Forum: Sinclair ZX
Topic: ZX81: "DOS BOX" or "shell" possible?
Replies: 6
Views: 5860

IIRC I was able to do it on the spectrum. As said the zx81 interptreter loop is less flexible (gosub and other things behave differently, as far as I remember) I think a "zx_getcommandline" to fetch user input from keyboard (incl. BASIC tokens) would be sufficient to do such a "shell...
by siggi
Mon Sep 10, 2018 2:16 pm
Forum: Sinclair ZX
Topic: ZX81: "DOS BOX" or "shell" possible?
Replies: 6
Views: 5860

I thinkt the only function that is missing is something like zx_getcommandline(char * buffer) where the user could type in characters (incl. ZX81 keyword-tokens and ZX81 5-byte-float numbers) like when the BASIC interpreters waits for input of a direct command (and reads input into the ELINE buffer)...
by siggi
Mon Sep 10, 2018 8:42 am
Forum: Sinclair ZX
Topic: ZX81: "DOS BOX" or "shell" possible?
Replies: 6
Views: 5860

ZX81: "DOS BOX" or "shell" possible?

Sometimes I would like to leave a C program temporarily to go to BASIC fo enter some direct BASIC commands and then return to the C program and continue there. Example: I am running a C program and want to LPRINT something, but have forgotten to load the network printer driver, which forwards lprint...
by siggi
Sun Sep 09, 2018 4:42 pm
Forum: Sinclair ZX
Topic: zx_line
Replies: 18
Views: 12496

I have now implemented a BASIC interface to a mass storage system into my SENDMAIL program: http://forum.tlienhard.com/phpBB3/viewtopic.php?f=2&p=37159#p37159 I found, that the current ZX81 zx_line interface works well, when I run all zx_line in FAST mode. I am calling external asm and C program...
by siggi
Mon Sep 03, 2018 7:46 am
Forum: Bug reports
Topic: ZX81: zx_setstr() does not cut existing longer strings correctly
Replies: 8
Views: 10855

And then the "xor a" (at strend) could be replaced by the comment ";a is already 0 here", saving 1 byte ;-)

Siggi
by siggi
Mon Sep 03, 2018 7:35 am
Forum: Bug reports
Topic: ZX81: zx_setstr() does not cut existing longer strings correctly
Replies: 8
Views: 10855

But the problem of string length 0, resulting in a crahs (see my posting before) seems not to be solved ... IMHO this should solve that problem: ;----------------------------- .outloop ld a,b or c jr z,strend call zx81toasc ld (de),a inc hl inc de dec bc ; ld a,b ; or c jr outloop ;-----------------...
by siggi
Sun Sep 02, 2018 10:32 am
Forum: Bug reports
Topic: ZX81: zx_setstr() does not cut existing longer strings correctly
Replies: 8
Views: 10855

The additional char at end of the string is caused by double incrementing DE at end of the string: .outloop call zx81toasc ld (de),a inc hl inc de dec bc ld a,b or c jr nz,outloop ;------------------------------ ; ldir inc de xor a ld (de),a ld hl,0 ret The last "inc de" is one increment t...
by siggi
Sun Sep 02, 2018 10:27 am
Forum: Bug reports
Topic: ZX81: zx_setstr() does not cut existing longer strings correctly
Replies: 8
Views: 10855

The reason for the crash of "zx_getstr" caused by string length 0 is caused by check of the string length AFTER it has been copied to the destination: .outloop call zx81toasc ld (de),a inc hl inc de dec bc ld a,b or c jr nz,outloop Thus string length 0 copies 64K ... Now l am looking for t...
by siggi
Sat Sep 01, 2018 1:30 pm
Forum: z88dk-users
Topic: [Z88dk-users] Searching in the new WIKI???
Replies: 6
Views: 8586

Oops, just noticed that there is an additional "search" button (grey in a dark grey field :rolleyes: ) on top of the page. It needs more clicks than the old WIKI, but leads to the same information. Siggi ------------------------------------------------------------------------------ Check o...