interesting, you chose a C/asm mixture, surely a fun project.
I'm wondering if, in example, it could be ported to the zx81 in text mode., the scroll functions should be available.
Search found 1810 matches
- Wed Jun 29, 2022 8:34 pm
- Forum: Sinclair ZX
- Topic: Porting from BASIC
- Replies: 3
- Views: 256
- Tue Jun 28, 2022 8:43 am
- Forum: Sinclair ZX
- Topic: fixing the zx81 graphics
- Replies: 2
- Views: 90
Re: fixing the zx81 graphics
The "problem" on the 64rows mode turned out to be an untested, obscure feature I was never able to tune. All the graphics modes on the ZX81 require customized video generation code. To complicate things, z88dk requires all the video generators to be modified to preserve the IY index regist...
- Mon Jun 27, 2022 10:32 am
- Forum: Sinclair ZX
- Topic: fixing the zx81 graphics
- Replies: 2
- Views: 90
Re: fixing the zx81 graphics
I succeded in building working programs in Memotech HRG mode, standard 192 rows. The problem wasn't on the library, it was on the EightyOne emulator. On most of its versions it is necessary to disable the "Advanced Effects" flag in the "TV emulation" options set. The 64 rows mode...
- Sat Jun 25, 2022 9:27 pm
- Forum: Sinclair ZX
- Topic: Porting from BASIC
- Replies: 3
- Views: 256
Re: Porting from BASIC
zx81 port, the one in the picture has an internal mod for memory expansion and wrx

- Fri Jun 24, 2022 11:36 am
- Forum: Sinclair ZX
- Topic: fixing the zx81 graphics
- Replies: 2
- Views: 90
fixing the zx81 graphics
I'm slowly progressing in fixing the zx81 graphics libraries. After the rearrangements of the source tree a compound number of bugs made slightly difficult to identify the root cause (mostly because we had few concurrent problems). Now it is easier. The circle() functions had a couple of bugs in the...
- Wed Jun 22, 2022 9:06 pm
- Forum: Sinclair ZX
- Topic: Extending the Sinclair BASIC with C
- Replies: 4
- Views: 292
Re: Extending the Sinclair BASIC with C
Just to show myself that this could be useful, I tried to export few of the zx81 graphics functions to its BASIC interpreter.
https://www.sinclairzxworld.com/viewtop ... 192#p47192
It permitted me to identify a number of bugs I totally forgot to fix. .
https://www.sinclairzxworld.com/viewtop ... 192#p47192
It permitted me to identify a number of bugs I totally forgot to fix. .
- Thu Jun 16, 2022 8:23 pm
- Forum: Sinclair ZX
- Topic: Extending the Sinclair BASIC with C
- Replies: 4
- Views: 292
Re: Extending the Sinclair BASIC with C
Just extended support to Lambda 8300 and TS2068
- Wed Jun 15, 2022 3:29 pm
- Forum: Sinclair ZX
- Topic: Extending the Sinclair BASIC with C
- Replies: 4
- Views: 292
Re: Extending the Sinclair BASIC with C
2-zx-basic-c.png Solved ! ...to show "HELLO" correctly: #include <stdio.h> #include <zx81.h> main(unsigned int arg2, char *arg1) { ARG_STR; ARG_UINT; ARG_END; printf("Arg1: "); zx_asciimode(0); printf("%s", arg1); zx_asciimode(1); printf(", arg2: %u \n" ,arg2...
- Wed Jun 15, 2022 3:15 pm
- Forum: Sinclair ZX
- Topic: Extending the Sinclair BASIC with C
- Replies: 4
- Views: 292
Re: Extending the Sinclair BASIC with C
Attempting to gather a similar result on the ZX81 is more tricky. The string termination patch works but the text requires to be converted to ASCII, or a bit of trickery with zx_asciimode(0)/zx_asciimode(1). ("-*114" = "HELLO") Moreover I still haven't found a robust way to get b...
- Wed Jun 15, 2022 9:01 am
- Forum: Sinclair ZX
- Topic: Extending the Sinclair BASIC with C
- Replies: 4
- Views: 292
Extending the Sinclair BASIC with C
I'm sure some of you will find this trick intriguing:
Code: Select all
#include <stdio.h>
#include <arch/zx/spectrum.h>
main(int arg2, char *arg1)
{
ARG_STR;
ARG_INT;
ARG_END;
printf("Arg1: %s, arg2: %d \n", arg1 ,arg2);
STMT_RET;
}
- Mon Jun 06, 2022 12:30 pm
- Forum: Sinclair ZX
- Topic: Porting from BASIC
- Replies: 3
- Views: 256
Porting from BASIC
There are few differences to deal with, like the inverted Y coordinate when drawing graphics, but it is definitely possible 
https://github.com/z88dk/z88dk/blob/mas ... /hangman.c

