I'll explain...
In DOS the BASIC header, lenght of the line and line number cause following program appear:
RST #38 ; Just a fake interrupt
LD C,B
LD A,B
JR #127 ; This is the address where actual program will be loaded in DOS
DEFUSR=38+PEEK(-2442)+PEEK(-2441)*256:IFUSR(0)THEN
This is pure BASIC. Because this program does not change the output of USR, 0 will be returned back and as we know 0 = False, so rest of the line will not be executed in BASIC.
THENLINE>2COPY0&H80F6OR384
This is the ML program, in assembler it would look like this:
XOR A
XOR #13
SUB #11
INC C
OR #80
RST #30
DB #1C ; A bit weird looking Slot ID, but it works as bits 0,1 and 7 are 0
DW #180
ALLYOURBASEAREBELONGTOUS!
Just "BASE" is important here (RET) rest is just pure humor
Ps. Dvik: Assembler is allowed in this compo (rules are on page 1)
Thanks for the explanation, I ran the program in a debugger and got the assembler listing and kindof figured out how it worked.
It is a very clever program and I like it a lot (and I missed the asm rule, sorry)
dvik/Nyyrikki - Can we expect more updates to Rally-X?
(never mind...)
?
This is BASIC, man. Of course it's dead slow!
If you don't have all the time in the world, here is raped version, that works on X-BASIC as well...
Hey, this helps a lot! Especially on R800 it is reasonably fast THanks! (I missed this one...)
dvik/Nyyrikki - Can we expect more updates to Rally-X?
I'm pretty satisfied with rally-x now. I'm not sure if nyyrikki has some more ideas.
btw, at a certain depth, the fast version of Mandelbrot seems to loose details... Is that possible?
If you like, I can e-mail some screenshots
About rally-x: I'd like a scrolling landscape above the horizon
It would be nice to have a scrolling horizon. I have an idea on how to do it without slowing down the game but I'm not sure if I can make it with few enough characters of code.
On the other hand I guess we can make a less fancy ending. after all, it uses about 15% of the total number of characters. Maybe it is more fun to have scrolling mountains or something in the horizon than a fancy ending.
I'll see what I can do.