03-12-2011, 05:01 PM
britlion Wrote:Someone mentioned me?Heyyyy, Welcoooooooooooooooooooooome :!:
I'm glad you swapped to mercurial. It's what we use at work, so I'm starting to be familiar with it - even though I'm not in development, so I tend to limit what to do to hg -u pull



You can pull the ZX Basic compiler (click above to have a look at the repos), with:
Code:
hg clone https://boriel.dyndns.org/hg/zxbasic
Also, the compiler is rather unstable now (see download page). It turns out you were right. I was puzzled about asm code generation you pointed out somewhere in this forum. The compiler was generating very obfuscated asm code. Eg.
Code:
DIM a as UInteger
DIM b as UByte
LET b = a AND a
Code:
ld hl, (_a)
push hl
ld hl, (_a)
ex de, hl
pop hl
call __AND16
ld (_b), a
Code:
ld hl, (_a)
ld de, (_a)
call __AND16
ld (_b), a