Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 May, 2013, 09:13:07 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 100 101 [102] 103 104 ... 110   Go Down
  Print  
Author Topic: Axe Q&A -  (Read 59345 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Stefan Bauwens
Creator of Myst 89 - סטיבן
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Yesterday at 12:56:14
Date Registered: 25 February, 2011, 15:41:10
Location: Belgium
Posts: 1697


Total Post Ratings: +132

View Profile WWW
« Reply #1515 on: 21 June, 2012, 11:13:00 »
0

If I'm using 4-level greyscale, can I copy the screen and recall it in my main loop. For example:
:Line(0,0,95,0)
:Line(0,0,95,0)r
(^black line)
:rect(1,1,94,63)r
(^light grey rectangle)
:some other sprites
:StorePic
:repeat getkey(15)
:clrdrawrr
:recallpic
dispgraphrr
:end

I've seen storepic and recallpic in the Axe documentation but they seem to copy to the backbuffer, which I guess would ruin the greyscale.
I also saw StoreGdB but I'm not sure what it does.

So, does anyone know if this is even possible? Thanks a lot in advance Smiley

EDIT:Jacobly already helped me(in chat). Im using Buff( command to store the screen in GDB and with the Copy( command I copy it to the buffers. So thanks jacobly Smiley
« Last Edit: 21 June, 2012, 14:27:49 by Stefan Bauwens » Logged

parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #1516 on: 22 June, 2012, 02:47:53 »
0

What are the dangers of exiting a program without restoring the fonts or interrupts?
Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 04:23:34
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1839


Total Post Ratings: +227

View Profile
« Reply #1517 on: 22 June, 2012, 02:52:02 »
0

if you don't change the fonts, the danger is that the fonts won't be changed, until something else changes them. nothing bad should happen of it. as for interrupts, the OS's interrupts won't be reinstated, or something like that, and you can expect crashes, i believe.
Logged



We're not human, are we?
MGOS
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: Today at 00:35:42
Date Registered: 29 July, 2011, 16:54:53
Location: Germany
Posts: 295


Total Post Ratings: +73

View Profile
« Reply #1518 on: 22 June, 2012, 06:21:57 »
0

The fonts won't affect the Calc that much, it only looks weird at first, until it is restored. Interrupts will always lead to a crash if not reinstalled.
Logged

Click those to see more information Smiley
Current   
Projects: 
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 04:23:34
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1839


Total Post Ratings: +227

View Profile
« Reply #1519 on: 24 June, 2012, 02:09:35 »
0

is there some way to access the f register directly from axe to get the value of a flag?
* shmibs wants to use bcall(_EnoughMem) as inline hex
Logged



We're not human, are we?
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #1520 on: 24 June, 2012, 02:45:49 »
0

There are ways to get the contents of the F register, but almost no one ever has to do it.

Instead, try this: Asm(EFFD42ED62) will return zero if there's enough RAM and a non-zero value if there isn't. (Specifically, it returns $FFFF, but the point is that it's not zero.)
Quote from: Axe
768
Asm(EFFD42ED62)
If
Disp "Not enough RAM!"
Else
Disp "768 bytes available!"
End
Spoiler for Explanation:
Quote from: Z80 Assembly
    bcall(_EnoughMem)
    sbc HL, HL
EDIT: Just realized how much I overthought this. Cut out four bytes, but note that the order is reversed (zero means enough RAM, negative one means there isn't).
« Last Edit: 24 June, 2012, 05:02:37 by Deep Thought » Logged




shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 04:23:34
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1839


Total Post Ratings: +227

View Profile
« Reply #1521 on: 24 June, 2012, 04:14:25 »
0

thanks =D
EDIT:
i was trying to use this, along with _InsertMem, to increase the size of an appvar, but what i have keeps crashing. the size check isn't working, and it just plows on past a safe length. what am i doing wrong here?


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
GetCalc("appvA")->theta
0
Repeat
1
Asm(EFFD42ED62) ;check if there is one at least one byte of free ram
If ; if there is not
1 ;1 is stored to hl
Else
theta
Asm(545D) ;ld d,h : ld e,l
Asm(210100) ;ld hl,1
Asm(EF42F7) ;bcall(_InsertMem)
{theta-2}r++ ;increase size bytes
0:End
End
« Last Edit: 24 June, 2012, 06:11:37 by shmibs » Logged



We're not human, are we?
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #1522 on: 24 June, 2012, 06:21:51 »
0

I haven't figured out your bug, but why are you adding a single byte at a time? _MemChk returns the amount of free RAM you have remaining.
Logged




shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 04:23:34
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1839


Total Post Ratings: +227

View Profile
« Reply #1523 on: 24 June, 2012, 06:45:49 »
0

i figured it out.
* shmibs was typing in the address for _InsertMem backwards
it's Asm(EFF742)
Logged



We're not human, are we?
danny90444
LV3 Member (Next: 100)
***
Offline Offline

Gender: Male
Last Login: 13 February, 2013, 20:28:02
Date Registered: 18 June, 2012, 19:37:24
Location: Across the Universe
Posts: 41


Total Post Ratings: 0

View Profile WWW
« Reply #1524 on: 26 June, 2012, 21:27:52 »
0

Could someone explain what axioms are and how to make/use them ?(in axe parser) Also , could someone explain how to make icons?

And also what "IRC" and "ASCII" mean or stand for ?
« Last Edit: 26 June, 2012, 21:44:26 by danny90444 » Logged

Schrodinger's cat walks into a bar... and doesn't.
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #1525 on: 26 June, 2012, 22:22:58 »
0

For Icons, use #Icon. (key: identity) It is 64 hex characters long, for a 16*16 image.

IRC is Internet Relay Chat
ASCII is the American Standard Code for Information Interchange, a character encoding type thing. en.wikipedia.org/wiki/ASCII
« Last Edit: 26 June, 2012, 22:23:21 by parserp » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:39:24
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #1526 on: 26 June, 2012, 22:23:30 »
0

Axioms are libraries, basically extensions to the Axe language to create new commands. For example, if you were using thepenguin77's Fullrene Axiom, Fcdf( would be a valid command in your program. Axioms are written in assembly, because the idea is to create more native commands for Axe.

Set an icon for your program with the #Icon( directive (it's the identity( token, found under the MATRX MATH menu). It takes 64 characters of hexadecimal characters representing the icon. (The documentation has a nice description of images as hex data.)

IRC is just Internet Relay Chat, a really common instant-messaging protocol (like AIM, but with a much longer history and much more versatile). It's nothing specific to Axe or Omnimaga—just google it and you'll find a ton of info.

ASCII usually refers to the character set (the set of all characters ... not sure how to put it beyond that). Technically it's a specific set of 256 characters, the American Standard character set (just google ASCII), but we often use it to refer to "ASCII graphics," like games made entirely on the home screen.
Logged




aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Online Online

Gender: Male
Last Login: Today at 08:43:47
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3106


Total Post Ratings: +120

View Profile
« Reply #1527 on: 26 June, 2012, 22:45:44 »
0

You got ninja'd on the last 2 ones.
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
parserp
Hero Extraordinaire
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: 16 May, 2013, 23:40:53
Date Registered: 08 September, 2011, 02:01:43
Location: Here.
Posts: 1420


Total Post Ratings: +80

View Profile WWW
« Reply #1528 on: 27 June, 2012, 20:32:43 »
0

(This question is directed toward Deep Thought, but if anybody could answer it, that would be great)

I was trying to figure out how to save a highscore within the program, rather than in an appvar, so I looked at the snakecaster source to try to figure it out.
I'm pretty sure that I got everything else working, except for this one line of code.

1
2
:GetCalc(E8478)+GDB3-E9D93->Q     //Where E is the little E on calc (2ND + , )
This is what 'gets' the highscore at the beginning of the program, but I'm unsure of exactly what all the stuff is for. (and why it's not working for me)
« Last Edit: 27 June, 2012, 20:35:25 by parserp » Logged

ticalc.org | Cemetech | TI-Freakware | casiocalc.org

My New Website!
Spoiler for The Rest:



A useful tool
Spoiler for bands:
Five Finger Death Punch
Disturbed
Slipknot
Linkin Park
Avenged Sevenfold
Breaking Benjamin
Skillet
30 Seconds to Mars
aeTIos
You got stair'd!
LV12 Extreme Poster (Next: 5000)
************
Online Online

Gender: Male
Last Login: Today at 08:43:47
Date Registered: 15 September, 2010, 06:00:00
Location: Netherlands, Overijssel
Posts: 3106


Total Post Ratings: +120

View Profile
« Reply #1529 on: 27 June, 2012, 20:44:07 »
0

Well, what I would do is creating a str/gdb/pic (w/e) and store the highscore in that since when you write to a string/ w/e ya chose (basically it's the same) you use writeback. I have never really used it, tho.
Logged

If something above sounds rude, feel free to vote it down, it was not meant to be rude<<lolol
--Always stay relAXEd!--


Spoiler for Hidden:


[







Spoiler for Still Alive:
This was a triumph.
I'm making a note here: HUGE SUCCESS.
It's hard to overstate my satisfaction.

Aperture Science:
We do what we must because we can.
For the good of all of us
Except the ones who are dead.

But there's no sense crying over every mistake
You just keep on trying till you run out of cake
And the science gets done and you make a neat gun
For the people who are still alive.

I'm not even angry.
I'm being so sincere right now.
Even though you broke my heart and killed me.
And tore me to pieces.
And threw every piece into a fire.
As they burned it hurt because
I was so happy for you.

Now these points of data make a beautiful line
And we're out of beta we're releasing on time.
So I'm GLaD I got burned think of all the things we learned
For the people who are still alive.

Go ahead and leave me.
I think I prefer to stay inside.
Maybe you'll find someone else to help you.
Maybe Black Mesa -
THAT WAS A JOKE. HA HA, FAT CHANCE.
Anyway, this cake is great:
It's so delicious and moist.

Look at me still talking when there's science to do.
When I look out there it makes me GLaD I'm not you.
I've experiments to run there is research to be done
On the people who are still alive

And believe me I am still alive.
I'm doing science and I'm still alive.
I feel FANTASTIC and I'm still alive.
While you're dying I'll be still alive.
And when you're dead I will be still alive.

Still alive
Still alive
Pages: 1 ... 100 101 [102] 103 104 ... 110   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.286 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.