Shaos (enthusiast)
2002/10/10 14:17
|
|
I had tried compile text adventure adv_a.c
I was need to write zcc +pps adv_a.c -lndos
(I dont know what is lndos, but for zx it was the same name)
else a few errors were printed: unknown FCLOSE, OPEN labels and so on...
So, ADV_A.EXE works :)
But, I have question
How by Z88DK I can use text attributes and cursor location?
Alexander Shabarshin (shaos@mail.ru)
http://www.shaos.ru
|
dom (stranger
)
2002/10/11 00:53
|
|
Looks like that's the first incarnation of the libraries - the ndos libraries contains generic dummy file libraries for those systems with no file i/o or with multiple ones.
I'm working on a port of the ANSI engine over to the Sprinter - this is effectively a vt100 terminal which allows colours and position to happen. Positioning works, but many of the other attributes (colour, dim, inverse, underline etc) are not working too well. I can't seem to find any documentation on the site to specify how to define the attribute parameter to WRCHAR. I'm guessing that it is possible to change the background colour?
|
Shaos (enthusiast)
2002/10/11 12:05
|
|
ADV_A.EXE works only in emulator :(
It's not working at real Sprinter. I can test why it not.
So, you may send me e-mail and we can talk about colors, now I'm adding BIOS text/color features and soon I will public new SPRINT version with new BIOS functions support.
Alexander Shabarshin (shaos@mail.ru)
http://www.shaos.ru
|
Denis Parinov (Sprinter Team)
2002/10/12 02:34
|
|
> I can't seem to find any documentation on the site to specify how to define the attribute parameter to WRCHAR. I'm guessing that it is possible to change the background colour?
The DSS functions (57h) RDCHAR and (58h) WRCHAR used to low-level operations with a Sprinter's text screen. It's not best way for the regular text output. It's a slow method. If you need to print some color text at the part of text screen (window), then I recommend to use DSS function (5Ah) WINREST, which will be output chars and attributes from the buffer. If you need to print color text in terminal mode then I recommend to use BIOS functions for color printing. (81h, 82h, 83h, 85h, 86h, 87h, 88h, 8Bh, 8Ch)
Color attribute:
bit7 - blink
bit6,5,4 - background (0...7) RGB
bit3,2,1,0 - foreground (0..15) IRGB
0 Black
1 Blue
2 Green
3 Cyan
4 Red
5 Magenta
6 Brown
7 White
8 Gray
9 Bright blue
10 Bright green
11 Bright cyan
12 Bright red
13 Bright magenta
14 Yellow
15 Bright white
|
Denis Parinov (Sprinter Team)
2002/10/12 02:41
|
|
> ADV_A.EXE works only in emulator :(
> It's not working at real Sprinter. I can test why it not.
I think that a reason is a lost registers, because DSS do not save it.
|
dom (stranger
)
2002/10/16 15:20
|
|
Thanks for the colour info, I'll add support for the BIOS calls when I can test them on the emulator.
I didn't think I made any assumptions about the state of registers after DSS calls (other than the return values) - cerrtainly fgetc_cons and fputc_cons (which will be the only ones used by adv_a) don't.
|
Denis Parinov (Sprinter Team)
2002/10/17 01:36
|
|
It just my assumption about problem. DSS don't save any registers which used in the function code.
;this don't working on the Sprinter, but working in emulator.
LD IX,something
LD HL,something
LD B,something
LOOP LD A,(HL)
INC HL
LD C,DSS_FUNCTION
RST #10
DJNZ LOOP
LD A,(IX)
;this will work both on the Sprinter and in the emulator.
LD IX,something
PUSH IX
LD HL,something
LD B,something
LOOP LD A,(HL)
INC HL
PUSH HL
PUSH BC
LD C,DSS_FUNCTION
RST #10
POP BC
POP HL
DJNZ LOOP
POP IX
LD A,(IX)
|
liftarn (stranger
)
2002/10/18 13:27
|
|
In reply to:
How by Z88DK I can use text attributes and cursor location?
Roumous say (Ok, it was on the z88dk mailing list) that ANSI now is supported.
|
Shaos (enthusiast)
2002/10/22 07:52
|
|
When we will be able to use Z88DK for file input/output and color text printing in Sprinter? :)
Alexander Shabarshin (shaos@mail.ru)
NedoPC Project
|
liftarn (stranger
)
2002/10/29 17:15
|
|
In reply to:
When we will be able to use Z88DK for file input/output and color text printing in Sprinter?
Colours (using ANSI) is now supported. Fie i/o is in beta.
|