pascal 6

how to read and write to memory in pascal 6 program
what is the commands
thanks

Comments

  • : how to read and write to memory in pascal 6 program
    : what is the commands
    : thanks
    :

    In TP7, it's [b]Mem[[italic]Seg:Ofs[/italic]];[/b] I believe it's the same for TP6.

    eg:
    [code]
    VAR
    Pixel1 : Byte;
    Pixel1and2 : Word;
    Pixel123and4 : LongInt;

    Begin
    Pixel1 := Mem[$A000:$0000];
    Mem[$A000:$0000] := Pixel1;

    Pixel1and2 := MemW[$A000:$0000];
    MemW[$A000:$0000] := Pixel1and2;

    Pixel123and4 := MemL[$A000:$0000];
    MemL[$A000:$0000] := Pixel123and4;
    End;
    [/code]

    These do byte, word & LongInt Memory accesses.

    Phat Nat


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion