Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: nikitouzz on February 10, 2013, 11:59:51 am

Title: [AXE] input routine.
Post by: nikitouzz on February 10, 2013, 11:59:51 am
I making one routine for the axe programmor wich simul the "input" in basic, i explain :

in your programme you make this :
sub(DEM,X,Y,lenght,number1-3) where X,Y is the coordinate of the input rectangle, lenght is the lenght of the input rectangle and the number is 1:for input numbers 2:for input letters 3:for liste input
i'll add news input after.

the routine (sub(DEM...) return the number or the letter after it ":return"

one screen :

(http://data.imagup.com/11/1175181403.gif)

whar do you think about it ?
Title: Re: [AXE] input routine.
Post by: Xeda112358 on February 10, 2013, 01:26:23 pm
I like how it looks. I wonder if it can be optimised more o.o
Title: Re: [AXE] input routine.
Post by: shmibs on February 10, 2013, 04:17:57 pm
sharing this around could be very helpful to people. it'd be nice to have a decent, standard input routine out there (although it would also lead to people being lazy and not actually reading how it works --> not adding features or making changes that would be beneficial for the specific situation).
Title: Re: [AXE] input routine.
Post by: nikitouzz on February 11, 2013, 02:11:03 pm
I have optimized the routine today (-200/300Byte) then i post the code when i optimized all.
Title: Re: [AXE] input routine.
Post by: Xeda112358 on February 11, 2013, 06:02:20 pm
Nice, that seems much better already!
Title: Re: [AXE] input routine.
Post by: Sorunome on February 11, 2013, 07:25:22 pm
Looking nice, maybe you can add a blinking cursor, del and clear keys?
Title: Re: [AXE] input routine.
Post by: nikitouzz on February 13, 2013, 10:20:36 am
del and clear keys is very very difficul to implant because i calcul the number ( for exemple ) directly when the touche are pressed....
Title: Re: [AXE] input routine.
Post by: Matrefeytontias on February 13, 2013, 11:54:03 am
What do you mean by "list input" ?
Title: Re: [AXE] input routine.
Post by: nikitouzz on February 15, 2013, 09:06:50 am
the gamers entrer the list 1,2,3,4 and the code return one list in hexa