Display Condition Code Register to Keypad (Motorola 6800)

Started by flexelem, April 19, 2011, 08:26:11 PM

Previous topic - Next topic

flexelem

hi there i am working on a debugger project but i am facing with a few problems. the main problem is i know how to use and call DISPAT subroutine but i can not display the condition code register to the keypad. in motorola 6800 instruction set there is an instruction which is "TPA" and this function transfers the value of the con. code reg. to accumulator A. i tried to use call PATCON then DISPAT but i receive some meaningless values. i use "hippy" programme for my assingment. i don't know to fix this. so if you can help me i will be appreciated. and thanks for your help anyway.

Astro

Hi,

Quotei tried to use call PATCON then DISPAT but i receive some meaningless values.
All I can suggest is tracing the operands before here and check it isn't trashing the accumulator.

I don't have my programming manuals to hand right now. Hope you don't see this too late.

Best regards,
Robin.