Author Topic: Screen to pic#?  (Read 8689 times)

0 Members and 1 Guest are viewing this topic.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Screen to pic#?
« on: November 30, 2010, 01:16:24 pm »
Hello,

Im working on a drawing program, and I was wondering if it is possible to save you drawing to an 'pic' var, so that you can access it from the vars menu and look at it on the graph screen.
is here an asm opcode for, or an routine?

please let me know!
I'm not a nerd but I pretend:

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Screen to pic#?
« Reply #1 on: November 30, 2010, 01:56:04 pm »
Look megr drawing source.
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Screen to pic#?
« Reply #2 on: November 30, 2010, 02:01:39 pm »
okay, ill do that.
anyways, does someone know a fun but useful name (not THEGAMED or NVRGNNA and so on ) for my drawing program?

still dont understand the code... kindermoumoute, could you explain?

EDIT: double-post :P
 
« Last Edit: November 30, 2010, 02:18:48 pm by aeTIos »
I'm not a nerd but I pretend:

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: Screen to pic#?
« Reply #3 on: November 30, 2010, 03:49:47 pm »
Hello,

Im working on a drawing program, and I was wondering if it is possible to save you drawing to an 'pic' var, so that you can access it from the vars menu and look at it on the graph screen.
is here an asm opcode for, or an routine?

please let me know!

GetCalc("Pic1",756) creates Pic1 in RAM. It's not really useful unless you know where it is, so use GetCalc("Pic1",756)→P to store the pointer to Pic1 to the Axe var P. Then all you have to do is move the screen to P, with something like Copy(L6,P,756) (since L6 points to the beginning of the screen buffer).
« Last Edit: November 30, 2010, 03:51:32 pm by Deep Thought »




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Screen to pic#?
« Reply #4 on: November 30, 2010, 03:50:57 pm »
Nice, I'll try it!
I'm not a nerd but I pretend:

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: Screen to pic#?
« Reply #5 on: November 30, 2010, 03:51:42 pm »
Oh, and if you were wondering, it's 756 instead of 768 because pic variables don't store the last row. So any edits to the last row don't show up in the OS, unfortunately.




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Screen to pic#?
« Reply #6 on: November 30, 2010, 03:52:32 pm »
then i make the program that you cant use the last row lol
I'm not a nerd but I pretend:

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: Screen to pic#?
« Reply #7 on: November 30, 2010, 11:53:20 pm »
Note that if the picture was created with TI-Connect, it will be 64 rows instead of 63, though.

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: Screen to pic#?
« Reply #8 on: December 01, 2010, 06:29:35 pm »
Note that if the picture was created with TI-Connect, it will be 64 rows instead of 63, though.

Oh, does it actually recall the last row too? I've always wondered why TI left it out.




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: Screen to pic#?
« Reply #9 on: December 02, 2010, 12:29:00 am »
It does, if I remember. I'm not sure if Axe can import it, though.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Screen to pic#?
« Reply #10 on: December 02, 2010, 12:30:34 am »
Note that if the picture was created with TI-Connect, it will be 64 rows instead of 63, though.

Oh, does it actually recall the last row too? I've always wondered why TI left it out.

Their B_calls don't draw to it either.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Screen to pic#?
« Reply #11 on: December 02, 2010, 03:18:29 am »
That sucks. X.x

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Screen to pic#?
« Reply #12 on: December 03, 2010, 11:05:59 am »
Axe imports all rows of tha picture. That feature was added on my request ;) So you can do
Code: (Axe) [Select]
GetCalc("Pic1",768)
Copy(L6,P,768)

and even when you recall a pic with RecallPic # in TIOS, 64 rows will be drawn to the screen when the size of the Pic is 768!
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: Screen to pic#?
« Reply #13 on: December 03, 2010, 12:10:54 pm »
Code: [Select]
GetCalc("Pic1",768)=>P
Copy(L6,P,768)

And copy Pic to screen :
Code: [Select]
GetCalc("Pic1")=>P
Copy(P,L6,768)
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Screen to pic#?
« Reply #14 on: December 03, 2010, 01:37:23 pm »
Axe imports all rows of tha picture. That feature was added on my request ;) So you can do
Code: (Axe) [Select]
GetCalc("Pic1",768)
Copy(L6,P,768)

and even when you recall a pic with RecallPic # in TIOS, 64 rows will be drawn to the screen when the size of the Pic is 768!

RecallPic does not draw the 64th row, even if it exists.