What is the maximum value these numbers can hold? If it's greater than 255, you won't be able to use A. To get OP1 into A (and the full value up to 9999 into DE) you can use _ConvOP1. I'm not sure how fractions are treated, though.
chickendude wrote:
What is the maximum value these numbers can hold? If it's greater than 255, you won't be able to use A. To get OP1 into A (and the full value up to 9999 into DE) you can use _ConvOP1. I'm not sure how fractions are treated, though.


So this should get OP1 into A:


Code:
 b_call(_ConvOP1)
 LD 0,D
 LD A,E


Edit: b_call(_ConvOP1) seems to ruin OP1
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
» Goto page Previous  1, 2, 3 ... 9, 10, 11
» View previous topic :: View next topic  
Page 11 of 11
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement