mirror of
https://github.com/piotr-wiszowaty/foco65.git
synced 2024-05-28 23:41:32 +00:00
changed "cell" to "cell+" to be compliant with Forth 200x standard
This commit is contained in:
parent
1726c49c3e
commit
711a691dee
4
foco65
4
foco65
|
@ -255,7 +255,7 @@ class BranchTarget:
|
|||
class Words:
|
||||
def __init__(self):
|
||||
self.lst = []
|
||||
self.aliases = {"cells": "2*", "cell": "2+", "not": "0="}
|
||||
self.aliases = {"cells": "2*", "cell+": "2+", "not": "0="}
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.lst)
|
||||
|
@ -397,7 +397,7 @@ class Forth:
|
|||
elif token == "cells":
|
||||
x = self.pop(token)
|
||||
self.push(2 * x)
|
||||
elif token == "cell":
|
||||
elif token == "cell+":
|
||||
x = self.pop(token)
|
||||
self.push(x + 2)
|
||||
elif token == "/":
|
||||
|
|
Loading…
Reference in New Issue
Block a user