pokesfr APFCON on 08M2, have I got it wrong ?

Buzby

Senior Member
Hi All,

I've got a cunning plan, but in order for me to try it I need to twiddle the 'APFCON' bits in my 08M2.

APFCON is in Bank 2 at address $11D ( I think ).

When I try this code, PE6 says No !

Code:
pokesfr $01011101, $00000000   ' Poke APFCON
Have I got the address built wrong, or am I on a hiding to nothing ?

Cheers,

Buzby
 

AllyCat

Senior Member
Hi,

Yes, I've used APFCON and the address is $5D. But I think you've used $ in place of % for the binary representation.

Cheers, Alan.
 

AllyCat

Senior Member
Hi,

Very easily done; I had to try it in the PE before I noticed, and Lance didn't spot it either!

Cheers, Alan.
 

hippy

Technical Support
Staff member
How did I make such a simple error ?
It's easily done. Yesterday I was scratching my head as to why something like "var=FFFE" wasn't giving me -2, was throwing an error. My common mistake I have to catch myself from falling into is -

Serin PIN, BAUD, ( b0 )
 
Top