Search found 22 matches

by bbock
Tue Feb 28, 2023 6:40 pm
Forum: CP/M, FLOS and OS related
Topic: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)
Replies: 13
Views: 3241

Re: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)

Hello stefano, yes, you've seen my TinySVG already, and I have seen your SVG approach, too: https://www.sinclairzxworld.com/viewtopic.php?p=43280 Thank you for pointing me toward the draw_profile() function - I've seen it already. The comments on the wiki are a bit vague, but I guess I should just t...
by bbock
Fri Feb 24, 2023 2:15 pm
Forum: CP/M, FLOS and OS related
Topic: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)
Replies: 13
Views: 3241

Re: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)

Tanks again for your effort. I'd like to point you to some of my latest developments - maybe to let you know your help is not in vain: Forms engine for Amstrad PCW (CP/M Plus): https://joyceforum.de/viewtopic.php?p=645 The forms package allows for easy development of input forms in applications feat...
by bbock
Tue Feb 21, 2023 3:11 pm
Forum: CP/M, FLOS and OS related
Topic: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)
Replies: 13
Views: 3241

Re: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)

So I guess I have to continue creating .dsk files I don't need. It seems -create-app is mandatory when using the graphics library only. For non-graphic applications I can probably skip the option.
by bbock
Sun Feb 19, 2023 4:32 pm
Forum: CP/M, FLOS and OS related
Topic: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)
Replies: 13
Views: 3241

Re: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)

Sorry for answering late... First of all I can confirm that it works with zsdcc now, thank you very much for fixing it so quickly. But there is one more thing I don't understand: as far as I understood, the -create-app option creates an application. What an application finally is, depends on the pla...
by bbock
Fri Feb 03, 2023 10:34 am
Forum: CP/M, FLOS and OS related
Topic: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)
Replies: 13
Views: 3241

graphics.h and zsdcc

The above graphics test program compiles fine using the standard compiler sccz80, but when I try to compile it using zsdcc, the compile fails: zcc +cpm -subtype=pcw80 -compiler=sdcc -create-app %files% -o hellogfx.com D:\RetroComputing\dev\z88dk_Joyce\graphic_hello>make hellogfx.c:483: error: undefi...
by bbock
Sat Jan 28, 2023 8:02 pm
Forum: CP/M, FLOS and OS related
Topic: Amstrad PCW: gotoxy
Replies: 6
Views: 2629

Amstrad PCW: math libraries

Of course the easiest way to find out is to test yourself. So I did, and here are my findings: I used the following simplistic one-file project: #include <stdio.h> int main(void) { float a, r; r = 2.5; a = r * r * 3.141592654; printf("Circle area\n"); printf("r = %12.9f\n", r); p...
by bbock
Thu Jan 26, 2023 6:46 pm
Forum: CP/M, FLOS and OS related
Topic: Amstrad PCW: gotoxy
Replies: 6
Views: 2629

Re: Amstrad PCW: gotoxy

Thank you very much for the many hints - very useful. ... It'll be fairly easy to add support for conio.h on a VT52 via bdos calls but I've not got anything up my sleeve at the moment. ... If you need documentation about the VT52-like terminal commands, there is a great description in the PCW's user...
by bbock
Wed Jan 25, 2023 7:03 pm
Forum: CP/M, FLOS and OS related
Topic: Amstrad PCW: gotoxy
Replies: 6
Views: 2629

Re: Amstrad PCW: gotoxy

Nope, not working: gotoxy_fail2.png I wonder where you got the --generic-console option from. It's not listed on the zcc page https://github.com/z88dk/z88dk/wiki/Tool---zcc Is there a complete list of zcc options anywhere? And a list of available libraries maybe? When I got linker errors using the f...
by bbock
Tue Jan 24, 2023 6:26 pm
Forum: CP/M, FLOS and OS related
Topic: Amstrad PCW: gotoxy
Replies: 6
Views: 2629

Amstrad PCW: gotoxy

The gotoxy command is defined in conio.h, but it doesn't seem to work on the Amstrad PCW. I wrote a drawBox function to draw a character based box using several gotoxy commands: // Draws a box at position (x, y) with width w and height h. void drawBox(int x, int y, int w, int h) { int i; gotoxy(x, y...
by bbock
Mon Jan 16, 2023 6:22 pm
Forum: CP/M, FLOS and OS related
Topic: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)
Replies: 13
Views: 3241

Re: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)

Hi stefano, thank you for the hint. I have seen the GSX support in z88dk already, and I know quite a lot about GSX - I've used it with other programming languages. But most of the time I keep away from GSX, because of its overhead due to the abstraction. My next steps will be porting some of the lib...
by bbock
Sun Jan 15, 2023 12:25 pm
Forum: CP/M, FLOS and OS related
Topic: Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)
Replies: 13
Views: 3241

Graphics on a Schneider JOYCE (Amstrad PCW 8256 or 8512)

