I have a question, I'm trying to make an mt3 song on calc using Mimas, but I don't know how to define "note(l1,l2,r1,r2,time)" because I'm not sure if this is an equate or a macro.
From what my basic knowledge of assembly tells me I would think it's a macro if it has parenthesis.
Only on Mimas I don't think you need parenthesis, so if this is intended for a different assembler then it's probably a macro.

Equates are normally
Code:
name EQU 5 ;can be whatever needed
or something like this.

Hopefully I could help Smile
That looks like a macro, and Mimas doesn't support macros. However, you can look at the macro definition and simply expand the macro code yourself. For example, a macro that looks like
Code:
#macro dataThingy(x, y, z)
    .db 30h, x
    .dw y
    .db z, 0h
#endmacro
and you want to use as
Code:
dataThingy(someConstant1, someConstant2, someConstant3)
would be expanded manually as
Code:
    .db 30h, someConstant1
    .dw someConstant2
    .db someConstant3, 0h
DrDnar wrote:
That looks like a macro, and Mimas doesn't support macros. However, you can look at the macro definition and simply expand the macro code yourself. For example, a macro that looks like
Code:
#macro dataThingy(x, y, z)
    .db 30h, x
    .dw y
    .db z, 0h
#endmacro
and you want to use as
Code:
dataThingy(someConstant1, someConstant2, someConstant3)
would be expanded manually as
Code:
    .db 30h, someConstant1
    .dw someConstant2
    .db someConstant3, 0h


Oh, alright thanks, that makes sense, I'll try that.
  
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
Page 1 of 1
» 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