03-02-2010, 05:25 PM
Nice.
I'd downloaded this and was playing with translating it just yesterday :-)
Seems you beat me to it.
Personally, I probably would have sneaked a few more options into the pile - like a function to return ATTR values, based on ink/paper/bright/flash - because this is really meant for inexperienced programmers, and if we can insulate them from awkward stuff that can't hurt.
Also, when reading their code, I noticed a few times they could have written the code a little tighter, and I was itching to change the assembler. *heh* I'd probably save only a handful of T states *chuckle* So probably not much in the way of worth it though.
Things like:
is 28 T states.
I think
at 21 T states Would be tighter.
Oddly, they use the latter method for increasing a variable.
I'd downloaded this and was playing with translating it just yesterday :-)
Seems you beat me to it.
Personally, I probably would have sneaked a few more options into the pile - like a function to return ATTR values, based on ink/paper/bright/flash - because this is really meant for inexperienced programmers, and if we can insulate them from awkward stuff that can't hurt.
Also, when reading their code, I noticed a few times they could have written the code a little tighter, and I was itching to change the assembler. *heh* I'd probably save only a handful of T states *chuckle* So probably not much in the way of worth it though.
Things like:
Code:
ld hl, xpos
ld a, (hl)
dec a
ld (hl), a
I think
Code:
ld hl, xpos
dec (hl)
Oddly, they use the latter method for increasing a variable.