RegMove.l

Last Modified: 1/16/2021

Copies a 68K register into a BASIC variable or a BASIC variable into a 68K register.

Arguments

NameTypeRequiredDescription
Source Variable or 68K Register Yes The source of the data you want to move into the Destination.
Destination Variable or 68K Register Yes The location where you want to store the data.

Example

Syntax: RegMove.b <Source>, <Destination>
    a& = 85972
    b& = 100
    
    RegMove.l a&,d0
    RegMove.l d0,b&
    
    Print b&

Remarks

The data is moved at long word length for this command.

The 68K registers that can be used are: d0, d1, d2, d3, d4, d5, d6, d7, a0, a1, a2, a3, a4, a5, a6, and a7.

See Also

RegMove.b, RegMove.w, Poke, PokeInt, PokeLong, Peek(), PeekInt(), PeekLong&()