Author Topic: Bug Reports  (Read 447680 times)

0 Members and 2 Guests are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Bug Reports
« Reply #15 on: February 15, 2010, 01:48:37 am »
Yeah that can be especially annoying when you run programs from MirageOS since it doesn't zero out the getKey, so the very first getKey call in a MirageOS basic pgoram is always [2ND] or ENTER.  This can be exploited though to detect whether or not your Basic game is being run is Mirage ;)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #16 on: February 15, 2010, 03:10:06 pm »
I tried to do this and it didn't work, is there something wrong with it?
Code: [Select]
getkey->K
X+(K=2)-(K=3)->X
/e

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #17 on: February 15, 2010, 03:15:53 pm »
It works perfectly in 0.0.4 when I try that code.

Not sure if this might be the problem, but do realize that this:
X+(K=2)-(K=3)->X
Is not the same as this:
X+(K=2)-(K=3->X

The later will parse like this:
X+(K=2)-(K=3->X)
since store can be used inline.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #18 on: February 15, 2010, 03:18:50 pm »
hmm, strange...must have been 0.0.3 that had a problem
yeah, I tried both though...
hmm, actually I like being able to do that :P
/e

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Bug Reports
« Reply #19 on: February 15, 2010, 06:35:56 pm »
Hmmm it seems that Axe computes 16*16*16 as Zero :(

EDIT: It seems the multiplication system in itself breaks under certain conditions, try running this program:

Code: [Select]
0->F
While getKey!=15
Output(0,0,2*F
Output(0,1,F+F
F+2->F
Pause 100
End

Unfortunately those two expressions are not equal for all legal values of F :(
« Last Edit: February 15, 2010, 07:13:04 pm by Builderboy »

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Bug Reports
« Reply #20 on: February 15, 2010, 07:08:13 pm »
Hmmm it seems that Axe computes 16*16*16 as Zero :(

Its not above the maximum value right?  Maximum for real numbers is 2^16 665536 if i remember correctly...
Yeah, that should come out to 4096 (which is less than 65536).
By the way, Quigibo, do you (or are you planning to) simplify expressions that use constants like that?
« Last Edit: February 15, 2010, 07:08:27 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #21 on: February 15, 2010, 07:52:24 pm »
Hmm, addressing the screen shifting problem with output(), are you using a bcall? If you are, I think _putMAP fixes the screenshifting problem.
/e

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #22 on: February 15, 2010, 09:19:20 pm »
My bad!  The multiplication algorithm was incorrect, I had to change a z flag to an nz flag.  Sorry!  Until I update with the fix, you will not be able to multiply if either argument is larger than 255.

I am planning on optimizing the multiplication/division/modulo for constants as well as for equalities, bit operations, and other things.  I was still a little busy today though so I just wanted to get the update released on time so I'll do that later.

_putMAP would work, but that's how Text( will operate, so there wouldn't be a purose to having two commands that do the same thing.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #23 on: February 15, 2010, 09:23:40 pm »
Yay!

Ah..well...no text will be _VPutMap right?
/e

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Bug Reports
« Reply #24 on: February 16, 2010, 01:06:47 pm »
Oh I'm sorry, I forgot about the differences.  I meant _VPutMap will be for Text().

I think there is a flag I can set to not auto-scroll the screen for the Output() command.  I'll have to do more testing.
« Last Edit: February 16, 2010, 01:07:14 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Bug Reports
« Reply #25 on: February 16, 2010, 02:09:07 pm »
In TI-BASIC, Output( command woN't scroll the screen, even if the string is longer than 128 characters. Only Disp does, when you display something on the 8th row.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Bug Reports
« Reply #26 on: February 16, 2010, 04:20:42 pm »
TextScrolled(2) TextFlags(5)  - Text display caused screen to scroll

Would this be the right flag?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #27 on: February 16, 2010, 04:21:27 pm »
yeah, well _PutMap will do the homescreen, and it will not scroll.
/e

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Bug Reports
« Reply #28 on: February 16, 2010, 06:01:55 pm »
yeah, well _PutMap will do the homescreen, and it will not scroll.
The problem with this is that you can only output one character that way.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #29 on: February 16, 2010, 06:10:56 pm »
really? :/ that sucks...
/e