[V9990] Q&A Official Thread

Pagina 17/21
10 | 11 | 12 | 13 | 14 | 15 | 16 | | 18 | 19 | 20 | 21

Van nitrofurano

Champion (300)

afbeelding van nitrofurano

08-09-2018, 17:38

where from can we find a preinstalled symbos in an image-harddisk? Big smile

Van nitrofurano

Champion (300)

afbeelding van nitrofurano

09-09-2018, 15:35

tried the image hd from https://www.file-hunter.com/MSX/index.php?id=symbos (as commented at https://www.msx.org/forum/msx-talk/general-discussion/image-... ) - actually, and finally, it’s now the very first time i’m actually trying to use SymbOS, on WebMSX!

status info from openmsx-catapult says "expected floating-point number but got ""Uncaught exception: No hard disk named 'hda'."

Van Manuel

Ascended (18844)

afbeelding van Manuel

09-09-2018, 21:52

You're trying to use a harddisk image with openMSX, without having a harddisk interface in the MSX. Then you get that error. Enable the 'ide' extension (if this harddisk image is compatible with Sunrise IDE).

Van nitrofurano

Champion (300)

afbeelding van nitrofurano

09-09-2018, 23:14

thanks! now i got this:

Van Manuel

Ascended (18844)

afbeelding van Manuel

09-09-2018, 23:30

Looks like you booted MSX-DOS 1.x... that doesn't know subdirectories...

I don't think this image is going to work outside of WebMSX. It also doesn't contain the GFX9000 version, I guess.

Van nitrofurano

Champion (300)

afbeelding van nitrofurano

10-09-2018, 01:26

so, where from can i get a working preinstalled image supporting gfx9000?

Van nitrofurano

Champion (300)

afbeelding van nitrofurano

10-09-2018, 23:44

(so, i’m assuming gfx9000 support from symbos doesn’t exist at all, isn’t it? ;D - sorry about this provocation, i couldn’t resist! Big smile )

Van tvalenca

Paladin (747)

afbeelding van tvalenca

11-09-2018, 02:05

nitrofurano wrote:

a question: where can we find simple examples in pure interpreted msxbasic, without extensions, setting display modes and writing on the display ram area, only using i/o ports directly?

I just wrote this code that does exactly what you asked for:

(init GFX9000/Video9000 register - for compatibility purposes)
100 OUT &H6F,24
(set clock source)
110 OUT &H67,0
(set control register - display=on, VRAM=512k, /Ys activated)
120 OUT &H64,8:OUT &H63,162
(set screen mode)
130 OUT &H64,6:OUT &H63,133
140 OUT &H64,7:OUT &H63,0
(set palette pointer)
150 OUT &H64,14:OUT&H63,0
(set palette 0 colors - TurboR palette here)
160 OUT &H61,128:OUT &H61,0:OUT &H61,0
161 OUT &H61,0:OUT &H61,0:OUT &H61,0
162 OUT &H61,4:OUT &H61,27:OUT &H61,4
163 OUT &H61,13:OUT &H61,31:OUT &H61,13
164 OUT &H61,4:OUT &H61,4:OUT &H61,31
165 OUT &H61,9:OUT &H61,13:OUT &H61,31
166 OUT &H61,22:OUT &H61,4:OUT &H61,4
167 OUT &H61,9:OUT &H61,27:OUT &H61,31
168 OUT &H61,31:OUT &H61,4:OUT &H61,4
169 OUT &H61,31:OUT &H61,13:OUT &H61,13
170 OUT &H61,27:OUT &H61,27:OUT &H61,4
171 OUT &H61,27:OUT &H61,27:OUT &H61,18
172 OUT &H61,4:OUT &H61,18:OUT &H61,4
173 OUT &H61,27:OUT &H61,9:OUT &H61,27
174 OUT &H61,22:OUT &H61,22:OUT &H61,22
175 OUT &H61,31:OUT &H61,31:OUT &H61,31
(set VRAM pointer)
200 OUT &H64,0:OUT &H63,0:OUT &H64,1:OUT &H63,0:OUT &H64,2:OUT &H63,0
(write four bytes)
210 OUT &H60,0:OUT &H60,255:OUT &H60,255:OUT&H60,0
(rinse, repeat...)
220 OUT &H64,0:OUT &H63,0:&H64,1:OUT &H63,1
230 OUT &H60,15:OUT &H60,0:OUT &H60,0:OUT&H60,240
240 OUT &H64,0:OUT &H63,0:&H64,1:OUT &H63,2
250 OUT &H60,240:OUT &H60,240:OUT &H60,15:OUT&H60,15
260 OUT &H64,0:OUT &H63,0:&H64,1:OUT &H63,3
270 OUT &H60,240:OUT &H60,0:OUT &H60,0:OUT&H60,15
280 OUT &H64,0:OUT &H63,0:&H64,1:OUT &H63,4
290 OUT &H60,240:OUT &H60,240:OUT &H60,15:OUT&H60,15
300 OUT &H64,0:OUT &H63,0:&H64,1:OUT &H63,5
310 OUT &H60,240:OUT &H60,15:OUT &H60,240:OUT&H60,15
320 OUT &H64,0:OUT &H63,0:&H64,1:OUT &H63,6
330 OUT &H60,15:OUT &H60,0:OUT &H60,0:OUT&H60,240
340 OUT &H64,0:OUT &H63,0:&H64,1:OUT &H63,7
350 OUT &H60,0:OUT &H60,255:OUT &H60,255:OUT&H60,0

