10/31/2023: Localization News - Dead of the Brain 1!

No, NOT a trick, a Halloween treat! Presenting the Dead of the Brain 1 English patch by David Shadoff for the DEAD last official PC Engine CD game published by NEC before exiting the console biz in 1999! I helped edit/betatest and it's also a game I actually finished in 2023, yaaay! Shubibiman also did a French localization. github.com/dshadoff/DeadoftheBrain
twitter.com/NightWolve/PCENews
Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - freem

#1
Quote from: touko on 03/11/2016, 05:47 AMI tried to load your font with pceas and it works fine .

Try this for loading your font:
...
tia gfx4BPP_font , $0002 , $800
I keep forgetting I'm not coding straight 6502 and have access to things like this; thanks :)
Though I did have to change $800 to $800*2 since the VRAM expects word values.

Quote from: elmer on 03/11/2016, 12:13 PMYour vram_clearBAT code isn't correct ... you're using Y without initializing it.
aha, so I was getting by on pure luck. ;) I figured that routine was broken somehow, due to being a late night coding exercise.

Quote from: elmer on 03/11/2016, 12:13 PMYour font loading code isn't correct ... you're using Y without initializing it (because font_loadSize is $0800).
ah, there we go, that would be it. guess I wasn't running the branch code properly in my head :)

Thanks for your help, elmer and touko; this weekend is going to be a lot of fun.

here's the fixed example, in case anyone wants it:
http://www.ajworld.net/pcedev/pce-example01_ca65-fixed.zip
other comments/critique are welcome :)
#2
Quote from: touko on 03/11/2016, 04:31 AMPS:Your source code is very clean  :wink:
thanks, that was one of my goals :)

Quote from: touko on 03/11/2016, 04:31 AMyou set your VRAM position badly

you did it like that:
st0 #VDCREG_MAWR
st1 #<$0804
st2 #>$0804

It must be:
st0 #VDCREG_MAWR
st1 #<($0800 >> 4)
st2 #>($0800 >> 4)
I just tried this out in mednafen, and this seems wrong... the VRAM looks like this:

dropboxusercontent.com/u/6447287/pcedev/800_lsr4-vram.png

Quote from: touko on 03/11/2016, 04:31 AMAll VRAM read/write addresses must be (my_address >> 4), and for sprite patterns (my_address >> 5)
That sounds right for the BAT and SATB areas, but I'm having trouble with just getting the tiles into VRAM properly...

if I just use $0800 as the VRAM source address, a la

st0 #VDCREG_MAWR
st1 #<$0800
st2 #>$0800

this is what I get in the VRAM viewer:

dropboxusercontent.com/u/6447287/pcedev/800_regular-vram.png

(edit)
and for reference, here's what the VRAM looks like when I load into $0804:

dropboxusercontent.com/u/6447287/pcedev/804_dumbluck-vram.png
#3
alright, I've been trying to get the hang of doing PCE development with ca65 and ld65...

Managed to load a font and write to BAT, though I've been having some trouble dealing with VRAM locations...

IMG

rom and source code is available here; requires gnu make and a recent ca65/ld65 set.

With relation to VRAM troubles, I have to offset the location the file gets loaded by 4 (it was previously 3 before I changed how I was calculating the VRAM address)... not sure how to go about fixing this, so I'm hoping one of the PCE gurus will check it out and lend me a hand :p