Carry Flag


Anyone here understand the carry flag in HP41C ?
The carry flag is actually two flags!
The process of the carry flag is automatic with every fetch.
The CPU cannot overburden every possible instruction with overhead. The NULL instruction does nothing to the carry flag!
Here is one possible method to implement carry:

C= carry flag

A= "carry was set flag" = Aux carry

At every fetch the fetch process does this automatically, it has nothing to do with the particular function being loaded:

1: clear the "carry was set flag" (A)

2: swap the carry flag with the A flag.

That's it, and it's automatic.


Are you going to program a new Coconut emulator?


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP-67's Flag 3 to HP-41/42 Equivalent Matt Agajanian 2 853 03-29-2012, 06:29 AM
Last Post: Dieter
  wp34S Flag Table via STATUS Jake Schwartz 4 1,091 06-30-2011, 05:17 AM
Last Post: Paul Dale
  Capture the flag - HP-12C programming contest x34 10 2,066 02-13-2011, 06:59 PM
Last Post: Allen
  50g flag labels designnut 2 733 06-06-2008, 07:29 AM
Last Post: Gene Wright
  MCODE question - C=-C-1 MS sets carry in MLDL but not in SDK41 PeterP 2 728 04-30-2008, 10:35 AM
Last Post: PeterP
  FLAG-BUG on HP-35S!!?!! dietmar13 6 1,266 08-01-2007, 04:51 PM
Last Post: Chuck
  Can't Set flag 72 Pio 3 831 02-13-2006, 09:47 PM
Last Post: Pio
  Minifont Flag #? Pio 2 633 02-12-2006, 11:09 AM
Last Post: Marx Pio
  Factory flag setting on 32sii? EL 2 682 04-18-2005, 09:47 AM
Last Post: Thomas Cox
  Let your geek flag fly Massimo Gnerucci (Italy) 0 437 04-16-2004, 04:56 AM
Last Post: Massimo (Italy)

Forum Jump: