Author Topic: What is wrong with this code? :(  (Read 12734 times)

0 Members and 1 Guest are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: What is wrong with this code? :(
« Reply #15 on: January 12, 2011, 11:28:16 pm »
The 86 had it first, and its basic is faster :P

86 Basic you could load any 8 letter var (excluding commands) as any var type.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: What is wrong with this code? :(
« Reply #16 on: January 12, 2011, 11:33:48 pm »
Indeed, Axe doesn't have implicit multiplication. In fact, if you have, say, "ABC" in your code, it will evaluate just like C alone would, but more slowly. (Since it loads A, then B, and finally C) ;)

I thought it loaded A. This is where the NSpire Basic wins: multiple character variables.

Nope, Axe does exactly what you type: It does the first operation (which just loads A), then the second (loading B), then the third.




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: What is wrong with this code? :(
« Reply #17 on: January 13, 2011, 12:25:12 am »
The 86 had it first, and its basic is faster :P

86 Basic you could load any 8 letter var (excluding commands) as any var type.
Really? I thought Nspire Math BASIC was quite fast and only the display stuff were slow? That said, 86 BASIC was slower than on the 82, 83, 83+ and 85, though.
« Last Edit: January 13, 2011, 12:25:46 am by DJ Omnimaga »

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: What is wrong with this code? :(
« Reply #18 on: January 13, 2011, 09:23:42 am »
Well, true but at least it still had all the functions, like getkey, circle and output :P

But anyways, perhaps someone else could write me a function that does the following for my code.....

For walls ranging from left to right 12 sprites (F) and 4 sprites deep(A)

If Your position + the wall's position relative to you is on (in GDB1)
Draw a column That is at the correct F location, and that is A*8 pixels away from the top and bottom of the screen, using the picvar + the depth (for offset to other pics in mem, Pic1+A*16 or similar)
End
End
End
Dispgraph :P

That's what my code is supposed to do.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: What is wrong with this code? :(
« Reply #19 on: January 13, 2011, 11:12:00 pm »
Aww, no one wants to make one for me?  :'(