The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Why DEG?
09-26-2024, 10:19 AM (This post was last modified: 09-26-2024 10:23 AM by toml_12953.)
Post: #1
Why DEG?
In the following Nqueens benchmark, why is DEG used after the ISG and DSE statements? There are no trig functions in the program. If they're supposed to be NOPs, why not just use a register increment or decrement? I'm confused.

Code:
LBL "NQUEENS"
        TIME
        STO "T0"
LBL A   CLRG
        8 STO 11
LBL 00  RCL 00 RCL 11
        X=Y? GTO 04
        ISG 00 DEG
        STO IND 00
LBL 01  ISG 10 DEG
        RCL 00 STO 09
LBL 02  DSE 09 DEG
        RCL 09 X=0? GTO 00
        RCL IND 00 RCL IND 09 -
        X=0? GTO 03
        ABS RCL 00 RCL 09 -
        X<>Y? GTO 02
LBL 03  DSE IND 00 GTO 01
        DSE 00 GTO 03
LBL 04  RCL 10
        TIME
        RCL "T0"
        HMS-
        →HR
        3600
        ×
        RTN

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Why DEG? - toml_12953 - 09-26-2024 10:19 AM
RE: Why DEG? - rprosperi - 09-26-2024, 11:55 AM
RE: Why DEG? - Pekis - 09-26-2024, 11:59 AM
RE: Why DEG? - dmh - 09-26-2024, 12:45 PM
RE: Why DEG? - brouhaha - 09-26-2024, 10:41 PM
RE: Why DEG? - toml_12953 - 09-27-2024, 12:36 AM
RE: Why DEG? - Didier Lachieze - 09-27-2024, 05:08 AM
RE: Why DEG? - xerxes - 09-27-2024, 02:27 AM



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