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 > C64 Coding > How to split the screen horizontally ?
2008-06-01 11:53
turtle
Account closed

Registered: Mar 2005
Posts: 44
How to split the screen horizontally ?

........
No problem, to split the screen vertically, through the use of $ d012

..................

graphic

lda # $ 60
aa cmp $ d012
bne aa

text

........
 
... 30 posts hidden. Click here to view all posts....
 
2008-06-02 19:06
yago

Registered: May 2002
Posts: 332
A vertical split on $d011..

I doubt you can change graphic-mode from text to bitmap , but you will explore some nice and strange effects
2008-06-02 19:26
chatGPZ

Registered: Dec 2001
Posts: 11140
try some of the wonderland demos, the d011 split thing is in one of them (yes it does work if you do it right) :)
2008-06-02 19:27
Cybernator

Registered: Jun 2002
Posts: 154
Here goes a little experiment. Assemble with ACME and make sure you write something on the first charrow before running (so you can see the problem caused by lack of C-accesses). Be warned that it will take a lot more effort before you can display "proper" graphics/text.
            !to "hsplit.prg"
            *=$1000
            
a           = 2
x           = 3
y           = 4

            sei
            lda #$35
            sta $01
            lda #$7f
            sta $dc0d
            sta $dd0d
            lda $dc0d
            lda $dd0d
            lda #1
            sta $d01a
            lda #$1b
            sta $d011
            lda #$38
            sta $d012
            lda #$c8
            sta $d016
            lda #0
            sta $d015
            lda #<irq1
            ldx #>irq1
            sta $fffe
            stx $ffff
            lda $d019
            sta $d019
            cli
            inc $c000,x
            bne *-3
            beq *-5
            jmp *
            
irq1        sta a
            stx x
            sty y
            inc $d012
            lda #<irq2
            sta $fffe
            dec $d019
            cli
keep_noping:nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            nop
            jmp keep_noping
            
irq2        pla
            pla
            pla
            lda $d012
            ldx #6
            dex
            bne *-1
            bit $00
            cmp $d012
            beq *+2
            
            !for i, 192 {
                lda #$38 + (i&7)
                ldx #$18 + ((i+1)&7)
                
                nop
                nop
                nop
                nop
                nop
                nop
                nop
                nop
                nop
                nop
                bit $00
                sta $d011
                
                nop
                nop
                nop
                nop
                nop
                nop
                nop
                nop
                bit $00
                stx $d011
                
                nop
                nop
                nop
                bit $00
            }
            
            lda #<irq1
            sta $fffe
            lda #$38
            sta $d012
            lda #$1b
            sta $d011
            dec $d019
            lda a
            ldx x
            ldy y
            rti

2008-06-03 11:37
HCL

Registered: Feb 2003
Posts: 717
..so i say what most others seem to be trying say, only being hardly understandable.. :)

There is no easy trick to split the screen vertically between gfx and text. However, it may still be possible, depending more precisely on your interpretation of "gfx" and "text". Do you want multicolor bitmap gfx, or is it ok with 3 colors + background? Maybe we're talking gfx in hires!? And the text, is it ok with a 7 pixels high font? Does it have to be text on a char-screen, or can it be text on bitmap?

..need more info to solve the problem.
2008-06-03 11:41
chatGPZ

Registered: Dec 2001
Posts: 11140
i still recommend watching a few of the demos which demonstrate this :) in most of them you can also clearly see the problems connected to it (eg the fli-bug alike mess you almost certainly get somewhere across the screen)
2008-06-03 16:24
turtle
Account closed

Registered: Mar 2005
Posts: 44
After all, has seen many demos (from the old days) =), which raster lines divided up in many different colors from left to right.

These are split up, some ideas how it is done?
2008-06-03 16:58
HCL

Registered: Feb 2003
Posts: 717
Example plz. Name a demo.
2008-06-03 17:09
chatGPZ

Registered: Dec 2001
Posts: 11140
color splits are a lot easier to achive than text/gfx :) the stuff seen in really old demos (with say 4 or 5 splits) doesnt even need precise timing, since all you do is covering the screen with a multicolor pattern and do rasterbars in d02x. and the "40 splits" stuff is just...fli =)
2008-06-03 17:33
turtle
Account closed

Registered: Mar 2005
Posts: 44
Quote: Example plz. Name a demo.

Raster Crime

this one =) nice demo..

Someone who has example of such a routine to split the raster =)?
2008-06-03 17:37
turtle
Account closed

Registered: Mar 2005
Posts: 44
one more =)

Raster Machine
Previous - 1 | 2 | 3 | 4 - Next
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
Acidchild/Padua
Linus/MSL
zscs
Mr. SID
St0rmfr0nt/Quantum
A3/AFL
icon/The Silents, Sp..
Enforcer/Deers
Clayboy
Jammer
Mibri/ATL^MSL^PRX
deetsay
Guests online: 68
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.7)
2 Party Elk 2  (9.7)
3 It's More Fun to Com..  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (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.112 sec.