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: 333
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: 11386
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: 728
..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: 11386
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: 728
Example plz. Name a demo.
2008-06-03 17:09
chatGPZ

Registered: Dec 2001
Posts: 11386
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
Rub_0201
E$G/HF ⭐ 7
t0m3000/hf^boom!^ibx
stephan-a
fuzzybad
Guests online: 146
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

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