I'm not really new to the zx88dk; I have been using it for years on the ZX81, ZX Spectrum, and Amstrad NC100 platforms. Currently I am trying to use the cross compiler toolkit for the JOYCE (aka Amstrad PCW 8256 or 8512) platform. I thought I post my first steps here to make it easier for others try...
by bbock
Sat Mar 17, 2012 10:08 am
Forum: Sinclair ZX
Topic: Multicolour demo using BIFROST*
Replies: 3
Views: 5551

Hi Timmy, you could use plain C language instead of inline assembler in many places, e.g. instead of void __FASTCALL__ bfl_slow() { // POKE 56787,254: REM slow animations #asm ld a, 254 ld (56787), a #endasm } you could write something like #define BFL_SPEED ((char*) 56787) #define BFL_SPEED_SLOW 25...
by bbock
Sat Jan 22, 2011 6:28 pm
Forum: Bug reports
Topic: Amstrad NC100 - printf newline
Replies: 1
Views: 4602

Amstrad NC100 - printf newline

There seems to be a bug in the printf routine when executing it on the Amstrad NC100:

A

Code: Select all

printf("hello\n");
does not do a newline (cr + lf), but a carriage return only. So subsequent printf calls result in the text being printed in the same line.
by bbock
Thu Jan 13, 2011 10:18 am
Forum: Amstrad
Topic: Amstrad NC100: how to create an application?
Replies: 32
Views: 49922

As soon as I deleted the whole cleanup code except for the ret statement, I succeeded in running the program and returning safely to the BASIC prompt. I guess I compromised something in the file i/o area, so I'm afraid I need a deeper insight... Here's my current nc100_crt0.asm file (didn't find a w...
by bbock
Thu Jan 13, 2011 10:05 am
Forum: Amstrad
Topic: Amstrad NC100: how to create an application?
Replies: 32
Views: 49922

Still investigating... Apparently the z88dk creates code at the SRAM Card location $C200, which is appropriate if you want to create a program card. I use my SRAM Card in a regular manner, i.e. to save files from the word processor, spreadsheet, BASIC, etc. Using the BASIC loader, I need to load the...
by bbock
Tue Jan 11, 2011 8:22 pm
Forum: Amstrad
Topic: Amstrad NC100: how to create an application?
Replies: 32
Views: 49922

There's an example (game) program named "scrolly" at Tim Surtell's site: http://www.ncus.org.uk/games.htm#scrolly_nc It can be executed on the ROM OS through the BASIC loader program (which is what I used as a template for my prime number program above) or directly on ZCN (a CP/M clone for...
by bbock
Tue Jan 11, 2011 10:27 am
Forum: Amstrad
Topic: Amstrad NC100: how to create an application?
Replies: 32
Views: 49922

Amstrad NC100: how to create an application?

Hello, the documentation on the NC100 support is just a single line: zcc +nc -lm application.c Well, I've tried this on a simple program to compute prime numbers: #include <stdio.h> #include <stdlib.h> int main(void) { int z, d; int prim; int grenze; printf("Primzahlen bis 1000:\n"); grenz...
by bbock
Sun Jan 09, 2011 10:31 pm
Forum: Bug reports
Topic: ZX Spectrum - standard console driver - inverse mode
Replies: 2
Views: 5102

By the way: in the meantime I verified that the BASIC routine changes the bytes in the display file as well, not the the attributes.

Bernd
by bbock
Sun Jan 09, 2011 8:45 pm
Forum: Bug reports
Topic: ZX Spectrum - standard console driver - inverse mode
Replies: 2
Views: 5102

ZX Spectrum - standard console driver - inverse mode

Hi, when inverse mode is turned on, the character's bits are swapped (one's complement), but its attribute remains unchanged. I expected to see the bits unchanged, but paper and ink colour swapped in the attribute instead. Through the attributes you'd have to change one byte only, whereas there are ...
by bbock
Tue Jan 04, 2011 7:53 pm
Forum: Bug reports
Topic: ZX Spectrum - standard console driver - screen positioning
Replies: 4
Views: 11276

Well, an instruction to disable scrolling is ok if you ask me. To me it seems like a logical problem. Autoscroll kicks in as soon as the last character in the last row is written, but it should kick in when the first character is written that has to be put on a new line (which does not yet exist, th...
by bbock
Tue Jan 04, 2011 1:19 pm
Forum: Bug reports
Topic: ZX Spectrum - standard console driver - screen positioning
Replies: 4
Views: 11276

Hi dom, you're right - my fault. You have to read the documentation twice or three times before you fully understand it: "22,y,x - Move to position y,x on the screen (0<=y<=23, 0<=x<=63) NB. y and x are displaced by 32 eg to move the print position to (0,0) use 22,32,32. 32 column mode also use...
by bbock
Mon Jan 03, 2011 10:33 pm
Forum: Bug reports
Topic: ZX Spectrum - standard console driver - screen positioning
Replies: 4
Views: 11276

ZX Spectrum - standard console driver - screen positioning

Good evening, there seems to be a bug in the standard console driver in the Z88DK 1.9.0 release version. The "print at" code (22, y, z or better 22, row, column) has no effect at all, and the cursor positioning (8, 9, 10, 11) does not work as expected. My example program should have printe...