Author Topic: [project] Drawing to basic.  (Read 17816 times)

0 Members and 2 Guests are viewing this topic.

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: [project] Drawing to basic.
« Reply #60 on: October 02, 2010, 07:52:20 pm »
Oh, I see.

Well, I guess someone could disasm the OS?




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #61 on: October 02, 2010, 07:54:45 pm »
maybe someone could make me a routine for drawing a circle with pxl_on command?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: [project] Drawing to basic.
« Reply #62 on: October 02, 2010, 07:59:06 pm »
i'm not sure if this is what the TI-OS uses but hey... it's probably close



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: [project] Drawing to basic.
« Reply #63 on: October 02, 2010, 08:08:43 pm »
No, I'm pretty sure the OS (idiotically) uses floating points. It sure explains why the circle routine's so slow x.x




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #64 on: October 02, 2010, 08:10:52 pm »
i'll write that in then.  might take me a while though.
I am having trouble getting all the pausing to match up to make things smooth.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [project] Drawing to basic.
« Reply #65 on: October 02, 2010, 10:03:58 pm »
Would it be possible to just call the actual command in hex or something to draw the circles? I don't know if that's doable at all, just thought I'd throw it out there. (It would be the speed of the actual command, but at least you're getting accurate results.)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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: [project] Drawing to basic.
« Reply #66 on: October 02, 2010, 10:58:44 pm »
That should be possible. I don't know what the command is, though.




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #67 on: October 03, 2010, 10:53:25 am »
except that axe won't work well with floating points, which the command uses a ton of.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: [project] Drawing to basic.
« Reply #68 on: October 03, 2010, 02:53:22 pm »
KermMartian made a fast circle routine a while ago I think. I wonder if it's as accurate as the TI-OS one?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [project] Drawing to basic.
« Reply #69 on: October 03, 2010, 04:04:29 pm »
except that axe won't work well with floating points, which the command uses a ton of.

Well since you're using the TI-OS one shouldn't that get around Axes floating-point thing?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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: [project] Drawing to basic.
« Reply #70 on: October 03, 2010, 04:12:57 pm »
Yeah, but when the user's actually drawing it with his program, it's in Axe.

And so the resultant pic might turn out different.
« Last Edit: October 03, 2010, 04:13:37 pm by Deep Thought »




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #71 on: October 03, 2010, 05:52:32 pm »
Thats why, when i figure a couple of bugs out with EAS, I am planning on useing Pxl_On  to make a circle if i can.

For( M,(some equation),(some equation)
Pxl_On(N,O
end.

Note: I just chose random variables, in no way do they correspond with the program.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: [project] Drawing to basic.
« Reply #72 on: October 03, 2010, 05:54:17 pm »
Thats why, when i figure a couple of bugs out with EAS, I am planning on useing Pxl_On  to make a circle if i can.

For( M,(some equation),(some equation)
Pxl_On(N,O
end.

Note: I just chose random variables, in no way do they correspond with the program.

But even that might not match perfectly with the BASIC circle (you noticed how it overlapped some pixels, right?). You should probably use the OS routine, but you'd need to use the Asm( command for that.




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #73 on: October 03, 2010, 05:56:11 pm »
Thats why, when i figure a couple of bugs out with EAS, I am planning on useing Pxl_On  to make a circle if i can.

For( M,(some equation),(some equation)
Pxl_On(N,O
end.

Note: I just chose random variables, in no way do they correspond with the program.

But even that might not match perfectly with the BASIC circle (you noticed how it overlapped some pixels, right?). You should probably use the OS routine, but you'd need to use the Asm( command for that.

I was saying i would use it for both axe and ti-basic.  (basic would then have Abs( inside it to truncate the numbers.

Know where i would find the asm code for that?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: [project] Drawing to basic.
« Reply #74 on: October 03, 2010, 05:57:29 pm »
Oh, I see. Yeah, that'd be great, but probably pretty slow (it takes quite a while to update those numbers in BASIC).
« Last Edit: October 03, 2010, 05:57:44 pm by Deep Thought »