Skip to content

Programming by Design

If you're not prepared to be wrong, you'll never come up with anything original. – Sir Ken Robinson

  • About
  • Java-PbD
  • C-PbD
  • ASM-PbD
  • Algorithms
  • Other

Author: William Jojo

TEST JDoodle

Posted on July 22, 2024January 2, 2025 By William Jojo
Uncategorized

(Updated November 23, 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” »

TEST 6502

Posted on July 22, 2024November 18, 2024 By William Jojo
Uncategorized

(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” »

PKI and SSL

Posted on July 9, 2024August 13, 2024 By William Jojo
ciss-111, Other

(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” »

Chapter 6502-3 – The Assembler

Posted on June 7, 2024February 7, 2025 By William Jojo
AsmBook

(Updated February 7, 2025) Table of Contents Programs The Assembler Breakdown Features Errors Programs Let’s take a 10,000-foot tour. Our IDE has a form of compiler called an assembler. That is because it assembles the mnemonics, addresses, names, and such for a given CPU and translates it to machine code. In comparison, a compiler translates … Read More “Chapter 6502-3 – The Assembler” »

Chapter 6502-2 – Basic CPU Architecture

Posted on June 7, 2024January 19, 2025 By William Jojo
AsmBook

(Updated July 16, 2024) Table of Contents Physical Details Registers Instructions Addressing Modes Physical Details The MOS 6502 was originally released as a 40-pin dual-inline package (DIP-40) in both plastic and ceramic. The pins connect to locations inside the packaging and onto the CPU die with tiny filaments. Each pin represents a signal in the … Read More “Chapter 6502-2 – Basic CPU Architecture” »

Chapter 6502-1 – The IDE

Posted on June 5, 2024January 20, 2025 By William Jojo
AsmBook

(Updated January 20, 2025) Table of Contents What is and IDE? Hello World A Bigger Example What is an IDE? An Integrated Development Environment, or IDE, is typically a graphical user interface with an editor, compiler, debugger, and much more at your fingertips. During the 6502 era, the idea of having a full-featured development environment … Read More “Chapter 6502-1 – The IDE” »

Chapter 6502-0 – Where to Begin?

Posted on June 3, 2024February 18, 2025 By William Jojo
AsmBook

(Updated February 18, 2025) Table of Contents Starting Out With Old Tech The MOS 6502 References Starting Out With Old Tech The tech we’re talking about here is the MOS 6502. Why choose an old CPU such as this? It’s a good place to begin since the CPU is so primitive that we can easily … Read More “Chapter 6502-0 – Where to Begin?” »

C64 BASIC (in about an hour)

Posted on April 4, 2024November 20, 2024 By William Jojo
C64, ciss-111

(Updated November 20, 2024) Table of contents Overview BASIC History BASIC Statement Structure BASIC Language BASIC Constructs Afterward VICE Overview The BASIC (Beginner’s All-purpose Symbolic Instruction Code) language was created by John Kemeny and Thomas Kurtz at Dartmouth in 1964. It was a simple, unstructured language that was reasonably easy to learn. BASIC was prevalent … Read More “C64 BASIC (in about an hour)” »

Building a Guessing Game

Posted on February 14, 2024July 26, 2024 By William Jojo
Algorithms

(Updated July 26, 2024) Overview When building a simple text game, we want the process to be smooth and elegant. There should be few places to trip up the user or make the play awkward. In this write-up, we look at how we can craft the building blocks of a valuable and user-friendly game. User … Read More “Building a Guessing Game” »

Converting Strings

Posted on February 12, 2024January 31, 2025 By William Jojo
Algorithms

(Updated November 19, 2024) Overview We often have data in a form that is not immediately useful. If we need to do mathematical calculations and all we have is a string, we must first take another step. Here, we explore some of the finer details of how this can be done by examining the algorithm … Read More “Converting Strings” »

Posts pagination

Previous 1 2 3 4 … 19 Next

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Copyright © 2018 – 2025 Programming by Design.