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

Pages: 1 ... 3 4 [5] 6 7 ... 13
61
TI-BASIC / Re: Fun with strings!
« on: December 16, 2010, 09:15:05 am »
well that's when you use Equ->String(... :P

62
TI Z80 / Re: YASS (Yet Another Security Suite)
« on: December 16, 2010, 12:40:08 am »
I hate to double-post, even in my own topic but...

I have it creating an appvar (87 bytes + length(kStr)) and archiving it, deleting it if it already exists, all that. But I seem to lose it in the mess that is ROM, because when it ought to run the hook, it uninstalls it.

But wow: all this to get rid of occasional uninstall on APD, as well as enabling asm programs.

I had to add like 20 b_calls to get this working... wow.

I'm gonna try incrementing past entire pages now... see ya on the flip side :hyper: :hyper: :hyper:

EDIT: nope. grr what do I need to do to convert ChkFindSym to install_raw_key_hook?

63
TI Z80 / Re: YASS (Yet Another Security Suite)
« on: December 15, 2010, 09:59:19 pm »
This is like the second topic in the past 24 hours mimicking my raycaster's subject format! ;)


Regarding the topic at hand, I don't know much about hooks but I'll throw out a wild guess here. Is this problem possibly due to the same reason that PutS doesn't work in Apps? In which case the solution would be to use a PutC loop?

Another possible cause: Is your source code set to originate at the location the hook will exist in RAM? If not, StrGetKeys would be compiled to an incorrect value.

Well I thought it was a neat title, so I copied it. (and you weren't the only one working on a raycaster before squigetx's, mine works AND has a maze generation program attached :P)

The puts problem is fixed, I was setting penCol instead of curRow :P

Now I wonder: any way to detect kOn with b_call(_getkey) without the error message? I know kOn=0 in the current situation...

