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.
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?
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).
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
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?
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.
I'm not using Pt on, i'm trying to diysplay that sprite out of a binary code, and that doesn't work.
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.
what does ΔList( do?
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
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?
What do you mean? You can always use bit-level instructions in assembly, but I don't know what you are trying to accomplish.
A sprite editing program, and for that i need to change some 1s/0s while the program runs
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.
Well, I want to make that the sprite editor can make grayscale sprites
The one I linked you to does both grayscale and black+white. Also, moar grammar.
Ok, Then I use yours. And sorry 'cause of grammar, I'll try to do better. Smile
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
Well, another thing: how does Pt-Mask work?
I'm not sure. I've never used it; I prefer to resort to alternative means of masking sprites.
  
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 ... 10, 11, 12  Next
» View previous topic :: View next topic  
Page 5 of 12
» All times are UTC - 5 Hours
 
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

 

Advertisement