Startsidan  ▸  Texter  ▸  Övrigt Commodore

Anders Hesselbom

Programmerare, skeptiker, sekulärhumanist, antirasist.
Författare till bok om C64 och senbliven lantis.
Röstar pirat.

Commodore

Blandade texter om Commodore genom åren
Commodore BASIC 2.0 second release

Inverterat läge på VIC-20 (2023-02-28)

VIC-20 har en gemensam minnesadress som håller reda både på skärmens bakgrundsfärg och borderfärg. Dessutom finns en bit som håller reda på om inverterat läge används. Adressen är 36879, och de åtta bitarna på adressen beskriver borderfärg (bit 0-2), inverterat läge (bit 3) och... Läs hela texten.

Vad är vinsten att skriva i maskinkod? (VIC-20, 2022-08-03)

För ett par veckor sedan skrev jag en kort text om hur man optimerar prestandan i Commodore BASIC 2.0 second release. Det gjorde att jag fick frågan om hur mycket man tjänar på att programmera maskinkod... Läs hela texten.

Prestanda i Commodore BASIC 2.0 second release (VIC-20, 2022-07-15)

Om du skriver ett program i Commodore BASIC för C64 (Commodore 64) eller (som i mitt fall) VIC-20 är prestanda viktigt, speciellt om... Läs hela texten.

Allt om VIC-20 och Commodore 64 (2021-12-08)

Inspelad mellan 2016 och 2020.

Flytta C64-program till din PC (2020-11-20)

Det finns en del olika strategier för att bevara (eller preservera) gamla Commodore 64-program för framtiden. Här presenterar jag en snabbguide för... Läs hela texten.

Commodore 128 Hello world! (2019-04-19)

Några exempel på hur man kan skriva "Hello world" på den mångsidiga Commodore 128 (1985)... Läs hela texten.

Två nya SID-låtar (2017-02-21)

Jag har slängt ihop två nya SID-låtar som kan avnjutas på din Commodore 64. Den ena... Läs hela texten.

Funktioner på VIC-20 (2016-12-18)

AND, OR och EOR på MOS 6502 (2015-12-12)

Kom igång med C128 Assembler (2015-02-21)

Idag finns en hel del produkter för att utveckla program till Commodore 64 eller 128 på en modern PC, vilket är betydligt enklare än att göra det direkt på målmaskinen. Följ dessa steg för att komma igång med Assembler i Commodore 128... Läs hela texten.

Två Commodore 128-algoritmer (2014-03-14)

Commodore 128 vector graphics (2014-02-08)

The Commodore 128 have a rich API for making colorful vector graphics. The low resolution (160×200) color mode allows you to make the classic “Forrest Gump” smiley using these five lines of code... Läs hela texten.

Commodore 128 bitmap graphics (2014-02-09)

When Commodore 128 vector graphics can't provide the desired details, there is an option to do bitmap graphics. The 128 have a built in command for creating pixel perfect graphics called SPRSAV. You can create a pattern using the built-in editor (SPRDEF)... Läs del 1 och del 2.

VIC-20-labyrinten (2013-09-13)

Vissa är säkert bekanta labyrintalgoritmen för Commodore 64, känd för de mer eller mindre slumpmässiga förutsättningarna som gör att en labyrint kan genereras med minimal kod. Koden jag tänker på är givetvis denna (Commodore Basic 2.0)... Läs hela texten.

Making music in Basic 7.0 (2012-03-12)

In Commodore Basic 7, music is made using the PLAY command. PLAY takes one string, and that string contains the notations that you want the Commodore 128 to play. The string “CDE” will play the note C, and then the note D and finally then note E... Läs del 1, del 2, del 3, del 4 och del 5.

CP/M on a Commodore machine – online resources (2011-05-11)

To get started with CP/M, you will need a Commodore 128 with a disk drive or a computer that runs Vice (X128). The disks you need can be downloaded from here. The CP/M boot disk, the additional utilities, "more CP/M additional utilities", the Assembler utilities and Microsoft Basic 80 (two disks). If you run this on a physical machine, make sure to insert the boot disk, and to push in the "40/80 display" key on... Läs hela texten.

Sprites on the Commodore 64 (2011-04-11)

Things gets a bit tougher on the Commodore 64, because this excellent piece of hardware did not come with Basic equipped with sprite commands. Nor has it a sprite editor or a machine code monitor. However, if we have access to a Commodore 128, sprites can be edited when in C128 mode, and then used in C64 mode. If we want, we can also use the machine code monitor in C128 mode and then execute the program in C64 mode. I am going to display a sprite without using the C128 mode... Läs hela texten.

Positioning sprites on the Commodore 64 (2011-04-11)

