Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Entries > Release id #121282 : Cyber Dream
2013-08-25 17:29
Six

Registered: Apr 2002
Posts: 287
Release id #121282 : Cyber Dream

Two things I noticed in this demo I was curious about - first is the parallax scrolling. It looks to me like a x/y expanded hires sprite layer on top of the screen in the part with the stars in front of the and multicolor sprites in the part where the two square-fields float behind the atlantis logo.
Has anyone ever done an effect like this with also a character layer in front for the appearance of 4 moving planes?

Second is the way they service interrupts (at least in the part I looked at) - they keep one location all the interrupts go through, then jump out through a vector, setting d012, and the vector with x/y/a on their way back out. Is there some technical advantage to handling it this way? (Regardless, I thought it was clever and something I'd recycle in my own code)


irq
pha
txa
pha
tya
pha
jmp ($vector)
irqexit
sta $d012
lda #$01
sta $d019
stx $vector
sty $vector+1
pla
tay
pla
tax
pla
rti
2013-08-25 17:30
Six

Registered: Apr 2002
Posts: 287
Tried to edit the url to redirect this to forum 11, but it didn't work :|
2013-08-26 10:18
Fungus

Registered: Sep 2002
Posts: 616
Six: this type of IRQ handler is pretty common in lots of games. Saves space I guess? =]
2013-08-26 10:46
chatGPZ

Registered: Dec 2001
Posts: 11108
it saves 4 bytes per additional handler - but adds confusion instead :) i rather wont do this, except its really needed for something in particular :)
2013-08-26 12:12
iopop

Registered: Dec 2001
Posts: 317
Who stole my irq code?! :)

I've been using something similar to that for the past 10 years. And I probably found it elsewhere. Of course.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
csabanw
Guests online: 137
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.036 sec.