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:
40 - 9
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?
46 - 13
In Python 3, what is the maximum possible positive value for the āintā built-in data type?
35 - 3
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.
32 - 8
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.
21 - 10
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:
29 - 10
Nintendo Entertainment System (NES), the 8-bit Nintendo home video game console, and its Japanese counterpart, the Famicom, singularly saved the videogame industry from the 1983 crash, and kickstarted the golden age of video game industry. How much system RAM did the NES have?
For context: The NES had games that ranged from mere 8 kilobytes (Galaxian) to ¾ megabytes (Kirbyās Adventure). It used a CPU that was mostly compatible with the 6502 used in the Commodore 64, a popular home computer from just a year or two prior. The Commodore 64 had 64 kilobytes of system RAM, although almost half of it was masked by the various ROMs, each of which could be individually switched on/off.
111 - 24
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