Question for HP-41 MCODE experts



#2

The David Assembler documentation lists three boundary conditions for the C=G instruction where the operation is strange. They all have to do with cases where the active pointer is (or was, or will be) pointing at the most significant nibble. Case 3 is when the pointer is decremented from pointing at the MS nibble immediately before the C=G instruction. This document explicitely states that this is for the DEC PT instruction only. But my reverse-engineered Nut CPU also does a similar thing for the case where the pointer is changed (from pointing at the MS nibble) with a PT=d instruction. In this case the behavior is identical to that listed for the DEC PT case, only relative to the new pointer value. Can anyone confirm that the original Nut CPU operates this way? Or is the operation "correct" in the case where the pointer is loaded with a new value, where it was previously a "B", followed immediately by C=G? Thanks in advance.

Monte


#3

This is a bit too detailed for me, but I advise to look in the V41 sources as this emulator is very accurate. I have done this too for sorting out some details when developing my MLDL2000.

Meindert


#4

Unfortunately the V41 operation in these cases was taken from the David Assembler bug description, and the source code has comments questioning the behavior. Thanks anyway.

Monte

#5

I do not regard myself as an expert, but when I programmed my NutEm (Coconut emulator) I respected all CPU bugs (had a list from can't remember where) with a warning. Running the OS of the HP-41CX I had to discard all those warnings. So it is not clear for which CPU version was this bug list.

Ciao.....Mike


Possibly Related Threads...
Thread Author Replies Views Last Post
  ALL The Experts ARE HERE! Ron Ross 1 183 12-06-2013, 01:50 PM
Last Post: Kévin Ouellet (Canada)
  HP-41(CL): The easiest way to transfer FOCAL programs from a Linux PC to the HP-41 Geir Isene 13 704 12-05-2013, 02:40 AM
Last Post: Hans Brueggemann
  HP-41 MCODE: The Last Function - at last! Ángel Martin 0 147 11-08-2013, 05:11 AM
Last Post: Ángel Martin
  Non-Prime question alert: Hp-41 and synthetic instructions Marcel Samek 11 527 11-04-2013, 09:31 PM
Last Post: sjthomas
  41-MCODE: Auto XEQ+ALPHA possible? Ángel Martin 5 271 05-29-2013, 06:15 AM
Last Post: Ángel Martin
  HP 41 Mcode related Questions Michael Fehlhammer 4 248 05-10-2013, 07:09 PM
Last Post: Michael Fehlhammer
  41-MCODE: Breaking the FAT barrier. Ángel Martin 0 116 09-03-2012, 06:31 AM
Last Post: Ángel Martin
  41-MCODE: Dr. Jekyll & Mr. Hyde Ángel Martin 9 371 07-09-2012, 09:41 AM
Last Post: Monte Dalrymple
  hp 41 series wire-wrapped connector question. Matt Kernal 3 181 06-19-2012, 01:48 AM
Last Post: Luiz C. Vieira (Brazil)
  HP41C: Factorial (kind of) in MCODE Frido Bohn 7 331 05-26-2012, 09:18 AM
Last Post: Frido Bohn

Forum Jump: