0 Members and 1 Guest are viewing this topic.
LOAD[reg1(16),$80]PUSH[regSP(16),reg1(16),INC [regSP(16),2]]RETURN[POP,regPC(16),regSP(16),2]
ld hl,$80push hlret
I have decided what I shall do to combine the knowledge of all the assembly languages I know -- making an assembly-like language that is less specific than direct assembly and less generic than low-level C -- basically a notation language to carry out certain processes on different processors that compiles to 99% optimized assembly code on each platform! Such as an example of Cor0x code:
If it is possible do you think that some of the instruction mnemonics could be shortened. And I would highly recommend doing this for the SH3 and the ARM. So I think what you are saying is this would be just like assembly language in the instruction simplicity and speed part. but all of the complex data handling normally found on a RISC style processor would be handled by the compiler. Just as example on the SH3 to load word or longword data into a register you need to use a displacement that points to a data table. But in this language the coder could give a literal value and the compiler would set up the table and the displacement.
I am don't know much about assembly but I do see that something like this would definitely be a little easier to use if you made it OOP Language.I don't know if this is possible but that is my main idea on the project
I don't think I can make the syntax easy as I have to have a lot of information crammed into each line like LLVM IR, its not gonna be an easy thing to code in.However, I will include Lo-OO, so it will be OOP -- but the way you'll code in it is much more different and much harder than you think.