The task of positioning sprites on the C64 holds one particular oddity that I want to show. To be able to position a sprite on screen, you must master binary logic on the C64, and binary logic works in the same way as on the Commodore PET, shown here. Also, you need a visible sprite. The following code does the trick. If you don't own a Commodore 64 and don't have an emulator, the code also works in JaC64, an on-line C64 emulator implemented as an Java Applet. However, I can't get the cursor keys to work in JaC64, so don't mistype... Läs hela texten.

Collision detection (2011-04-01)

A nice and quick way to create two filled sprites (sprite 1 and 2) is to enter the monitor and type... Läs hela texten.

Accessing individual bits on a Commodore PET (2011-03-26)

2011-03-26
On a Commodore PET, each byte that can be read using the PEEK function, and set using the POKE statement. A byte consist of 8 bits, and represent a number between 0 and 255. This code writes the value 5 to the memory address 1020, and then reads it back. The output is of course 5... Läs hela texten.

Editing code on the Commodore 65 (2010-06-27)

The Commodore 64 and the Commodore 128 uses the same method for editing code. You press enter over a line, and that line is stored the with the index of the entered line number, overwriting any existing code on that with that index. The Commodore 65 has the same machine code monitor as the Commodore 128 (it runs more smoothly because the C65 is much faster than the C128). Also, adding and overwriting Basic code is done in the same way. Editing is probably not, but I am not sure... Läs hela texten.

Manipulate a byte (2010-05-28)

When you get a tweet like this thrown at you, the only thing to do is to take another visit to the wonderful world of the C128 monitor. Let’s say that we were to make a program using assembler. We will store it at address 4096. Enter the machine code monitor by typing MONITOR, and view the current disassembled instructions at 4096 by typing... Läs hela texten.

The built-in machine code monitor (2010-05-27)

The Commodore 128 features a few built in applications and one Easter egg. The egg is a list of the engineers that built the machine, with the word “hardware” intentionally misspelled as “herdware” after 8-bit computer designer Bil Herd. To reveal the egg, type... Läs hela texten.

Hidden stuff in the C128 (2010-05-10)

Here is some of the hidden stuff in my favorite computer, the Commodore 128. There is a bug in the Basic interpretation that shows up when you tries to do an arithmetic calculation using a string. This is what’s supposed to happen: When you add an integer to a string, the interpretator should say that you have mismatching types... Läs hela texten.

Du kan även läsa min bok om Commodore BASIC 2.0.

DateTimeTwitter/X
2024-03-1810:07Vi skulle alltså kunna ha ett fungerande välfärdssamhälle utan att beskatta arbetare så hårt som vi gör idag.
2024-03-1809:26Törs man gissa att SVT:s förklaring bakom dessa ständiga klavertramp är att anslagen är för låga? Om vi ser till att beskatta medborgarna lite mer, så blir SVT genast kompetenta.
2024-03-1808:07Där det finns pengar, där finns det korruption. Statliga bidrag smakar så gott att flugorna tydligen inte går att hålla borta.
2024-03-1717:52Gene Wilder och Harrison Ford i en western? Sveriges bästa filmmagasin har tittat på The Frisco Kid från 1979, mycket nöje!
2024-03-1713:06Klart rolig inspelning av veckans filmrecension idag. Vi ses i kväll!

Om du istället är intresserad av material om C#, klicka här!

DateTimeTwitter/X
2024-03-1616:55Kom ihåg detta nästa gång någon mejar ner 17 personer och halshugger ytterligare 5 på grund av ett skämt om islam.
2024-03-1518:06Dagens ETC är bättre psykoanalytiker än de är politiska kommentatorer. Hade de inte varit så dåliga psykoanalytiker, så skulle allt vara frid och fröjd. Och som vanligt, kom ihåg att det är du som betalar för ETC-kalaset.
2024-03-1517:59Detta får ni inte missa om ni kan ta er till Gamla stan i morgon. Den eminente historikern David Lindén bjuder på en stadsvandring och berättar om bl.a. Stockholms blodbad! En varm rekommendation!
2024-03-1509:43Jag äter inte insekter. Jag har inte den evolutionära bakgrunden att kunna bryta ner dem, och jag har andra preferenser. Tack och lov kan jag kontrollera vad jag äter eftersom jag är lantis, men de som inte kan det ska inte luras.
2024-03-1417:24Hade nog inte unnat mig att köpa en sådan här till mig själv, men frugan överraskade med en kubansk Romeo. Stort tack! ??

Bibelns böcker

Om du läst ett bibelcitat på engelska och vill slå upp det på svenska, är det bra att veta vad motsvarande bok heter på svenska.

En kopp kaffe!

Bjud mig på en kopp kaffe (20:-) som tack för bra innehåll!

Bjud på en kopp kaffe!

Om...

Kontaktuppgifter, med mera, finns här.

Följ mig

Twitter Instagram
GitHub RSS

Public Service

Folkbildning om public service.

Hem   |   linktr.ee/hesselbom   |   winsoft.se   |   80tal.se   |   Filmtips