30

A straight forward hack to detect 0x800 and 0xe00 offsets won't work because of this <SARCASM>very clever</SARCASM> code in Solar: movea.l #font_medium,%a3; move.w #7,%d7; tst.b %d2; bne.w +16; move.w #9,%d7; adda.w #0xe00,%a3; bra.w +20; cmpi.b #2,%d2; bne.w +12; move.w #5,%d7; adda.w #0x801,%a3; .... You can see from very far that this was written by an incompetent programmer (move.w #7,%d7, bne.w +16 etc. WTF... I even found a loop of move.b #0,(%a0)+. sick), so these hacks are hardly a surprise, but still, why he didn't use the documented macros (which would be way easier to detect) is beyond me, especially given how the rest of the code is very far from being optimal anyway.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

31

You can see from very far that this was written by an incompetent programmer

hum...
not very kind to say that because of one little problem...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

32

Read the rest of the code extract... This isn't even close to being optimized. The only thing that's "optimized" is an "optimization" which breaks things. And then, people complain about my programs being unoptimized...
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

33

well, even if it's not optimized...
the game is fun an runs with no problem (at least for me grin )
And then, people complain about my programs being unoptimized...

well...
you complain about other programs, and even dare to say that some programmers are incompetent ! So do other people do with you...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

34

It's true that Kevin is a very good programmer of great games laught
avatar
<<< Kernel Extremis©®™ >>> et Inventeur de la différence administratif/judiciaire ! (©Yoshi Noir)

<Vertyos> un poil plus mais elle suce bien quand même la mienne ^^
<Sabrina`> tinkiete flan c juste qu'ils sont jaloux que je te trouve aussi appétissant

35

Flanker :
It's true that Kevin is a very good programmer of great games laught

rotfl
So much code to write, so little time.

36

grin
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

37

I wonder whether putting in the generic detection for the doorsos.h macros, and patching programs like Solar individually, is a reasonable solution...
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

38

Creating tifont.fonte at Preos startup, and search for it each time you run a kernel program (By temporary patching the font_medium value) ?

39

Or just throwing it into a locked handle in RAM? I don't want to keep reloading addresses which may move due to FlashROM garbage collection, and relying on that also subtly breaks any programs using both the fonts and anything in the archive.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

40

>breaks any programs using both the fonts and anything in the archive.
Does such a program exists?

41

Probably. There are masses of kernel programs using those font hack RAM_CALLs.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

42

I don't think so.