Startsidan  ▸  Texter  ▸  Teknikblogg

Anders Hesselbom

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

Category: Geeky

Commodore 128 bitmap graphics 2/2
2014-02-13

Part 1. Part 2. On the Commodore 128, the screen is divided into characters. Each character consists of eight eight-pixel lines (bytes), which make a total of 64 pixels per character. Each pixel pair represent one of four available c [...]

Commodore 128 bitmap graphics 1/2
2014-02-09

Part 1. Part 2. 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 bui [...]

Commodore 128 vector graphics
2014-02-08

The Commodore 128 have a rich API for making colorful vector graphics. The low resolution (160x200) color mode allows you to make the classic "Forrest Gump" smiley using these five lines of code: 10 COLOR 0, 13 : REM GREY BACKGROUND 20 COLOR 4, 13 [...]

Action Biker
2014-01-03

Nu har jag stulit så mycket jag bara kan: Rob Hubbards komposition, Trevor Horns sound (efter bästa förmåga). Detta är en cover på soundtracket till Action Biker från 1985.

Evolutionary sudoku
2013-11-07

This is a successful attempt to use an evolutionary algorithm to generate a sudoku board. A complete board is created after usually less than a million iterations, sometimes after a couple of hundred generations. using System; using System.Collection [...]

Vic 20-labyrinten
2013-09-21

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): 10 PRINT CHR [...]

16K RAM till ZX81
2013-09-14

Detta är mitt expansionskort som ger 16K RAM till Sinclair ZX81.

Gratis Instagram från Windows
2013-08-01

Att komma igång med Instagram från din vanliga PC (eller Mac) kräver lite mickel, men är helt gratis och fungerar utmärkt när man väl är igång. Med Instagram installerat kan du posta filer från ditt lokala filsystem, och eftersom lösningen bygger på [...]

Master of Magic (1985) cover
2013-06-30

Min gamla Commodore 128
2013-06-21

Skalning av vektorgrafik på Commodore 128
2013-06-16

Genom kommandot SCALE kan man skala vektorgrafiken, alltså den grafik som skapas med kommandon som DRAW, CIRCLE och BOX - inte sprite-grafik eller text. När man arbetar med högupplöst grafik utan skalning är skärmen 320 pixlar bred och 200 pixlar hög [...]

DATA och READ
2013-06-10

Om om
2013-06-02

Arcade classics
2013-03-30

[nggallery id=2]

Atari Sky Raider
2013-02-22

What the fuck is this? In 1978 Atari releases the arcade game Sky Driver. Insert a coin, and experience spectacular semi-3D graphics. You are controlling a bomber on an airplane and you fire away on objects on the ground. Suddenly, the "time is out" [...]

TPB AFK
2013-02-12

Om du är en del av copyrightlobbyn eller om du av andra skäl står oförstående för tankar kring rättssäkerhet, är detta inte texten för dig. Innan jag såg filmen TPB AFK trodde jag att Sverige kvalificerade som bananrepublik eftersom man iscensatte [...]

Boot Hill 1977
2013-02-09

I associate Boot Hill with cheap restaurants along country roads that I visited in the early eighties when while traveling from and to national vacation destinations. However, the game itself is excellent, especially if you consider that it came out [...]

På allmän begäran (nåja)
2012-12-29

Efter att ha slängt ihop en enkel digitaliseringskod i VB som exporterar Commodore 128-kod, kan jag nu tillgodose önskemålet som alla Commodore-användare har: En idolbild på mig! Detta är koden som genererades. Notera hur digitaliseraren lagrar tv [...]

En tre månader lång spellista
2012-11-23

Jag har dokumenterat vad radiostationen Rockklassiker har spelat för låtar under första kvartalet 2012. Vi pratar alltså om en tre månader lång spellista bestående av 26510 poster. Med denna information kan den som är intresserad ställa frågor och gö [...]

Ozma Wars review
2012-06-17

Ozma Wars is one of those infamous time thieves from my childhood. Ozma Wars is a classical shoot'em up game like Space Invaders but with two major differences. In Ozma Wars, you don't have lifes, you have energy. You off start by docking something t [...]

Up’n Down (in-game)
2012-06-16

A cover version of the C64 version of the Up'n Down soundtrack. Originally written by Tony Vece.

Car polo
2012-05-19

Car Polo is an excellent bar game. In one player mode, you control the red car and the other three are controlled by the computer. The object is to push the yellow ball in to the red goal. The purple car is on your team whereas blue and cyan cars are [...]

Making music in Basic 7.0 part 5
2012-04-14

You can add pitch bending using the SOUND command. By itself, you cannot use envelopes, just flat sounds in any given pitch. The arguments are voice (1, 2 or 3), frequency (0 to 65535), duration (16 = one second), pitch bend direction (0 = up, 1 = do [...]

Shadow of the Beast
2012-04-03

The 1989 mega hit Shadow of the Beast, a run through of the different versions.

Making music in Basic 7.0 part 4
2012-03-10

Apart from PLAY, the commands that are available for making sounds and music are TEMPO, ENVELOPE, SOUND and FILTER. TEMPO lets you control playback speed. The slowest is 1 and the fastest is 255. ENVELOPE lets you modify the ten predefined inst [...]

Making music in Basic 7.0 part 3
2012-03-08

When you use the other synthesizer control characters (O, T, U and X), they apply no matter of what voice (V) you have chosen. So when you for example use O to set the octave (0 to 6), all the following notes, regardless of voice, will be played in t [...]

Making music in Basic 7.0 part 2
2012-03-07

The synthesizer control characters (V, O, T, U and X) always take one integer argument and always affect all the rest of the notes that are played. V stands for Voice and is the key to polyphonic music. Since polyphonic music is achieved by playing n [...]

Making music in Basic 7.0 part 1
2012-03-03

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. PL [...]

Reading sequential data from your 5.25 inch floppy
2012-01-14

Continued from here. Once you have some sequential data in a file on your disk, you can write a program to read it back. How this is done, varies between different Commodore machines, and can be quite tricky. On the C128, it is as easy as writing [...]

Sequential data on 5.25 inch floppies
2012-01-09

If you have an actual 1571 disk drive for your Commodore 128, insert a blank disk, format it using the HEADER command. Something like this: HEADER "MY DISK", I44, D0 (Formatting a disk takes a while.) If you are running a virtual Commodore 128 i [...]

Vic 20 software
2011-10-11

The Vic 20 is not dead yet. I just found this lovely site packed with Vic 20 games and tools. To run a game in the Vice emulator, just download the prg file (download link might be hard to find for some of the programs) and autostart it from the File [...]

Plotting graphics
2011-10-05

The Commodore 128 has a nice API for setting graphics mode and plotting graphics, that can be used in 40 column mode. The GRAPHIC command takes a mode (0 to 5) and a "clear screen flag", and changes the current graphics mode. 0 is the 40 column text [...]

A physical C65 in action
2011-08-06

There are some preserved footage of actual Commodore 65 machines out there. This first clip demonstrates some graphics capabilities. Note that you don't have to specify the unit number when loading from disk. This clip shows how to use the Com [...]

Tool for interplanetary space travel
2011-06-23

If you are planning on doing some interplanetary space travel, this little calculator is what you need. It will tell you how much time you need to set aside for your trip, and how much time you'll gain by using a faster ship. Only available in Swedis [...]

CP/M on a Commodore machine – online resources
2011-05-29

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 Assembl [...]

Simon’s Basic
2011-05-28

I happened to find this website with some great downloads for the Commodore 64. Some compilers and some interpretators, like Simon's Basic. Simon's Basic extended the extremely frugal Commodore Basic 2.0 that was built in the C64. It sort of turned t [...]

Let’s make the screen flash!
2011-04-16

This program will make the screen flash on the Commodore 128, and it will also run on the Commodore 64. The background color of the screen is stored at D021 (53281), so this effect is accomplished by manipulating the value at that address, multiple t [...]

Positioning sprites on the Commodore 64
2011-04-10

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 [...]

Sprites on the Commodore 64
2011-04-03

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, sprite [...]

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: F 0E00 0E3E FF F 0E3F 0E7E FF Of course you can fill both at once, but this the above code nicely declares the two memory areas I am using in [...]

Poking graphics on the C128
2011-03-29

The skills of using PEEK, POKE and logical operators that I write about for the Commodore PET here, can be used to create graphics on the Commodore 128, in 40-column mode. Before you begin, you might want to clear the screen using the SCNCLR command. [...]

Accessing individual bits on a Commodore PET
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 b [...]

Visit ACNE, view source
2011-02-10

Visit http://www.acnestudios.com/ and view the source of their web page. There you have a small challenge for a web developer. Thanks for the tip, Staffan!

Destroying pictures using the command line
2010-12-24

PhotoKiller.exe is a simple command line application that loads an image, manipulates it, and saves it under a new name. By manipulating the levels, and taking some other measures, the image will look like an old color photo. I have a picture call [...]

Mandelbrot
2010-10-19

The day before yesterday, I did a bit on Bo E. Carlsson's book on fractals, and then yesterday, one of the masterminds behind fractal geometry, Benoît Mandelbrot, died. Mandelbrot coined the term "fractal" and gave name to the Mandelbrot set, the fra [...]

Fractales by Bo E. Carlsson
2010-10-17

I found my old book on fractales from 1992 by Bo E. Carlsson, in Swedish. The book basically lists a bunch of different fractales, and explains the underlying mathematical formulas. The book ends with a few Basic code listings. A quick [...]

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 [...]

The Commodore 65
2010-06-26

This is truly one of those machines you really want to own. The Commodore 65 (or C64DX) never made it to the market, probably because of the huge success of the Commodore Amiga. But what a machine it is. Better graphics than the Amiga, 128 Kb of R [...]

Some cool software for the C128: GEOS
2010-06-13

So CP/M is the text based disk operating system for the Commodore 128. You could buy a window based operating on disk called GEOS (Graphic Environment Operating System). GEOS was available for some of the Commodore machines and the Apple II. GEOS i [...]

Some cool software for the C128: CP/M
2010-06-11

CP/M, the disk operating system for the Commodore 128 This is one of the strange things about this machine. Microsoft DOS was around, and Commodore was already making computers running DOS. But the Commodore 128 was supposed to run CP/M. Who used [...]



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