Last active
May 4, 2020 22:53
-
-
Save neuro-sys/b30c082d1932915907c552ae2e06f62e to your computer and use it in GitHub Desktop.
CPC split screen. Example demonstrates displaying the top 4 character rows starting from 0xc000, and the rest 0x8000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org &4000 | |
run &4000 | |
jp start | |
vsync | |
ld b, &f5 | |
in a, (c) | |
rra | |
jr nc, vsync | |
in a, (c) | |
rra | |
jr c, vsync | |
ret | |
start | |
di | |
ld a, &fb | |
ld (&38), a | |
ld a, &c9 | |
ld (&39), a | |
ei | |
ld hl, &8000 | |
ld (hl), &0f | |
ld de, &8001 | |
ld bc, &3fff | |
ldir | |
frame | |
call vsync | |
halt | |
ds 64*8*4 | |
ld bc, &bc00+4 | |
out (c), c | |
ld bc, &bd00+4-1 | |
out (c), c | |
ld bc, &bc00+12 | |
out (c), c | |
ld bc, &bd00+&20 | |
out (c), c | |
halt | |
ld bc, &bc00+4 | |
out (c), c | |
ld bc, &bd00+39-1-4 | |
out (c), c | |
ld bc, &bc00+7 | |
out (c), c | |
ld bc, &bd00+31-1-4 | |
out (c), c | |
ld bc, &bc00+6 | |
out (c), c | |
ld bc, &bd00+25-1-4 | |
out (c), c | |
ld bc, &bc00+12 | |
out (c), c | |
ld bc, &bd00+&30 | |
out (c), c | |
jp frame |
Author
neuro-sys
commented
May 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment