Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix data lengths #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions snake.cbl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
data division.
working-storage section.
*>Constant ASCII codes
01 ASCII-W pic 9(1) usage is comp value 119.
01 ASCII-A pic 9(1) usage is comp value 97.
01 ASCII-S pic 9(1) usage is comp value 115.
01 ASCII-D pic 9(1) usage is comp value 100.
01 ASCII-Q pic 9(1) usage is comp value 113.
01 ASCII-W pic 9(3) usage is comp value 119.
01 ASCII-A pic 9(2) usage is comp value 97.
01 ASCII-S pic 9(3) usage is comp value 115.
01 ASCII-D pic 9(3) usage is comp value 100.
01 ASCII-Q pic 9(3) usage is comp value 113.
*>Constant codes for cur-direction
01 DIR-UP pic 9(1) value 1.
01 DIR-LEFT pic 9(1) value 2.
Expand Down Expand Up @@ -41,7 +41,7 @@
05 screen-row occurs 10 times.
10 screen-pixel pic x(1) value '.' occurs 10 times.
*> Puts a newline after each row for printing
10 screen-nl pic 9(1) usage is comp value 10.
10 screen-nl pic 9(2) usage is comp value 10.
*> Puts a null after at the end for printing
05 screen-null pic 9(1) usage is comp value 0.

Expand Down