Author Topic: Bug Reports  (Read 129397 times)

0 Members and 1 Guest 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: 6042
  • Rating: +316/-36
  • C'est la vie
    • 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: 6042
  • Rating: +316/-36
  • C'est la vie
    • 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

  • Epic z80 roflpwner
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2885
  • Rating: +460/-17
    • View Profile
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: 6042
  • Rating: +316/-36
  • C'est la vie
    • 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: 6042
  • Rating: +316/-36
  • C'est la vie
    • 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 xlibman

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55806
  • Rating: +3148/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • CodeWalrus
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.
In case you are wondering where I went, I am still active in the TI community, but I left Omni back in 2015 for various  reasons. I might come back one day, depending of certain circumstances, but my new online home (despite me being Omnimaga founder in 2001) is now CodeWalrus ( https://codewalr.us ). Sorry for the inconveniences.

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5713
  • 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: 6042
  • Rating: +316/-36
  • C'est la vie
    • 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

  • Epic z80 roflpwner
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2885
  • Rating: +460/-17
    • View Profile
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: 6042
  • Rating: +316/-36
  • C'est la vie
    • View Profile
    • Eeems
Re: Bug Reports
« Reply #29 on: February 16, 2010, 06:10:56 pm »
really? :/ that sucks...
/e