Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request boriel-basic#652 from boriel/bugfix/save_code
Browse files Browse the repository at this point in the history
fix: fixes SAVE command
  • Loading branch information
boriel committed Apr 4, 2023
2 parents 5a33655 + 6256c4a commit bb8be05
Show file tree
Hide file tree
Showing 3 changed files with 716 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zxbc/zxbparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2167,8 +2167,8 @@ def p_save_code(p):
start = make_number(16384, lineno=p.lineno(1))
length = make_number(6912, lineno=p.lineno(1))
else:
start = p[4]
length = p[6]
start = make_typecast(TYPE.uinteger, p[4], p.lineno(4))
length = make_typecast(TYPE.uinteger, p[6], p.lineno(6))

p[0] = make_sentence(p.lineno(1), p[1], expr, start, length)

Expand Down

0 comments on commit bb8be05

Please sign in to comment.