Bitmask_a ($F57E)

This routine takes a bit number, specified in the A register, and returns a bit mask with only the specified bit set.

 

ENTRY:

A-reg contains the bit number

 

EXIT:

A-reg contains the bit mask

X-reg trashed

 

Source