https://github.com/z88dk/z88dk/blob/mas ... /hangman.c
- Mon Jun 06, 2022 7:42 am
- Forum: Windows
- Topic: How to make the z80 libraries under windows
- Replies: 5
- Views: 8079
Re: How to make the z80 libraries under windows
I recently ran into a different problem with mingw.
The makefile couldn't 'include' all the required definitions, I solved it manually:
export ZCCCFG=/c/z88dk/lib/config
The makefile couldn't 'include' all the required definitions, I solved it manually:
export ZCCCFG=/c/z88dk/lib/config
- Thu May 26, 2022 2:18 pm
- Forum: CP/M, FLOS and OS related
- Topic: BBC MICRO - TUBE Z80 interface
- Replies: 0
- Views: 286
BBC MICRO - TUBE Z80 interface
A note related to the BBC Micro, currently z88dk-appmake and the 'cpmtools' are not able, by design, to deal with its disk formats. A lot of attempts to create a valid 'diskdefs' configuration can be found on the web, but *they're all wrong*. The reason is on the very uncommon way the BBC hardware a...
- Thu May 26, 2022 11:16 am
- Forum: Misc
- Topic: Error trying to build from Notepad++
- Replies: 2
- Views: 369
Re: Error trying to build from Notepad++
Check you have Z88DK_DIR and ZCCCFG in your system configuration. On windows you might try the batch file in z88dk\z88dk_prompt.bat, it should set them for you. Avoid compiling programs with fancy extensions, zcc is able to accept object files, C source files or assembler code programs (.asm). When ...
- Wed May 25, 2022 12:43 pm
- Forum: Other targets
- Topic: Galaksija
- Replies: 42
- Views: 7065
Re: Galaksija
QAOPM is on its way for the nightly build 

- Tue May 24, 2022 1:44 pm
- Forum: CP/M, FLOS and OS related
- Topic: Trying to support the Xerox 820 with appmake
- Replies: 10
- Views: 736
Re: Trying to support the Xerox 820 with appmake
I found a side element which was increasing the confusion: when I tried to convert from IMD to RAW a disk image, MAME, ONLY ON SOME OF THE CP/M TARGETS stopped working. The odd thing was that there wasn't target specific code which could have explained such behavior. I finally discovered that the re...
- Tue May 24, 2022 1:37 pm
- Forum: Other targets
- Topic: Galaksija
- Replies: 42
- Views: 7065
Re: Galaksija
Thanks Dom for reporting ;) RokertK, a first build does not require a git sync, you could in example lend the pre-build environment distributed by MAME, grab z88dk-master in zipped form from github, set 2 environment variables in bashrc and you are set. Tiny commits can be done also using the web in...
- Mon May 23, 2022 6:37 pm
- Forum: Other targets
- Topic: Galaksija
- Replies: 42
- Views: 7065
Re: Galaksija
We all did it, at the time, to play a 2 player snake duel on the same keyboard!
Ok, I take your original suggestion and try to replace cursors with qaopm
Ok, I take your original suggestion and try to replace cursors with qaopm
- Mon May 23, 2022 12:37 pm
- Forum: Japanese (Sharp, NEC, Casio, Epson..)
- Topic: Information about calls in NEC PC-6001A basic rom
- Replies: 9
- Views: 684
Re: Information about calls in NEC PC-6001A basic rom
Yup, it is treated as a byte stream prefix, but a bit of ASM source is in the comments. https://github.com/z88dk/z88dk/blob/65d283f25913c8dcb541d30386210bcd96de7551/src/appmake/nec.c#L127 This prefix is then patched depending on the selected 'MODE', https://github.com/z88dk/z88dk/blob/65d283f25913c8...
- Mon May 23, 2022 12:16 pm
- Forum: CP/M, FLOS and OS related
- Topic: Trying to support the Xerox 820 with appmake
- Replies: 10
- Views: 736
Re: Trying to support the Xerox 820 with appmake
Fixed and improved.
Now it checks the CP/M version (and warns when the version is not supported) and shows the interleave table (in appmake format) when used.
I'm not yet able to create valid disk images for the Xerox820, but we now have a nice general purpose tool
Now it checks the CP/M version (and warns when the version is not supported) and shows the interleave table (in appmake format) when used.
I'm not yet able to create valid disk images for the Xerox820, but we now have a nice general purpose tool

- Sun May 22, 2022 2:45 pm
- Forum: Other targets
- Topic: Galaksija
- Replies: 42
- Views: 7065
Re: Galaksija
I noticed that the pictures show the cursor keys close to QA, PM.
Did other keyboard layouts exist?
One more thought, to think at all the options: should we take care of some special condition to permit two players to press the keys simultaneously?
Did other keyboard layouts exist?
One more thought, to think at all the options: should we take care of some special condition to permit two players to press the keys simultaneously?
- Sat May 21, 2022 7:29 pm
- Forum: Other targets
- Topic: Galaksija
- Replies: 42
- Views: 7065
Re: Galaksija
The code to work on should be here.
https://github.com/z88dk/z88dk/blob/mas ... ystick.asm
I probably need to get back to the galaxy's documentation
https://github.com/z88dk/z88dk/blob/mas ... ystick.asm
I probably need to get back to the galaxy's documentation
- Fri May 20, 2022 3:57 pm
- Forum: CP/M, FLOS and OS related
- Topic: Trying to support the Xerox 820 with appmake
- Replies: 10
- Views: 736
Re: Trying to support the Xerox 820 with appmake
... I think the disk size is still wrong, the other results look strangely good 

- Fri May 20, 2022 3:50 pm
- Forum: CP/M, FLOS and OS related
- Topic: Trying to support the Xerox 820 with appmake
- Replies: 10
- Views: 736
Re: Trying to support the Xerox 820 with appmake
When the QUICKLOAD is not available, run mame with the "-debug" option, boot the CP/M disk (mout the disk image and press F5), then type in the bottom row in the debugger window: "load c:\files\dpb.com,100". alph_debugger.png You can then move in the emulator windows and save the...
- Fri May 20, 2022 3:28 pm
- Forum: CP/M, FLOS and OS related
- Topic: Trying to support the Xerox 820 with appmake
- Replies: 10
- Views: 736
Re: Trying to support the Xerox 820 with appmake
MAME often allows a shortcut, after having loaded the CP/M system, to QUICKLOAD a .COM program in memory and run it directly.
So, even if you can't write in a disk image :
So, even if you can't write in a disk image :