Hello all!
First time actually posting here on Cametech (unless I posted earlier on and forgot about it).
Ive been looking into doing a performance comparison between TI-BASIC, Optimised TI-BASIC, ICE compiled TI-BASIC, Optimized ICE compiled TI-BASIC, C libs, and straight up eZ80 ASM. To compare results, I made a 3D sphere demo in TI-BASIC. It takes about 5 seconds per frame to calculate and draw 70 points.
So, to compare, I need to rewrite the program in all those aforementioned languages.
First off, I wanted to have a stab at eZ80 asm, as I've already made small demos with the C libraries and wanted a change of pace.
But now im left with this:
Idk how to even initialize a variable.
Ive done some 6502 ASM, and there there really isn't a BIOS, so you just write to ram at a given address.
So far I've tried:
Code:
at the bottom of the .asm file, but that throws an error in my compiler (SPASM-NG)
Code:
I assume just writing to the registers is a bad idea, as they get overwritten all the time.
Sorry for the noob-ish question, help is appreciated!
First time actually posting here on Cametech (unless I posted earlier on and forgot about it).
Ive been looking into doing a performance comparison between TI-BASIC, Optimised TI-BASIC, ICE compiled TI-BASIC, Optimized ICE compiled TI-BASIC, C libs, and straight up eZ80 ASM. To compare results, I made a 3D sphere demo in TI-BASIC. It takes about 5 seconds per frame to calculate and draw 70 points.
So, to compare, I need to rewrite the program in all those aforementioned languages.
First off, I wanted to have a stab at eZ80 asm, as I've already made small demos with the C libraries and wanted a change of pace.
But now im left with this:
Idk how to even initialize a variable.
Ive done some 6502 ASM, and there there really isn't a BIOS, so you just write to ram at a given address.
So far I've tried:
Code:
Variable:
.db $01
at the bottom of the .asm file, but that throws an error in my compiler (SPASM-NG)
Code:
src.asm:12: warning SW800: Value too large for 8-bits, truncation required
I assume just writing to the registers is a bad idea, as they get overwritten all the time.
Sorry for the noob-ish question, help is appreciated!