Welcome, Guest. Please login or register.


Author Topic: Q&A (Read 24904 times)

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #30 on: 2015.November.25. 14:55:33 »
Yet another example. Something wrong with colors(bright?)

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13689
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #31 on: 2015.November.25. 15:49:29 »
Yet another example. Something wrong with colors(bright?)
Using Spectrum screen need to convert attribute bytes.

Spectrum have a 1 bit flash, 1 bit bright, 3 bit paper, 3 bit ink
Enterprise: 4 bit paper, 4 bit ink

Another problem the color order:
Spectrum: black, blue, pink, green, cyan, yellow, white
On Enterprise: black, red, green, yellow, blue, pink, cyan, white. This is fixed because the FIXBIAS used for the 8-15 colors.

Another problem come, with the "bright black": if bright colors used as BIAS, then the brigh balck will be brown.
Solution 1: use BIAS=0 then, bright black is also black. Then the 8-15 colours are the dark, and 0-7 (which are free definiable) are the bright colours.
Solution 2: use bright BIAS, and handle at the conversion the "bright black" converted as color 0. Then the 0-7 colors are the drak, and 8-15 colors are the bright colors.

EP colors

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #32 on: 2015.November.25. 16:08:41 »
I think I got what i want. Maybe game looks lame, but it is a game;)

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13689
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #33 on: 2015.November.25. 16:08:54 »
This is my Spectrum screen converter. It is use built in attribute and colors table, but these can be replaced by ATTRIB and COLORS file (binary).

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #34 on: 2015.November.26. 07:54:17 »
Little question about example I attached:

here is LPT:

LINE        db 255,14H,15,2FH,0,0,0,0

and colors:
            db 0,32,72,104,144,176,216,248

32 - is blue
72 - is red
44 - is green

is it right?


Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 5664
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
Re: Q&A
« Reply #35 on: 2015.November.26. 08:53:11 »
32 - is blue
72 - is red
44 - is green

is it right?
the 1st 2 is yes :) 44 is dark blue+medium red + light blue

bit setting of EP colors are
GRBGRBGR
b7------b0

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13689
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #36 on: 2015.November.26. 09:40:08 »
Look the EP colors page what I linked previously :-)

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #37 on: 2015.November.26. 09:42:17 »
Look the EP colors page what I linked previously :-)

tes, thank you, I found bright color xD

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #38 on: 2015.November.26. 17:01:08 »
wher to read about FIXBIAS and BIAS?

Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 5664
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 38.0 Firefox 38.0
    • View Profile
Re: Q&A
« Reply #39 on: 2015.November.26. 18:10:29 »
Here you can read about it in chapter 13
and there is the colour table what Zozo attached , 8 colors are attached for every bias value (bit0-bit5 you can set BIAS values, this is 32 values)
The colors are attached by bias value are : bias value * 8 this is the start position, and the next 7 colours belonging to it.
Bias    EP color
00h      00-07h
01h      08-0fh
02h      10-18h
.
.
.
31h      f8-ffh

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13689
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #40 on: 2015.November.26. 18:29:57 »
But better way to use EXOS BIAS variable instead the direct port write.
Code: ZiLOG Z80 Assembler
  1.                 LD BC,100H+28   ;B=1 write
  2.                                 ;C=28 number of system variable (BORDER)       
  3.                 LD D,x          ;new value
  4.                 EXOS 16         ;handling EXOS variable

In this way you can use the standard color code (top 5 bit used).
And port 80h also control the internal speaker. For the right way need to get the current state from the SPEAKER variable and put to bit7.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #41 on: 2015.November.27. 07:16:20 »
how to enable breakpoints at debugger?

as I understand
F8:0100x

"syntax error" (

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13689
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #42 on: 2015.November.27. 08:22:52 »
You wrote the "x" with small letter?

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 46.0.2490.86 Chrome 46.0.2490.86
    • View Profile
Re: Q&A
« Reply #43 on: 2015.November.27. 09:30:22 »
yes.

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13689
  • Country: hu
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 42.0 Firefox 42.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #44 on: 2015.November.27. 09:35:14 »
It is working for me.