Bond Valuation - Clean & Dirty Prices

Hello,

Wondering if someone can help me with this? I’m trying to calculate the dirty price of a bond using an HP12C calculator. I’m reading online that you can only calculate the price of a dirty bond assuming annual payments, not semi-annual. When using the financial calculator to calculate the clean, then dirty, price of a bond, the calculator comes reasonably close to the correct answer (even when I calculate it using the semi-annual rates)

Is there another method to calculate the dirty price with an HP12C? I can calculate the dirty price by hand but it would be much more time consuming during the test.

Am I setting myself up for failure if I come across this question on the exam? I’m within 1/2% of the correct answer when doing EOC questions on dirty/clean prices of bonds.

Thanks in advance!