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

What do PCE developers use?

Started by Monster Bonce, 06/08/2007, 08:31 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Monster Bonce

Sorry to but into a forum that's none of my business but I'm fascinated by independent and homebrew console development. What are you guys using to develop for the PCE? Are you programming in assembler, for example?

OldRover

Some use assembly, some use C. I'm pretty sure Chris Covell uses assembly for his stuff. MindRec and Frozen Utopia both use HuC. I'm not sure about others, but there's one person on efnet #utopiasoft who uses an assembler with all custom startup and library code.
Turbo Badass Rank: Janne (6 of 12 clears)
Conquered so far: Sinistron, Violent Soldier, Tatsujin, Super Raiden, Shape Shifter, Rayxanber II

MooZ

I'm using pceas (cvs version) with custom headers. They are in fact a mostly rewritten hucard only version of mkit.
I tried wla-dx but it misses some of the pceas functionalities. And it can be very annoying. But on the other hand, i'ld be cool if pceas has the bank/slot/org/orga commands from wla-dx. It will make things clearer because at the moment you have to do the evil address computation by yourself... and erm... I think I'm going off-topic :)

TurboXray

'ey MooZ :D

 Since you mentioned CVS build, do you know of a way to do:

LABEL=*+1
     lda $0000
     .
     .
     .
     sta LABEL
     sty LABEL+1


To do the equiv in PCEAS:

LABEL_:
LABEL=LABEL_+1
     lda $0000

or just use LABEL and do sta LABEL+1, sty LABEL+2

MooZ

If i understand things right, you are looking for a way to get the current offset. I did something similar when i was playing with interrupts.

    ldy #high(HERE)
    lda #low(HERE)
    bne skip
    dey
skip:
    dec A
    phy
    pha

    jmp [vector]
HERE:

It emulates the behaviour of the jsr intruction. This code doesn't work if you put it in a different bank or in ram. mkit is using a cleaner solution.
dummy_interrupt_vector:
                     ; some code
    jsr user_code    ; push pc-1 into the stack an jump to user_code
                     ; the 'rts' in the code pointed by vector will bring us back here
    rti              ; end of the interrupt vector

user_code:
    jmp [vector]     ; let's jump to user defined code

The user defined vector must finish with a 'rts'. As we had a 'jsr' to user_code, the 'rts" will bring us back to the instruction coming after the 'jsr'.

Anyway, in pceas there no keywords to get the current address but you can use a label as a standard immediate value.