Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
lakeonwan
c64-coder-decoder
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
c64-coder-decoder
/
c64decoder.bas
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
37 lines (37 loc) · 898 Bytes
main
Breadcrumbs
c64-coder-decoder
/
c64decoder.bas
Copy path
Top
File metadata and controls
Code
Blame
37 lines (37 loc) · 898 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
90 REM de(coder) voor cbm 64
91 REM source code from Dutch Eppo magazine Handboek Spion deel 1 (1985)
100 DIM L(80)
110 PRINT"TYP SLEUTEL (TUSSEN 1 EN 25)";
120 INPUT S
130 IF S<1 OR S>25 THEN 110
140 PRINT "TYP TEKST (MAXIMAAL TWEE REGELS)"
150 INPUT C$
160 Y=LEN(C$)
170 FOR X=1 TO Y
180 L$=LEFT$(C$,1)
190 C$=RIGHT$(C$, (Y-X))
200 L(X)=ASC(L$)
210 NEXT X
220 PRINT"CODEREN OF DECODEREN (C/D)";
230 INPUT A$
240 IF A$="D" THEN 340
250 FOR X=1 TO Y STEP 2
260 IF L(X)=32 THEN 290
270 L(X)=L(X)+S
280 IF L(X)>90 THEN L(X)=L(X)-26
290 IF L(X+1)=32 THEN 320
300 L(X+1)=L(X+1)-S
310 IF L(X+1)<65 THEN L(X+1)=L(X+1)+26
320 NEXT X
330 GOTO 420
340 FOR X=1 TO Y STEP 2
350 IF L(X)=32 THEN 380
360 L(X)=L(X)-S
370 IF L(X)<65 THEN L(X)=L(X)+26
380 IF L(X+1)=32 THEN 410
390 L(X+1)=L(X+1)+S
400 IF L(X+1)>90 THEN L(X+1)=L(X+1)-26
410 NEXT X
420 FOR X=1 TO Y
430 PRINT CHR$(L(X));
440 NEXT X
You can’t perform that action at this time.