| |
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.... |
| |
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
|
| |
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) :) |
| |
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
|
| |
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. |
| |
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) |
| |
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? |
| |
HCL
Registered: Feb 2003 Posts: 728 |
Example plz. Name a demo. |
| |
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 =) |
| |
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 =)? |
| |
turtle Account closed
Registered: Mar 2005 Posts: 44 |
one more =)
Raster Machine |
Previous - 1 | 2 | 3 | 4 - Next |