RegMove.b

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 = 65
    b = 100
    
    RegMove.b a,d0
    RegMove.b d0,b
    
    Print b

Remarks

The data is moved at byte 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.l, RegMove.w, Poke, PokeInt, PokeLong, Peek(), PeekInt(), PeekLong&()