0 Members and 2 Guests are viewing this topic.
If I understand what you are saying, you are trying to make a basic program that compiles another program to assembly. Are you using some kind of library/shell or how are you reading files in basic? Do you plan on having some small hex libraries? Also, I would imagine that the time needed to type in a whole compiler in by hand would be huge and the likelihood of the user making a mistake would be high. Debugging an assembly/compiled program can be tricky enough to a new user without having to worry if they had a small typo somewhere in the 10k+ bytes of the compiler program. While I won't dissuade you from the project, there seems to be some pretty huge difficulties involved. Additionally, you probably have a pretty small audience. How many people do you think would be interested enough in the language to spend hours copying it over by hand (assuming they don't have a cable)?
As for the optimized routine, what language do you want it in? Since you say strings I assume you mean basic.
A: make a library with every single instruction the z80 chipset has to offer and add the equivalent HEX values and index them using form of string manipulation from another program.B: Make an entire system for checking any symtax errors.C: and now that I think about it you can't really parse the data in another BASIC program without having an ASM program to convert it all to string.
push afld a,(**)ld b,apop af
ld b,(hl)
ex de,hlld b,(hl)ex de,hl
ld a,2add a,3ld b,4call MulAB ;MulAB is a multiply routine labelld hl,X ;X is a label for the variable Xsub (hl)