Author Topic: Program request. Drawing of pictures.  (Read 8334 times)

0 Members and 1 Guest are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #15 on: September 27, 2010, 04:14:08 pm »
Question: In axe, can you store commands into a program or something like that? or would you have to do t in asm?
It's possible with Asm, Axe, or Celtic III/DCS7. :)

how would i do it with axe?
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 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: Program request. Drawing of pictures.
« Reply #16 on: September 27, 2010, 05:52:29 pm »
With this:
Quote
GetCalc(PTR,SIZE)     Creates an OS variable who's name is pointed to in RAM and makes it Size bytes large. Returns a pointer to the start of data, or zero if there was not enough RAM. Overwrites existing variable, even if it was in archive.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #17 on: September 27, 2010, 06:16:45 pm »
could someone plz make a quick axample program the will make a ti-basic program with

that when run, will output a program named
prgmABC
with this coding in it V

for(a,1,100
pause A
end


?
« Last Edit: September 27, 2010, 06:31:41 pm by happybobjr »
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 Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #18 on: September 27, 2010, 06:33:03 pm »
You can load programs just as you would load variables.  Try this code (its not tested but it should work)

Code: [Select]
.AXE
GetCalc("prgmA",14)->P
[D3412B312B3130303FD8413FD43F]->Str1
Copy(Str1,P,14)

What it does is create a program with 14 bytes of space, and stores the location of the program into P.  the second line contains all of the data for the program.  Each token is represented by a number, and all 14 numbers are loaded into the program with the last line.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #19 on: September 27, 2010, 07:13:14 pm »
IT WORKED!  thank you very much.

thanks much. now i'll try to do something with this :D :D :D :D :D :D
This is amazing.
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: Program request. Drawing of pictures.
« Reply #20 on: September 27, 2010, 07:21:12 pm »
You can load programs just as you would load variables.  Try this code (its not tested but it should work)

Code: [Select]
.AXE
GetCalc("prgmA",14)->P
[D3412B312B3130303FD8413FD43F]->Str1
Copy(Str1,P,14)

What it does is create a program with 14 bytes of space, and stores the location of the program into P.  the second line contains all of the data for the program.  Each token is represented by a number, and all 14 numbers are loaded into the program with the last line.
I'M not sure what you mean. Do you mean this creates a TI-BASIC program (empty) called prgmP?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #21 on: September 27, 2010, 07:39:35 pm »
You can load programs just as you would load variables.  Try this code (its not tested but it should work)

Code: [Select]
.AXE
GetCalc("prgmA",14)->P
[D3412B312B3130303FD8413FD43F]->Str1
Copy(Str1,P,14)

What it does is create a program with 14 bytes of space, and stores the location of the program into P.  the second line contains all of the data for the program.  Each token is represented by a number, and all 14 numbers are loaded into the program with the last line.
I'M not sure what you mean. Do you mean this creates a TI-BASIC program (empty) called prgmP?

no, it creates a TI-BASIC program prgmA
with

for(A,1,100
pause A
end

inside it
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: Program request. Drawing of pictures.
« Reply #22 on: September 27, 2010, 07:59:44 pm »
Code: [Select]
.F
[DD412B422B433F32438310B04208312BB03109BC420D703441432C0D]->GDB1
GetCalc("prgrmQUAD",28)->P
Copy(GDB1,P,28)

oh yes, it's our favorite program, being spawned from Axe (:


Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #23 on: September 27, 2010, 08:50:12 pm »
ummm....  is this going to be a new meme?  where we have something like, never gonna give you up, in hex?
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: Program request. Drawing of pictures.
« Reply #24 on: September 27, 2010, 10:49:51 pm »
Oh I see. It's nice we can create BASIC programs with Axe now :D

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #25 on: September 28, 2010, 07:12:35 am »
ya,  remember my etch-a-sketch?  well i am going to make a drawing program (again) an 1st release is only going to have lines availible for drawing.  but iw will that the lines you draw and turn it into ti-basic.
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 Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Program request. Drawing of pictures.
« Reply #26 on: September 28, 2010, 08:41:17 am »
Could someone toss me a link for tokens in hex? Thanks.
This is very interesting. :)
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Program request. Drawing of pictures.
« Reply #27 on: September 28, 2010, 09:25:26 am »
I think you can do tokens fairly easily like so:

Data(TDisp ,T",TH,TE,TL,TL,TO,T ,TW,TO,TR,TL,TD,T!

This only works for single-byte tokens, though. If you have a two-byte token, you can do the following for example:

Data(TDisp ,TStr1/256, TStr1
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Program request. Drawing of pictures.
« Reply #28 on: September 28, 2010, 09:40:46 am »
I meant the tokens in hex.
Isn't there a sheet of them somewhere like that?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Program request. Drawing of pictures.
« Reply #29 on: September 28, 2010, 10:15:24 am »
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
____________________________________________________________