In fact, I've posted a similar code a few pages ago. Have fun!

EDIT: some info on setting video modes extracted from manual:

and also:

Screen mode registers

       B7    B6    B5    B4    B3    B2    B1    B0  
R#6  DSPM1 DSPM0 DCKM1 DCKM0 XIMM1 XIMM0 CRLM1 CLRM0
R#7    0    C25M  SM1    SM   PAL    EO    IL   HSCN


DSPM1 DSPM0  Display Mode Selection
  1     1    : Stand-by mode (non-display, no VRAM refresh, KROM readable)
  1     0    : Bitmap Mode (B1˜6)
  0     1    : P2 Mode
  0     0    : P1 Mode

DCKM1 DCKM0  Dot Clock Selection (em conjunto com MCS)
               MCS=0     MCS=1
  1     0    : XTAL1     MCKIN
  0     1    : XTAL1/2   MCKIN/2
  0     0    : XTAL1/4   -

XIMM1 XIMM0  Selection of number of dots in X direction
  1     1    : 2048 dots
  1     0    : 1024 dots
  0     1    :  512 dots
  0     0    :  256 dots

CLRM1 CLRM0  Selection of bit number per dot
  1     1    : 16 bits/dot
  1     0    :  8 bits/dot
  0     1    :  4 bits/dot
  0     0    :  2 bits/dot

SM1          Selection of total number of vertical lines 
 1           : 263
 0           : 262

SM           Horizontal frequency
 1           : 1H=fsc/227.5
 0           : 1H=fsc/228

PAL          Selection PAL mode
 1           : PAL
 0           : NTSC

EO           Selection of Vertical resolution during interlace
 1           : 2x non-interlace res
 0           : 1x non-interlace res

IL           Selection of interlace
 1           : Interlace
 0           : non-interlace

HSCN         Selection of horizontal high scan
 1           : B5 & B6 modes
 0           : P1, P2, B1˜4 modes


********************
Palette Control 

       B7    B6    B5    B4    B3    B2    B1    B0  
R#13  PLRM1 PLTM0  YAE  PLTAIH PLT05 PLT04 PLT03 PLT02

PLTM1 PLTM0  Selection of color palette mode
  1     1    : YUV mode
  1     0    : YJK mode 
  0     1    : 256 color mode
  0     0    : Palette mode

YAE          Selection of YJK (YUV) RGB Mixing Mode
  1          : YJK (YUV) and RGB images are displayed together
  0          : only YJK (YUV) image is displayed

PLTAIH       Palette no. increment control at palette read-out
  1          : R#14 palette pointer is not changed by P#1 read-out
  0          : After P#1 read-out, R#14 palette pointer undergoes an increment.

PLT05-2      : Still screen palette no. offset

Van nitrofurano

Champion (300)

afbeelding van nitrofurano

11-09-2018, 12:25

thanks, @tvalenca ! it’s a hugely valuable documentation! Smile

Van tvalenca

Paladin (747)

afbeelding van tvalenca

18-09-2018, 00:29

@nitrofurano I am curious on what are you doing...

Pagina 17/21
10 | 11 | 12 | 13 | 14 | 15 | 16 | | 18 | 19 | 20 | 21