(Updated November 20, 2024) Overview The process of tokenizing a BASIC program converts the text to a sequence of compressed codes mixed with ASCII (PETSCII) characters. The idea is to have the “compiling” of the code completed and work within an intermediate representation that: Reduces the space occupied by the program. Speeds interpretation of the … Read More “C64 BASIC Tokenizing” »
Author: William Jojo
class Untitled { public static void genPal1() { for( int x = 0; x
import java.io.FileNotFoundException; import java.util.Scanner; import java.io.FileReader; import java.io.PrintWriter; public class Project { public static void main(String[] args) throws FileNotFoundException { String line, rev; int x; Scanner inFile = new Scanner(new FileReader(“Word Salad”)); PrintWriter outFile = new PrintWriter(“copy.txt”); while ( inFile.hasNext() ) { line = inFile.next().toUpperCase(); //System.out.println(line); rev = “”; for ( x = line.length() – … Read More “Project 5 Showcase” »
import java.util.Scanner; import java.util.Random; public class Project4 { static Scanner kb = new Scanner(System.in); public static void main(String[] args) { Random rand = new Random(); char player, computer; String choices = “BPS”; String computerChoice = “”, playerChoice = “”; int numGames, game, wins = 0; System.out.println(“Hello! This is the game of Boulder, Parchment, Shears!”); System.out.println(“How … Read More “Project 4 Showcase” »
String number; int radix; for (int i = 0; i < args.length; i++) { number = args[i].substring(0,args[i].indexOf(':')); radix = Integer.parseInt(args[i].substring(args[i].indexOf(':') + 1)); System.out.println(number + " base " + radix + " is " + Integer.parseInt(number, radix) + " base 10."); } if(args.length>0){ //Checking for input from user for(String input:args){ //Loop to parse //Find the numerical … Read More “Variations on a theme – 111 – Project 1” »
(Updated August 4, 2024) Table of Contents Moving Data The Assembler Breakdown Features Errors Moving Data
(Updated August 12, 2024) Table of Contents Moving Data Simple Math Overflow Compare and Branch Features Errors Moving Data While this is a 16-bit addressable space, we can only perform operations 8 bits at a time because our registers are also 8-bit wide. As such, working with 16-bit or 32-bit quantities means some code repetition. … Read More “Chapter 4 – The Basics” »
(Updated November 19, 2024) FactorialIter.javaOpen in JDoodle public class FactorialIter { public static int fact(int n) { int prod = 1; if ( n < 0 ) throw new IllegalArgumentException("Value cannot be negative."); for (int i = n; i > 1; i–) prod = prod * i; return prod; } public static void main(String [] … Read More “TEST JDoodle” »
(Updated November 18, 2024) Printing.asmLoad Workspace define CHROUT $ffd2 ldx #0 ; set index to zero print: lda words,x ; load a letter from words beq done ; if it’s the zero, we’re done jsr CHROUT ; print the character inx ; increment the index bne print ; keep printing done: brk ; end! ; … Read More “TEST 6502” »
(Updated July 10, 2024) Table of contents Overview Certificates Requesting Certificates Cipher Suites File Formats Configurations VICE Overview Overview The secure exchange of information is essential to protecting vital data sent over networks. Here, we will look at the details related to PKI and SSL. Public key infrastructure (PKI) governs the issuance of digital certificates … Read More “PKI and SSL” »