Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xeda112358

Pages: 1 ... 124 125 [126] 127 128 ... 317
1876
Art / Re: Type this code into your calc and get a surprise!
« on: April 07, 2012, 01:49:20 pm »
Not fourthed, I am having fun >:D I am writing a program to insert all the tokens I need using BatLib >:D I should have this ready sometime...

1877
News / Re: Dive into Critor's TI collection...
« on: April 07, 2012, 01:23:59 pm »
I count 155? o_O Holy sheesh .___. I have 5, that's it.

1878
Introduce Yourself! / Re: Hello :D
« on: April 07, 2012, 01:08:23 pm »
Awesome, welcome here :D It looks like you will need more peanuts o.o
!peanuts
:D

1879
Grammer / Re: Grammer Q&A
« on: April 07, 2012, 01:04:10 pm »
That is weird, do you have a screenie and some code?
I tried to recreate it but it doesn't seem to be happening anymore. I'll keep working with it and if the problem comes up again I'll take a GIF of it.

Btw, I should make a game called Zello. It looks REALLY nice in Doors with that font. I don't know what kind of game it would be, but it just looks so good...
Ah, okay then :) Also, which font?
EDIT:
Ok, I probably am to lazy to search it, but what's the best Grammer tutorial?
Also, TBO_Yeong is now working on a new, better tutorial :) It can be found here: http://ourl.ca/15753

1880
ASM / Re: Font Hook Hacking
« on: April 06, 2012, 09:33:19 pm »
Yeah, it was OS 1.03 XD
Also, it does not work on 2.55MP x.x This isn't looking good... At least with the 1.03, the font worked before crashing, but this time the font doesn't even display as changed before crashing.
Nevermind, I forgot to send the fontset :P Now it is just 1.12 and below that fail.

However, it does work on these so far:
OS2.30
OS2.40
OS2.41
OS2.43
EDIT: And 1.19. I will update as I test them.
1.18 good
1.17 good
1.16 good
1.15 good
1.14 good
1.13 good
1.12 Fail
1.10 Fail
1.03 Fail
2.53 Good except mathprint (doesn't crash though)
2.55 Good except mathprint

1881
ASM / Re: Font Hook Hacking
« on: April 06, 2012, 09:15:35 pm »
I am going to test those once I fix my broken Wabbit XD

1882
ASM / Re: Font Hook Hacking
« on: April 06, 2012, 09:05:57 pm »
Well, I got an early birthday present from thepenguin77 so I have just now managed to confirm that it wil crash on OS1.03 and I still have to test others. It does work on 2.43 for sure since that is what i tested on before. I am right now working on a good fix, but to be universal will add a bunch of code XD

EDIT:(though that could be related to Bcalls)

1883
ASM / Re: Font Hook Hacking
« on: April 06, 2012, 08:50:40 pm »
Well, if your font hook does, then yes (the example does use an archived font). The code is just a way to bypass a bunch of the OS stuff when it is returning from the hook :)

1884
ASM / Re: Font Hook Hacking
« on: April 06, 2012, 08:13:21 pm »
When you set a font hook, it remains until you run a program that replaces it, disables it, or your RAM gets cleared :)

1885
ASM / Re: Font Hook Hacking
« on: April 06, 2012, 07:06:59 pm »
I played with it for a bit before releasing that version, and one version did wrap text. The issue was that certain menus got really buggy.

1886
ASM / Font Hook Hacking
« on: April 06, 2012, 05:21:49 pm »
When using the Font Hook, you cannot do special things on your own. For example, you cannot use your own drawing routines to speed things up. About a year and a half ago, I introduced an 8x8 font hook in BatLib and this is something I had never seen elsewhere. I had to do some semi-hacky things to display fonts in a custom way as opposed to just changing the data displayed and I figured this might be useful for others to use. Pretty much, if you want to use your own routine to display the font when the OS wants to draw a char, try adding this to the end of your hook:
Code: [Select]
   ld hl,18
    add hl,sp
    ld sp,hl
    pop hl
    ld a,l
    out (6),a
    pop hl
    pop ix
    pop hl
    pop de
    pop bc
    pop af
    ret
I am not sure if that works across all OSes, but I don't have access to them all :/ The main scary part that could cause a crash is the fact that this readjusts the stack. If other OSes makes other calls or pushes/pops, this will likely cause a crash.

I used that to let me draw the fonts directly to the LCD and make sure the OS didn't try to mess that up. Plus, it skips over tons of OS code XD You will need to handle inverted text on your own, though, too. I just check the flag and use CPL on the data if it is supposed to be inverted.
Screenie:

As you can see, my actual hook needs help, too, because menus don't work, but the main part is that 8x8 fonts can work XD
EDIT: I have tested some OSes:
1.03 fail
1.10 fail
1.12 fail
1.13 good
1.14 good
1.15 good
1.17 good
1.18 good
1.19 good
2.30 good
2.40 good
2.41 good
2.43 good
2.53 works except in MathPrint, but doesn't crash
2.55 works except in MathPrint, but doesn't crash

1887
Introduce Yourself! / Re: Hi.
« on: April 06, 2012, 04:26:37 pm »
cool o.o DO you guys have IB at your school (International Baccalaureate)? If so, I would highly recommend Math SL or HL. Math SL goes into calculus, 3D spaces, linear algebra and all sorts of fun goodies.

1888
Introduce Yourself! / Re: Hi.
« on: April 06, 2012, 04:10:46 pm »
XD That's okay, once you make it to higher level math, you'll meet more people who love math :)

1889
Introduce Yourself! / Re: Hi.
« on: April 06, 2012, 04:02:09 pm »
Cool :D it is really just rounding phin/sqrt(5) where phi is the golden ration.

1890
Introduce Yourself! / Re: Hi.
« on: April 06, 2012, 03:52:27 pm »
Here is an example!
Code: [Select]
round(((sqrt(5)+1)/2)^Ans/sqrt(5),0
That takes a value in Ans (should be an integer) and uses that to find the nth number. For example, 13 returns 233 :)

Pages: 1 ... 124 125 [126] 127 128 ... 317