zxPaintbrush -> ASM -> screen

Share graphical tips, notes and queries related to our favourite screen layout and its editors.
Post Reply
User avatar
Mpk
Dynamite Dan
Posts: 1014
Joined: Tue Feb 09, 2021 8:10 am

zxPaintbrush -> ASM -> screen

Post by Mpk »

EDIT : please ignore the below. I was being stupid. The SCREEN$ output works fine, I just used the wrong label when I tested it.
Leaving this here as a warning to future generations.
______________

Hello

I've decided that graphics are, in fact, good, so I'll be adding some to my Crap Game Comp submission. Exciting.

So I grabbed an image in zxPaintbrush, and did an export, resulting in something like this

Code: Select all

; ASM data file from a ZX-Paintbrush picture with 256 x 192 pixels (= 32 x 24 characters)
; and an attribute area of 768 bytes

; line based output of pixel data:
MY_LABEL defb 85,127 etc.
defb 200,34, etc
6144 bytes of pixel numbers and 768 bytes of attibutes.

I figured I should just be able to dump those in to the screen memory with

Code: Select all

        LD HL, MY_LABEL
       LD DE,16384
       LD BC,6912
       LDIR
But it comes out looking like a magic eye picture. It's almost right, but completely wrong.
There are 2 other export options for block-based and SCREEN$ output, but those are even worse.

If I export the ZXPaintbrush output as an scr, it works fine as a loading screen.

Image

Any idea what I might be doing wrong?
User avatar
g0blinish
Manic Miner
Posts: 289
Joined: Sun Jun 17, 2018 2:54 pm

Re: zxPaintbrush -> ASM -> screen

Post by g0blinish »

line based exports data from address : $4000..$401f,$4100..$411f
Post Reply