Carry Flag



#3

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.


#4

Are you going to program a new Coconut emulator?

Ciao.....Mike


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP-67's Flag 3 to HP-41/42 Equivalent Matt Agajanian 2 1,184 03-29-2012, 06:29 AM
Last Post: Dieter
  wp34S Flag Table via STATUS Jake Schwartz 4 1,574 06-30-2011, 05:17 AM
Last Post: Paul Dale
  Capture the flag - HP-12C programming contest x34 10 2,760 02-13-2011, 06:59 PM
Last Post: Allen
  50g flag labels designnut 2 990 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 1,051 04-30-2008, 10:35 AM
Last Post: PeterP
  FLAG-BUG on HP-35S!!?!! dietmar13 6 1,623 08-01-2007, 04:51 PM
Last Post: Chuck
  Can't Set flag 72 Pio 3 1,125 02-13-2006, 09:47 PM
Last Post: Pio
  Minifont Flag #? Pio 2 888 02-12-2006, 11:09 AM
Last Post: Marx Pio
  Factory flag setting on 32sii? EL 2 905 04-18-2005, 09:47 AM
Last Post: Thomas Cox
  Let your geek flag fly Massimo Gnerucci (Italy) 0 595 04-16-2004, 04:56 AM
Last Post: Massimo (Italy)

Forum Jump: