[A83] Re: "swap"


[Prev][Next][Index][Thread]

[A83] Re: "swap"




> Does anyone know about the "swap" command?
>     What registers does it use?

The swap instruction does not exist on the normal Z80.  There is a swap
instruction on the Nintendo Game Boy CPU that swaps the two nibbles of the
register.

You might be thinking of the EXchange instruction.

See the Assembly Studio 8x help file for a detailed description of all
instructions.

> Also, in what registers could you use to store coordinates?
>     Numbers 1-16
>     Easy to access

Any 8-bit register would be fine...





References: