Hello,
I have created a new language, so the goal in mind was to target more modern but exotic processors, or for the SNES (65816).
If I decided to make my own language, it is mainly because C is not optimized for the 65xx, so what to do?
Some are working on making C optimized for the 65xx, but for me it is a complicated exercise, especially because C makes a lot of assumptions about the target machine (and it assumes that you are on a PDP-11 clone).
But if you are not using such a machine and it has nothing to do with a PDP-11, and you do not have linear addresses for your data, it is relatively complicated with C.
So I have serious doubts that C will really work well with the 6502 and I think there is a real need for a language designed for "6502 clones".
And therefore generate optimized code (which Higueul does)
I added the 6502/65C02 and HUC6280 version recently (it shares the same opcode but with additions), so I made the same code for all three with a bit of if to handle the versions.
However I have not tested it so I do not guarantee their full functionality.
The 16-bit versions are handled but not fully (for example for shifts or comparisons other than equality and and ).
My goal is not really to target the NES community, I don't think it needs a new language.
I use it personally (since I would like to code on PC-Engine).
If some people like it and find a use for it, all the better.
I think it would be better to create an SDK to facilitate the dev (to avoid redoing everything).
SNES (65816):
https://github.com/Kannagi/SNDK/blob/ma ... sprite.egl
Nes (6502) :
https://github.com/Kannagi/Higueul/blob ... s/main.egl
Github:
https://github.com/Kannagi/Higueul
I have created a new language, so the goal in mind was to target more modern but exotic processors, or for the SNES (65816).
If I decided to make my own language, it is mainly because C is not optimized for the 65xx, so what to do?
Some are working on making C optimized for the 65xx, but for me it is a complicated exercise, especially because C makes a lot of assumptions about the target machine (and it assumes that you are on a PDP-11 clone).
But if you are not using such a machine and it has nothing to do with a PDP-11, and you do not have linear addresses for your data, it is relatively complicated with C.
So I have serious doubts that C will really work well with the 6502 and I think there is a real need for a language designed for "6502 clones".
And therefore generate optimized code (which Higueul does)
I added the 6502/65C02 and HUC6280 version recently (it shares the same opcode but with additions), so I made the same code for all three with a bit of if to handle the versions.
However I have not tested it so I do not guarantee their full functionality.
The 16-bit versions are handled but not fully (for example for shifts or comparisons other than equality and and ).
My goal is not really to target the NES community, I don't think it needs a new language.
I use it personally (since I would like to code on PC-Engine).
If some people like it and find a use for it, all the better.
I think it would be better to create an SDK to facilitate the dev (to avoid redoing everything).
SNES (65816):
https://github.com/Kannagi/SNDK/blob/ma ... sprite.egl
Nes (6502) :
https://github.com/Kannagi/Higueul/blob ... s/main.egl
Github:
https://github.com/Kannagi/Higueul
Statistics: Posted by Kannagi — Fri Oct 04, 2024 11:00 am — Replies 5 — Views 259