How to resolve the algorithm Show ASCII table step by step in the Applesoft BASIC programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Show ASCII table step by step in the Applesoft BASIC programming language

Table of Contents

Problem Statement

Show  the ASCII character set  from values   32   to   127   (decimal)   in a table format.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Show ASCII table step by step in the Applesoft BASIC programming language

Source code in the applesoft programming language

 0  GOTO 10: ONERR AI READ LY RND 
 10  LET X = 256 *  PEEK (104)
 11  LET X = X +  PEEK (103) + 7
 20  CALL  - 1184:B$ =  CHR$ (8)
 21  NORMAL : PRINT :E = 61588
 22  PRINT  TAB( 29)"APPLESOFT";
 23  PRINT " II"B$:M =  - 1
 24  PRINT  TAB( 22)"BASED ON ";
 25  FOR I = E + 9 TO E STEP M
 26  POKE 65, PEEK (I): CALL X
 27  NEXT : PRINT B$:S$ = "  "
 28  PRINT  TAB( 28)"6502 ";
 29  PRINT "BASIC V2" CHR$ (8)
 30  PRINT "CHARACTER SET"
 40  FOR R = 0 TO 15: PRINT 
 50  FOR C = 2 TO 7:A = C * 16
 60  LET N$ = S$ +  STR$ (A + R)
 70  LET N$ =  RIGHT$ (N$,4)
 80  PRINT N$":" CHR$ (A + R);
 90  NEXT C,R: PRINT


	LDA  $41   ; ONERR A 
	EOR #$87   ; I READ
	JMP  $DB59 ; LY RND


  

You may also check:How to resolve the algorithm Sparkline in unicode step by step in the JavaScript programming language
You may also check:How to resolve the algorithm Inheritance/Single step by step in the ChucK programming language
You may also check:How to resolve the algorithm Abbreviations, easy step by step in the zkl programming language
You may also check:How to resolve the algorithm Logical operations step by step in the Fortran programming language
You may also check:How to resolve the algorithm Count occurrences of a substring step by step in the Mathematica / Wolfram Language programming language