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 - C0deH4cker

Pages: 1 2 3 [4] 5 6 ... 18
46
Graviter / Re: Graviter
« on: March 03, 2012, 08:36:37 pm »
printf(graviter == dead ? "I am sad." : "Yay!");

47
Computer Programming / Re: defining a function
« on: March 03, 2012, 08:34:02 pm »
Just change it from

i_to_c(height)

to

height = i_to_c(height)



Works the same way but actually works. You may consider working with classes.

Btw, you can rewrite the two functions like so:

Code: ("Python") [Select]
def i_to_c(inches):
    return inches * 2.54

def lbs_to_kg(lbs):
    return lbs * 0.45359237


Or, even smaller:

Code: ("Python") [Select]
i_to_c=lambda(i):i*2.54
lbs_to_kg=lambda(lbs):lbs*0.45359237

48
Axe / Re: Appvars, and referring to a certian point in one?
« on: March 03, 2012, 08:26:29 pm »
How big do you want your numbers to be? If you only want them to be between 0-255, You can hold one number per byte. Otherwise, you will need 2 bytes per number (0-65535).

154->{P+12} will store the number 154 to the 13th byte in your appvar.
24479->{P+17}r will store the number 24479 to the 18th and 19th bytes in your appvar. The superscript 'r' tells axe to save the number as 2 bytes.

49
TI Z80 / Re: YAZP (Yet Another Zedd Platformer)
« on: March 02, 2012, 10:39:11 pm »
prgmANTIGRAV

50
TI Z80 / Re: zStart - an app that runs on ram clears
« on: March 02, 2012, 10:35:34 pm »
You could just do this:

15
prgmPROG

51
TI Z80 / Re: 2D Cellular Automata
« on: March 01, 2012, 06:53:31 pm »
This program messes up pictures when they are loaded. Example:

Pic1 is the first pic, followed by the same pic as imported by prmgCELLAUTO.


52
TI Z80 / Re: zStart - an app that runs on ram clears
« on: March 01, 2012, 04:31:01 pm »
Lol, didnt notice :P

53
TI Z80 / Re: zStart - an app that runs on ram clears
« on: February 29, 2012, 11:01:07 am »
Thanks for all of the help guys, but i managed to fix it by myself. Basically, i noticed that whenever i did anything that even tried to parse the archive, the calc would crash, so i rebooted while holding CLEAR to make it not parse the archive. I thought that my archive was corrupted, so i used the archive uncorruptor utility, but that did not work. So, I used that one program that recreates the vat and parses the archive, so that I could use the archive when i booted from CLEAR. When I did that, i was able to successfully send the zStart 1.3.005 to my calc, which fixed all of my problems.

54
TI Z80 / Re: zStart - an app that runs on ram clears
« on: February 27, 2012, 03:36:00 pm »
Oh. That may be it. Well, how would i switch to 1.3.006 if i cant:
1. Run any app
2. Go through the program list
3. Look in memory mgmt menu
4. Use TiLP


Any ideas?

55
TI Z80 / Re: zStart - an app that runs on ram clears
« on: February 27, 2012, 03:15:49 pm »
I just updated zStart from 1.3.005 to 1.3.007, and it sent fine, but when i went into the zStart app and exited back out, my calc crashed and now wont turn on unless I hold down VARS. Help?

56
The Axe Parser Project / Re: Features Wishlist
« on: January 25, 2012, 07:29:51 pm »
Okay, nevermind. isnt that slower than just using the bit shift instructions though?

57
The Axe Parser Project / Re: Features Wishlist
« on: January 25, 2012, 05:21:44 pm »
Request: bit shifting

58
The Axe Parser Project / Re: Features Wishlist
« on: January 24, 2012, 05:59:20 pm »
I think that he just wants to draw a white line, not remove an existing line. Like this:


######
######
######
######


to this:


# ####
## ###
### ##
#### #

59
WabbitStudio Software Suite / Re: Wabbitemu on Android
« on: January 23, 2012, 06:22:36 pm »
It does violate their TOS, and even if you could strip the TI-BASIC from the OS, it also violates it because it is an emulator, which is prohibited. I am thinking more along the lines of a Cydia app for jailbroken devices. A port of Wabbit would be awesome. It would get so many downloads even if it costs money. I know that I would buy it, as i have a cydia account with a prepaid credit card hooked up to an amazon account for payment.

60
The Axe Parser Project / Re: Features Wishlist
« on: January 23, 2012, 06:19:13 pm »
Codehacker, Runer knows the difference between pointers and their data, he is remarking upon the fact that A+[XXXX]->A returns an Invalid Token error. ;)

Right. I just realized who it was that posted that. And i know that he knows more about Axe than almost anybody else.

* C0deH4cker feels stupid right now.

Pages: 1 2 3 [4] 5 6 ... 18