Hi Petr,
I have just posted a low level counterpert of thinBsic_Oxygen, and a compiled demo of Plasma
http://www.jose.it-berater.org/smffo...php?topic=1649
Thanks Charles,
sounds good!
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Hi Petr,
I have just posted a low level counterpert of thinBsic_Oxygen, and a compiled demo of Plasma
http://www.jose.it-berater.org/smffo...php?topic=1649
I've implemented soft coding in a new release. It's the first time I have used a hash algorithm to eliminate scanning for instruction names. In most cases, the instruction is located in a single step and all are resolved within three steps in a linked list.
The instruction names are hashed into a 32 bit code. The lower 9 bits of which are used to address a data array of 512 cells, which can be chained to others. There is a one in 4 million chance that the instruction set will contain 2 instructions with the same hash code so this has to be checked when the instruction set is loaded.
Anyway, apart from adding instructions being developed for new processors, it will support those instructions which have alternative names. A kernel of instructions remain hard-coded because their operand types are quite complex to resolve, but I will probably be able to move a few more of them out to the o2asm.data file.
zip file at beginning of this topic
Hi Charles,
as usually, great job!
The data file should be placed in same directory as script or DLL?
Thanks,
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Thanks Petr,
I have not specified a path for o2asm.data so it goes in the current working directory, when the o2_asm() or o2_asm_file() is invoked for the first time.
After this, the module is self-sufficient and o2asm.data is not used again until the module is reloaded.
Thanks Charles.
Will be present in next thinBasic release.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks