| |
Ejner
Registered: Oct 2012 Posts: 43 |
Show Koala Pic
I'm sure noone here has any problems with showing a simple Koala picture, but I came across this piece of code on codebase64.org and wondered why this had to be done so complicated...?
http://codebase64.org/doku.php?id=base:calculate_vic_settings_f..
In TurboAssembler it's pretty simple to calculate the VIC settings, see my example below. Isn't something similar possible with KickAssembler? Just wondering...
Example in TurboAssembler:
;---------------------------------------
; Show Koala
;---------------------------------------
koala = $6000
screen = $5c00
;---------------------------------------
bank = koala/$4000
*= $1000
lda #$3b
sta $d011
lda #koala-($4000*bank)/1024
ora #(screen-($4000*bank))/64
sta $d018
lda #$d8
sta $d016
lda $dd02
ora #%00000011
sta $dd02
lda $dd00
and #%11111100
ora #3-bank
sta $dd00
ldx #0
copy lda koala+$1f40,x
sta screen,x
lda koala+$2040,x
sta screen+$0100,x
lda koala+$2140,x
sta screen+$0200,x
lda koala+$2228,x
sta screen+$02e8,x
lda koala+$2328,x
sta $d800,x
lda koala+$2428,x
sta $d900,x
lda koala+$2528,x
sta $da00,x
lda koala+$2610,x
sta $dae8,x
inx
bne copy
lda koala+$2710
sta $d021
lsr a
lsr a
lsr a
lsr a
sta $d020
lda #0
cmp $0277 ;wait for key
bne *-3
lda $dd02
ora #%00000011
sta $dd02
lda $dd00
and #%11111100
ora #%00000011
sta $dd00
lda #$1b
sta $d011
lda #$15
sta $d018
lda #$c8
sta $d016
jmp $9000
;---------------------------------------
Note: The result of "bank = koala/$4000" is an integer. |
|
... 32 posts hidden. Click here to view all posts.... |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
what is this thread ?
we learned to do this in 1985..
thread started by ejner, who dont know me at all, but downvotes my productions. why ejner ?
so now i shitted in your shitty thread...
how to set up a koala pic ?
congrats on showing your codeskills..
how about making some releases and stop downvoting mine ? |
| |
Bitbreaker
Registered: Oct 2002 Posts: 508 |
Ah, Rambones is spreading again love and friendship in the scene. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
keep it on topic, here I show Koala Pic
|
| |
Smasher
Registered: Feb 2003 Posts: 520 |
my routine uses all vic banks and displays 4 koalas...
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
This is the koala setup i used since 1985.
coded by kaze. he used the book.
TST Ripp #6 |
| |
ChristopherJam
Registered: Aug 2004 Posts: 1409 |
So much cultural appropriation in this thread D''':
Oswald and ZeSmasher better keep their eyes peeled for Dropbears, that's all I can say.
|
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
Koala Interlace, bitch!
|
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
for bonus points convert it to 16cols :) then the next one make a release named koala pic shower :o) |
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
;KOALA PIC 2000
lda $dd00
and #%11111100
ora #%00000011
sta $dd00
lda $d016
ora #$10
sta $d016
LDA #$19
STA $D018
lda #$3b
sta $d011 |
Previous - 1 | 2 | 3 | 4 | 5 - Next |