Oh, and you can now put kEnter in your keystring! The input is now terminated by On. (since that doesn't return anything anyways) it does throw an error, but don't worry, it won't interfere, and pushing either gives the same effect of successful installation.

64
TI-BASIC / Re: Fun with strings!
« on: December 15, 2010, 09:41:14 pm »
Are you talking about the link that Finale gave? You could do checks for all of them but string and number and if it gets that far then you do that check to decide which it is.

lol I know I just wanted to be evil :P

65
TI Z80 / Re: YASS (Yet Another Security Suite)
« on: December 15, 2010, 06:45:53 pm »
nope. the OS automatically checks the first byte to see if it is $83 before running it.

also, my previous post was #100000 :D

66
TI-BASIC / Re: Fun with strings!
« on: December 15, 2010, 06:44:23 pm »
lol that doesn't work with any input.  What about matrices?  >:D

67
TI Z80 / Re: YASS (Yet Another Security Suite)
« on: December 15, 2010, 06:28:54 pm »
well thats not what "Learn TI-83+ Assembly in 28 Days" had to say about it :P

I'll try curCol first...

EDIT: nope, its curRow :P

68
TI Z80 / Re: YASS (Yet Another Security Suite)
« on: December 15, 2010, 06:25:20 pm »
The input for the bcall PutS is the pointer to the string to be dispayed in hl.

Example:
Code: [Select]
ld hl,Text
bcall PutS
ret

Text:
DB "TO BE DISPLAYED",0


I know that. but it doesn't seem to be working:

Code: [Select]
LD HL,0
LD (penCol),HL
LD HL,StrGetKeys
BCALL PutS
...scrolls down to StrGetKeys...
StrGetKeys:
DB "Enter PassCode",0

It seems to do nothing most of the time, and spit out a tiny bit of garbage the rest of the time.

69
TI Z80 / YASS (Yet Another Security Suite)
« on: December 15, 2010, 06:14:25 pm »
ok how many does this make it? :P

I just wanted to do it for the fun of it (and experience), but these are the features of SECURITE: (name subject to change)

 blocks APPS, PRGM, MEM, LINK, and CATALOG.
   why CATALOG? because that contains the Asm(prgm tokens, which can be used to re-run the program and reset the key.

 currently supports a 5 (or less) keypress 'string'. Could be longer (would actually only have to delete code ;) ), but it might be too easy to forget.
   Automatically disables security when the keystring is entered.
   Sorry, no [Enter] in the keystring. That is used to confirm it.

 Re-enables everything with [2nd][TBLSET] (thats on F2, for quick reference)
   What does that do anyways? :P
   If you really want TBLSET, just re-enable it and try again. TBLSET is enabled when the security is.

 Installs a raw key hook to appbackupscreen, so running virtually any ASM program will disable it...
   Hey, its not an app... (could use appvars... <- possible future update)
   Disables with any method that disables any raw key hook, only way I know of is PTT... (saved me the trouble of pulling batteries quite often earlier...)
   ↑↑↑ possible future update, blocking PTT
   are there any other methods of breaking a raw key hook?

 Virtually unbreakable with a good key, and followed by 'Clear Entries' (or 2.53MP and up scrolling up and manually deleting)
   Only way out I know of is PTT.
      Does that have a key value associated with it?

 size. that is its awesomeness factor. 170 bytes on-calc, and 229 on computer. Almost smaller than a one-line BASIC program!

I am having trouble with:
  displaying the prompt for the keystring. Oddly, I cannot get b_call(_puts) to work. :banghead:

I had trouble with:
  not initializing the keystring length. lol I almost posted about it working on wabbit but not on-calc :P

Edit:
wrote it from scratch today :P

PTT = Push to test, triggered by pressing ON while holding left and right arrows.
Compiled with 100% MIMAS 0.2.

70
TI-BASIC / Re: Fun with strings!
« on: December 15, 2010, 05:31:11 pm »
are you saying there's a length limit with inString(?

I cant do inString("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz {[max(min(int(fPart(...etc...GarbageCollect",sub(Str1,1,1)) ???

because, then, by process of elimination, it has to be " or -> (or be something like sub(, which'll return a string anyways ) >:D

as I said, that'd run really slow :-\

71
TI-BASIC / Re: Fun with strings!
« on: December 15, 2010, 04:35:26 pm »
It doesn't work. When I type the STO char in Y= it does nothing. It won't let me type it ???

1: type "-> on the homescreen, press enter, then quit (when it gives an error)
2: go to Y= and push [2nd][Enter].

that should do it!

but c'mon guys there has to be another way... like:

Code: [Select]
:If inString("every_single_token_except_"_and_->",sub(Str1,1,1))
:Else
...
:End

I could use XTRACHAR for that... I keep it on-calc at all times :P

But it'll run horribly slow.

72
TI-BASIC / Re: Fun with strings!
« on: December 15, 2010, 09:53:00 am »
I know its possible to do that, it's also really easy to just do :Input Str1 and type in a double quote... but I don't want to have to include the string with the program.

And yes, u IS a graphing variable. [2nd][7]. try it.

I'm storing the string to that, then getting the answer right back from it. All its doing for me is converting the string from Input into the corresponding data type.

So you want to test a string if it is a string, number, list, matrix, or something else?

Exactly.

73
TI-BASIC / Re: Fun with strings!
« on: December 15, 2010, 12:12:37 am »
basically, I'm doing:

Code: [Select]
:input Str1,""
:Str1->u           //thats the graphing variable

Ok, so now I need to know what data type u is. I have tests for everything but strings.

EDIT: Na. I wanna save all my assembly routines for blocking ON, APPS, and [2nd][Quit] :P

74
TI-BASIC / Re: Fun with strings!
« on: December 14, 2010, 11:56:15 pm »
 :'(

is there any other way to check if the contents of a string would evaluate to a string (preferably not involving errors)?

75
TI-BASIC / Fun with strings!
« on: December 14, 2010, 11:45:12 pm »
Y DUZ DIS GIB M3 A 3R0R? :banghead:

Code: [Select]
:If sub(Str1,1,1)="""
:Then
...
:End

Spoiler For edit:
I DO want all three quotes there. It worked fine with Str0, and that's what [RCL][VARS][7][0] spits out.

Pages: 1 ... 3 4 [5] 6 7 ... 13