CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 125 users online: 5 members, 89 guests and 31 bots.
Members: CalebHansberry, Link, rbratic, Tari.
Bots: VoilaBot (4), MSN/Bing (1), Magpie Crawler (1), VoilaBot (4), Googlebot (20), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
» View previous topic :: View next topic  
Author Message
Ashbad


... I think redheaded girls are kind of cool


Joined: 01 Dec 2010
Posts: 2417
Location: Stomp Stomp Stomp, The Idiot Convention

Posted: 22 Sep 2011 02:27:11 pm    Post subject:

Glad to see your progression Sorunome Smile pointers are indeed very important, and without knowledge of them you won't be able to make much in Axe, or possibly in the future for you, Assembly. Do you have any questions now that you've read up on them?

On a side note, didn't BrandonW make a USB driver before that everyone seems to use? If he did and I remember correctly, I suggest using that; working with it in Axe will likely inflate your output binary size and be a pain to work with, but at least a decent amount of the work would have been done for you already.
_________________
-Ashbad
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 08:41:23 am    Post subject:

I got a different question: How do you make/use subroutines? I just know that at the beginning of a subroutine must be Lbl (I think) And at the end RETURN. But I don't know how to call them, or am I even wrong with that?
_________________



Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 23 Sep 2011 08:57:30 am    Post subject:

You use labels to create the subroutine, and you call them by using sub(<label name>). For example, if you have a label named ABC, you would use sub(ABC).
_________________
CALCnet Tournament-38%


deviantArt
Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2958

Posted: 23 Sep 2011 09:00:40 am    Post subject:

And, to access the arguments, you use r1-r6 (found through [Vars][Right][3]) inside the function. For instance,
Code:
Sub(ABC,4,2,1
Return
Lbl ABC
Disp r1>Dec
Disp r2>Dec
Disp r3>Dec
Return
Also, to return values, you have that value be the last thing calculated, for instance:
Code:
Sub(ADD,3,4)->A
Disp A>Dec
Return
Lbl ADD
r1+r2
Return

_________________
http://tanner.myserverathome.com
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 10:03:30 am    Post subject:

I get it! Thanks a lot! And I have straight away my next question! Razz
Well, I got this code:

Code:
:.AAB
:.64xbinary for 8x8pic
:[1010101010101010101010101010101010101010101010101010101010101010]->GDB1
:For(C,0,7
:For(D,0,7
:{C*8+D+GDB1}r->E  //the radian "r"
:If {E}r  //the radian "r"
:Pxl-On(D+10,C+10
:End
:End
:End
:DispGraph

Well, it just displays a black 8x8 sprite instead of a checked one. Please don't say that it is much easyer with a hexadecimal and Pt-On(, coz I want to test it this way and I want to do a sprite editing program and there I need it this way. So does anyone know why it just displays a black sprite?
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 10:32:35 am    Post subject:

I'm going to go against your instructions and tell you that you need to do hexadecimal with Pt-On(. If you don't want to use hex, then do this:

Code:
ΔList(10101010b,10101010b,10101010b,10101010b,10101010b,10101010b,10101010b,10101010b

But that's stupid. Use hex.
_________________
Drew "Sir Cmpwn" DeVault
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 10:36:06 am    Post subject:

I'm not using Pt on, i'm trying to diysplay that sprite out of a binary code, and that doesn't work.
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 10:41:46 am    Post subject:

You shouldn't be trying that! It's just a bad idea. If you want to use binary, change this line:

Code:
[1010101010101010101010101010101010101010101010101010101010101010]->GDB1

to this:

Code:
ΔList(10101010b,01010101b,10101010b,01010101b,10101010b,01010101b,10101010b,01010101b→GDB1

And use Pt-On. Alternatively, you can use Pt-Off and Pt-Change.

Also, spelling and grammar are not something to be ignored.
_________________
Drew "Sir Cmpwn" DeVault
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 10:44:22 am    Post subject:

what does ΔList( do?
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 10:46:28 am    Post subject:

It is the same as [], but allows you to list numbers that aren't in hex. It gives you the ability to use binary, because this:

Code:
[1010101010101010101010101010101010101010101010101010101010101010]->GDB1

will produce hex: 0x10, 0x10, 0x10, ...

Sorunome wrote:
what does ΔList( do?

*What
_________________
Drew "Sir Cmpwn" DeVault
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 10:48:57 am    Post subject:

Oh, I think I get it. Is it then still possible to just change one "1" to a "0" easely and the other way round?
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 10:49:46 am    Post subject:

What do you mean? You can always use bit-level instructions in assembly, but I don't know what you are trying to accomplish.
_________________
Drew "Sir Cmpwn" DeVault
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 10:53:57 am    Post subject:

A sprite editing program, and for that i need to change some 1s/0s while the program runs
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 10:58:38 am    Post subject:

What I did for mine was modify the screen using Pxl-On and Pxl-Off, then copying the data from the screen buffer. However, I do have a very good sprite editor for Axe out there, that will export sprite sheets into Axe-ready include files. You can get it here. We all know that the community doesn't need another sprite editor.
_________________
Drew "Sir Cmpwn" DeVault
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 11:05:13 am    Post subject:

Well, I want to make that the sprite editor can make grayscale sprites
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 11:05:54 am    Post subject:

The one I linked you to does both grayscale and black+white. Also, moar grammar.
_________________
Drew "Sir Cmpwn" DeVault
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 11:07:39 am    Post subject:

Ok, Then I use yours. And sorry 'cause of grammar, I'll try to do better. Smile
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 11:09:44 am    Post subject:

Sorunome wrote:
Ok, Then I use yours. And sorry 'cause of grammar, I'll try to do better. Smile

In the interests of improving your grammar:
Sorunome wrote:
Ok, Then I'll alternative: I will use yours. added spaceSorry I have bad grammar, I'll try to do better. Smile

_________________
Drew "Sir Cmpwn" DeVault
Back to top
Sorunome


Expert


Joined: 22 Feb 2011
Posts: 636
Location: Somewhere out there

Posted: 23 Sep 2011 11:17:37 am    Post subject:

Well, another thing: how does Pt-Mask work?
_________________



Back to top
SirCmpwn


Coding Knight


Joined: 06 Feb 2010
Posts: 1477
Location: Colorado Springs

Posted: 23 Sep 2011 11:22:26 am    Post subject:

I'm not sure. I've never used it; I prefer to resort to alternative means of masking sprites.
_________________
Drew "Sir Cmpwn" DeVault
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
» View previous topic :: View next topic  
Page 5 of 9 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.038326 seconds.