CALL MD
This page was last modified 11:27, 17 May 2020 by Mars2000you.

Contents

Effect

Makes an manual digitizing of picture from video input and copies it in VRAM of the Sony HBI-V1 cartridge. Several ways to display the digitized picture are possible.

This instruction can be used in screens 8 and 10 to 12. You can optionally first clear the VRAM of the Sony HBI-V1 cartridge with CALL DCLS.

Note: It's not possible with CALL MD to enable an automatic copy of the data from the VRAM of the Sony HBI-V1 cartridge to the computer VRAM, you need to use CALL DCOPY for that.

Syntax

CALL MD (<BlockSizeX>,<BlockSizeY>,<StartBlockX>,<StartBlockY>,<InterlaceMode>)

Parameters

<BlockSizeX> and <BlockSizeY> specify the horizontal size and the vertical size of the digitized picture. These parameters can have a value between 0 and 8:

  • 0 = 1/1 = full screen
  • 1 = 1/2 = full screen, resized to fit 2 times
  • 2 = 1/3 = full screen, resized to fit 3 times
  • 3 = 1/4 = full screen, resized to fit 4 times
  • 4 = 3/4 = 1/3 screen, resized to fit 4 times
  • 5 = 2/2 = half screen, twice displayed
  • 6 = 2/3 = half screen, resized to fit 3 times
  • 7 = 2/4 = half screen, resized to fit 4 times

<StartBlockX> and <StartBlockY> specify the horizontal start block and the vertical start block for multiple digitizing. These parameters can have a value between 0 and 3:

  • 0 = update 0-X parts
  • 1 = update 1-X parts
  • 2 = update 2-X parts
  • 3 = update 3-X parts

<InterlaceMode> is a value between 0 and 2 to specify which lines of the picture will be digitized:

  • 0 = digitize all lines
  • 1 = digitize even lines
  • 2 = digitize odd lines

Examples

110 ON STOP GOSUB 210
120 STOP ON
130 SCREEN 8
140 COLOR,,255
150 _DCLS
160 _MD(2,3,0,1,0)
165 _DCOPY (0,0)-(255,211) TO (0,0)
170 TIME=0
180 IF INKEY$="" GOTO 180
190 IF TIME<4 GOTO 190
200 IF INKEY$="" GOTO 200 ELSE 150
210 'REM STOP
220 END
10 SCREEN 11
20 COLOR,,255
30 _DCLS
40 FOR Y=0 TO 3
50 FOR X=0 TO 3
60 _MD(2,2,X,Y,0)
70 _DCOPY (0,0)-(255,211) TO (0,0)
80 NEXT  X
90 NEXT Y

Related to

CALL AD, CALL DCLS, CALL DCOPY, CALL FMD, SCREEN

Compatibility

SonyVideo BASIC