Post Reply 
(11C) Roll "Four" Dice at Random
10-13-2018, 09:43 PM
Post: #3
RE: (11C) Roll "Four" Dice at Random
(10-13-2018 10:21 AM)Gamo Wrote:  Program: Roll 4 Dice at Random

LBL D
CLx
GSB D
GSB D
GSB D
GSB D
RTN

LBL D
RAN#
6
x
1
+
INT
PSE
X<>Y
+
RTN

You can delete the 3 steps I highlighted in red in your code above, the first two because the second LBL D is right after them so merely falling through will achieve the same effect, and the third one because addition ("'+") is conmutative so no need to swap the two numbers being added.

V.
.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Roll "Four" Dice at Random - Gamo - 10-13-2018, 03:32 AM
RE: (11C) Roll "Four" Dice at Random - Valentin Albillo - 10-13-2018 09:43 PM



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