Live programming as a form of art. Niche entertainment from hardware I grew with (NES, PC, AdLib). Inspiration for information scientists. C++ and programming tutorials. Introductions to various technology. Video game science, or just playing casually.

E-MAIL POLICY:

 For personal messages only (including if you represent a company): bisqwit@iki.fi . For questions regarding my content, I recommend joining my Discord server (discord.gg/aG4ztC4) and asking on #general or #programming. Chances are it’s a FAQ, and that other people there can answer it faster than it is to wait for me!

MAILING ADDRESS:

 J. YLILUOMA
 P.O. Box 16
 FI-04301 TUUSULA
 FINLAND


Bisqwit

The next episode of Cracking Videogame Passwords (S3e3) looks like it will be the longest so far.
The previously longest one was Metroid, https://youtu.be/wiOalxCQ1Mw?list=PLz... at nearly 30 minutes, but I think this may end up even longer. There is so much to go through. And it is taking me longer to produce than I expected. Granted, I have also spent ~two weeks also relaxing playing Cities: Skylines, but this old game is deceptively complex. For example, I had no idea it has a black market on which you can pay with a credit card. But I am now done with the script, reverse engineering and code, now all that remains is to record the rest of voice and game footage, and put it together as a video.

1 month ago (edited) | [YT] | 127

Bisqwit

I think the new CVP episode is starting to look like ready for publishing some time this week.
In the meantime, in 6502 assembler, which of the following options are correct substitutions to make this code accurately model the behavior of the subroutine call instruction, JSR? (Except for clobbering the A register and NZ flags, that is.)

LDA ♯α(next + δ)
PHA
LDA ♯β(next + δ)
PHA
JMP subroutine
next:

2 months ago | [YT] | 40

Bisqwit

In C++, the “constexpr” keyword is used to denote…

3 months ago | [YT] | 34

Bisqwit

The venerable C language has about 30 to 60 reserved words, depending on the version. Reserved word means that the word has special meaning in the language, and can not be redefined as e.g. a variable. For example, “for” is a reserved word: if one attempts to declare a variable or function called “for”, the compiler will complain of invalid syntax. But “printf” is not a reserved word, because the programmer can define a variable or a custom type by that name. Which of these reserved words in C is also a reserved word in Python?

3 months ago | [YT] | 46

Bisqwit

In Python 3, what is the maximum possible positive value for the ‘int’ built-in data type?

3 months ago | [YT] | 35

Bisqwit

In the QBASIC variant of the BASIC programming language, SUB is a command that…

3 months ago | [YT] | 28

Bisqwit

In computer graphics, and video games specifically, the concept of sprite refers to…

3 months ago | [YT] | 27

Bisqwit

Two days ago we established that acceleration is the rate at which velocity changes over time. Velocity is the rate at which position changes over time. In physics, these are usually simulated using timesteps. Which of these code snippets correctly simulates these phenomena in a single timestep? (Assuming that acceleration is the variable controlled by the user or by a force model. The variable 𝗍𝗌 is the timestep size (such as 1 second).) Hint: a += b; means that a is incremented by the value of b.

3 months ago | [YT] | 32

Bisqwit

In computer science, which of the following things is not true for a doubly-linked list (data container)? Assume that “node” refers to some sort of pointer to the list element in question, that you already have.

3 months ago | [YT] | 21

Bisqwit

In physics, acceleration is a quantity distinct from a velocity. Physically speaking, deceleration is also acceleration, as is changing the moving direction. In constant motion, acceleration is zero. Without outside cues (such as wind on face or engine rumbling), it is impossible to tell the difference between being in constant motion and being at standstill. Suppose that a bicycle starts moving. The acceleration of the bicycle is calculated by dividing:

3 months ago | [YT] | 29