Post Reply 
HHC 2015 RPN programming Contest is now open
10-02-2015, 11:01 PM
Post: #76
RE: HHC 2015 RPN programming Contest is now open
(10-02-2015 10:40 PM)Dieter Wrote:  
(10-02-2015 01:17 PM)Gerson W. Barbosa Wrote:  Before leaving the byte counting subject, please allow me one more question: how does this actually work? The first time I took a printout of CAT 1 I obtained 78 bytes for my program and 89 for Csaba Tizedes's. Now, after PACKING, which I'd forgotten to do previously, I get 71 and 81, respectively. Using the table in Appendix D of the 41C manual I get 58 for mine (assuming RCL Z and RCL IND X take up two bytes each). Which is correct?

Since I am not sure which program exactly you refer to:
What about a listing that includes the byte count for each step? This way any potential errors can be detected easily.

Dieter

Well, I am loathe to submit my listing again, especially after seeing such wonderful codes above, but I'll accept your help. Thanks again!

Gerson.

Code:

01>LBL 'RR        4
02 XEQ 'SORT      6
03 CLX            1
04 STO 06         1
05 STO 07         1
06 4              1
07 STO 00         1
08 SIGN           1
09>LBL 00         1
10 RCL IND 00     2?  
11 CHS            1
12 RCL 00         1
13 RCL Z          2?        
14 +              1
15 RCL IND X      2?
16 X<>Y           1
17 RDN            1
18 +              1
19 X=Y?           1
20 ST+ 06         2?        
21 X<>Y           1
22 X>Y?           1
23 ST+ 07         2?
24 DSE 00         2
25 GTO 00         2
26 RCL 07         1
27 RCL 06         1
28 X<=Y?          1
29 GTO 01         2
30 3              1
31 X>Y?           1
32 GTO 01         2
33 RCL 04         1
34 RCL 02         1
35 -              1
36 X<>Y           1
37 X<=Y?          1
38 GTO 01         1
39 FRC            1
40 RTN            1
41>LBL 01         2
42 SIGN           1
43 END          ---
                 60?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HHC 2015 RPN programming Contest is now open - Gerson W. Barbosa - 10-02-2015 11:01 PM



User(s) browsing this thread: 1 Guest(s)