summaryrefslogtreecommitdiffstats
path: root/mix
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-04-26 22:10:29 +0000
committerrsiddharth <s@ricketyspace.net>2018-04-26 22:10:29 +0000
commit0819ecebf6b6e45545c14a7e52bc76cc691e61b8 (patch)
treec3e14e66c0c997b55d4f1ac1c0ecb18c3e6f9ace /mix
parent4a10c6b7a6768245be24fe87bc304f1f388a0bf4 (diff)
mix/1.3.2/easter.mixal: Do penultimate step.
Diffstat (limited to 'mix')
-rw-r--r--mix/1.3.2/easter.mixal8
1 files changed, 8 insertions, 0 deletions
diff --git a/mix/1.3.2/easter.mixal b/mix/1.3.2/easter.mixal
index 72fe2ee..1b29d63 100644
--- a/mix/1.3.2/easter.mixal
+++ b/mix/1.3.2/easter.mixal
@@ -61,5 +61,13 @@ STRE STX E
JGE STRN
INCA 30
STRN STA N
+ LDA D Penultimate step.
+ ADD N
+ SRC 5 Move value to reg. X from reg. A.
+ ENTA 0 Clear reg. A
+ DIV =-7=
+ SLC 5 Move value to reg. X from reg. X
+ ADD =7=
+ ADD N
STOP HLT
END START