Home | News | Downloads | Projects | Articles | Awards | Forums | Chat | Guestbook | About | Arcade
InvisionFree - Free Forum Hosting
Free Forums. Reliable service with over 8 years of experience.
Learn More · Register for Free



Forum Topics Replies Last Post Info
Older topics
Here you can access all topics posted from May 12th 2005 to Apr 9th 2006 (In read only mode).
1126 15694 9 Apr, 2006, 11:06
In: Last Post[GAME]Learn how to count to...
By: DJ Omnimaga
 

  post

 PugLib, Version .23
pugboy
Posted: 21 Jul, 2007, 22:08


Newbie


Group: Members
Posts: 9
Member No.: 446
Joined: 25 Apr, 2007



This is a new assembly library that aids BASIC programmers in achieving features not reachable in pure BASIC. This new library has been tested on VTI and a TI-84+, and there have been no problems so far! If you would like to send any suggestions, comments, or just want to spam, send an email to pugprogramming@hotmail.com! The download link will be modified so it directs you to the Cemetech archives (if it gets approved).

user posted image

Download at UTI

PugLib
Current Size: 2012 bytes
Functions: 20, 3 inactive and in Beta Stage
Build: 10

From the manual-
Syntax
X:Asm(prgmPUGLIB where X is the corresponding value to the effect desired.
1: Clear the graph screen and LCD
2: Turn the run indicator off/on
-X=1: Off
-X=2: On
3: Invert Text
-X=1: Inverse on
-X=2: Inverse off
4: Alpha Lock on (Temporary)
5: Toggle Lowercase
6: Free Ram (in X)
7: Black graph screen
8: Invert the graph screen
9: Invert Home Screen
10: Battery Status
-X=0: Battery low
-X>0: Battery ok
11: Increase Contrast
12: Decrease Contrast
13: Set Temporary Contrast (>0 and <63 in X) (Beta)
14: Fast Circles (Store 1 in X for on, 2 for off) (Beta)
15: OS Version (in X)
16: Hardware Version (in X and Ans) (Beta)
17: Power down (Returns to calling program)
18: Toggle Un/Archiving programs within BASIC programs (If A=3:Archive prgmHI)
-Do this before and after Un/archiving
19: Turn off DONE at end of program(s)
20: About PugLib (Displays a Splash Screen)

If it is the Beta Stage, it will display an error message.
Top
DJ Omnimaga
Posted: 22 Jul, 2007, 1:01


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



*spams*

jk

Hi and welcome here, I am drunk right now, so pardon me if my posts are weird but this look awesome. Btw, one suggestion for optimising

14: Fast Circles (Store 1 in X for on, 2 for off) (Beta)

that should be removed

why? Because in pure BASIC you can alerady use fast circle. Just do Circle(X,Y,Radius,{i instead of Circle(X,Y,Radius and circles draws in less than half a sec


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
pugboy
Posted: 24 Jul, 2007, 11:39


Newbie


Group: Members
Posts: 9
Member No.: 446
Joined: 25 Apr, 2007



I have a new way of drawing a circle (thanks to Kllrnohj!), so I will be removing the beta status. It was a four part flag enabler, so it would work the same ways as in BASIC, but the Bresenham algorithm should speed things up!
Top
DJ Omnimaga
Posted: 24 Jul, 2007, 12:20


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



cool to hear, i hope to see it in action soon smile.gif


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
pugboy
Posted: 24 Jul, 2007, 15:39


Newbie


Group: Members
Posts: 9
Member No.: 446
Joined: 25 Apr, 2007



Another couple weeks and it should be at .3!
Top
dinhotheone
Posted: 24 Jul, 2007, 16:12


Extreme Poster


Group: Members
Posts: 378
Member No.: 236
Joined: 11 Nov, 2006



the bresenehan alg is just finding what points should be filled in in a line, i dont think it draws circles but perhaps with some modification.... i bet your circle routine is real fast, i wrote a circle lib in basic the other day and it was 1/5 of a second faster at drawing a circle with radius 15 than the calc's drawing circle command smile.gif. another useful feature you could add would be finding the calcs version number


--------------------
Soccer is life
domination of omnimaga, click below
http://img139.imageshack.us/img139/8868/dominationrc5.gif
Top
DJ Omnimaga
Posted: 24 Jul, 2007, 16:15


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



dinho: was your basic routine faster than the Circle(X,Y,Radius command? Or the Circle(X,Y,Radius,{i one?


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
kalan_vod
Posted: 24 Jul, 2007, 17:53


Super mega post whore of the doom


Group: Members
Posts: 2365
Member No.: 43
Joined: 19 Apr, 2006



QUOTE (DJ Omnimaga @ 24 Jul, 2007, 16:15)
dinho: was your basic routine faster than the Circle(X,Y,Radius command? Or the Circle(X,Y,Radius,{i one?

Most likely the normal, as the {i is faster that 1 sec tongue.gif

Looking good, I like the features maybe a tilemap feature or a delete program feature?
Top
dinhotheone
Posted: 25 Jul, 2007, 20:54


Extreme Poster


Group: Members
Posts: 378
Member No.: 236
Joined: 11 Nov, 2006



umm im not sure which one because i tried circle(20,-20,15,1 and it didnt work so i couldnt test it...i will if you could tell me what my problem is. also my program does a bunch of sstuff that circle doesnt do, like it changes the screen so that its in the 1 increment zoom mode (i duno what you all call it but its the mode where pt(x)=pxl(x) and pxl(y) = pt(-y)) but i could take all that out if i were actually gona use it. also i can easily modify 4 lines of code to say ptoff so i can draw white circles. i havent tested it again but i ouptimized it a tad and lost 1 line of code and shortened 2 others so now i bet its a bit faster.

ps can puglib draw negative circles?


--------------------
Soccer is life
domination of omnimaga, click below
http://img139.imageshack.us/img139/8868/dominationrc5.gif
Top
DJ Omnimaga
Posted: 25 Jul, 2007, 21:06


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



dinho: you have to do circle(20,-20,15,{i


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
dinhotheone
Posted: 26 Jul, 2007, 10:35


Extreme Poster


Group: Members
Posts: 378
Member No.: 236
Joined: 11 Nov, 2006



oh...thats wierd, i figured i'd just be turning on a flag with the one, i'll test it in a bit, i have to goto the gym in like 15 minutes


--------------------
Soccer is life
domination of omnimaga, click below
http://img139.imageshack.us/img139/8868/dominationrc5.gif
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
DealsFor.me - The best sales, coupons, and discounts for you

Topic Options post





TI-Freakware's TI Ring
TI-Freakware's TI Ring
[ Join Now | Ring Hub | Random | << Prev | Next >> ]

Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.4305 seconds | Archive

Skin by xlibman and Jc
All programs and games are property of their respective owners.