[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'go32' (#rtl)

seg_fillchar

Fill segment with byte value

Declaration

Source position: go32.pp line 124

procedure seg_fillchar(

  seg: Word;

  ofs: LongInt;

  count: LongInt;

  c: Char

);

Description

Sets a memory area to a specific value.

Parameters:

seg
selector to memory area.
ofs
offset to memory.
count
number of bytes to set.
c
byte data which is set.

Return values: None.

Notes: No range check is done in any way.

Errors

None.

See also

seg_move

  

Move data between 2 locations

seg_fillword

  

Fill segment with word value

dosmemfillchar

  

Fill a region of DOS memory with a specific byte-sized value

dosmemfillword

  

Fill a region of DOS memory with a specific word-sized value

dosmemget

  

Copy data from DOS memory to the heap.

dosmemput

  

Copy data from the heap to DOS real mode memory

dosmemmove

  

Move data between 2 DOS real mode memory locations

Example

uses
        go32;

var
        vgasel : Word;
        r : trealregs;

begin
        r.eax := $13; realintr($10, r);
        vgasel := segment_to_descriptor($A000);
        seg_fillchar(vgasel, 0, 64000, #15);
        readln;
        r.eax := $3; realintr($10, r);
end.

Documentation generated on: Nov 16 2015