don't click here

Weird reaction when Sonic goes down slopes

Discussion in 'Engineering & Reverse Engineering' started by Dark Sonic, Oct 28, 2007.

Thread Status:
Not open for further replies.
  1. Hayate

    Hayate

    Tech Member
    No, it's just coding style in this case.

    btst #a, dn - test bit a (0..31) of register dn
    btst #a, (address) - test bit a (0..7) of byte at (address)

    For example:
    btst #1, d0
    bne.b blah

    will branch to blah if and only if bit #1 in d0 is set, I.e. if (d0 & 2) evaluates to true.

    beq would branch if it was false.
     
Thread Status:
Not open for further replies.