RickN
Member
 
 HP Calculator Enthusiast
Gender: 
Posts: 45
|
 |
Out-of-range flag is sometimes wrong
« on: Jan 8th, 2015, 5:17pm » |
Quote Modify
|
Set decimal (DEC) 8-bit (8 WSIZE) unsigned (UNSGN) status and clear both Carry and Out-of-range flags (0 ENTER +). Then do 10 ENTER 20 - resulting in Out-of-range value -10 that displays as 256-10 = 246. The real HP-16C results in Carry (C) set and Out-of-range (G) set. The emulator results in C set and G clear.
|