Edited by Animemaster, 23 March 2012 - 10:04 PM.
Basic Questions and Answers Thread
#991
Posted 23 March 2012 - 10:04 PM
#992
Posted 24 March 2012 - 10:16 AM
#993
Posted 26 March 2012 - 07:05 AM
#994
Posted 26 March 2012 - 11:54 AM
It's not a block exactly, the file is named "lzhdoor.bin" and it's in the artnem folder.I was searching yesterday and I couldn't find it. Can someone tell me where the art file of the Lz block that falls is?
#995
Posted 26 March 2012 - 02:26 PM
Thanks. That's what I was looking for.It's not a block exactly, the file is named "lzhdoor.bin" and it's in the artnem folder.
I was searching yesterday and I couldn't find it. Can someone tell me where the art file of the Lz block that falls is?
#996
Posted 06 April 2012 - 07:33 PM
#997
Posted 06 April 2012 - 08:50 PM
Edited by Dandaman955, 06 April 2012 - 08:51 PM.
#998
Posted 07 April 2012 - 01:20 AM
#999
Posted 07 April 2012 - 03:33 AM
#1000
Posted 07 April 2012 - 03:43 AM
#1001
Posted 07 April 2012 - 11:06 AM
http://sonicresearch.org/forums/index.php?app=forums&module=extras§ion=boardrulesHow about you read these too whilst you're at it? One word posts don't fly here along with your quality of typing.thanks
#1002
Posted 07 April 2012 - 05:58 PM
#1003
Posted 12 April 2012 - 03:52 PM
Is possible to load the Sonic emblem of the title screen of Sonic 1 in SonMapEd?
#1004
Posted 12 April 2012 - 07:45 PM
http://info.sonicretro.org/PlaneED
For information on the plane mapping format, check out:
http://sonicresearch...?showtopic=2199
#1005
Posted 13 April 2012 - 07:54 AM
#1006
Posted 24 April 2012 - 09:35 PM
I'm using the Sonic 2 disassembly by Xenowhirl.
; =========================================================================== PCM: macro Pitch, Location dc.w (((((Location&$000000FF)<<$08)+((Location&$00007F00)>>$08))!$0080)&$FFFF) dc.w (((((((Location_End-$02)-Location)&$000000FF)<<$08)+((((Location_End-$02)-Location)&$00007F00)>>$08))/$02)&$FFFF) dc.b Pitch dc.b ((Location&$00008000)>>$08) dc.b ((Location&$003F0000)>>$10) dc.b $00 even endm ; --------------------------------------------------------------------------- incpcm: macro File File: binclude "sound/DAC/File.bin" dc.b $80,$80 File_End: even endm NULL: NULL_End: ; =========================================================================== PCM_Table: PCM $19, BassDrum ; 81 ; =========================================================================== incpcm BassDrumWhen trying to build it, I errors about BASSDRUM_End not being defined, so including the file works. It is correct that there are no backslashes, btw. The macro assmebler doesn't need them.
It works perfectly, if I add
BassDrum_End:after the incpcm command, but that's not the intention of the incpcm macro.
So I know that it fails to convert the label File_End to BassDrum_End in the incpcm macro. It works however in the PCM macro.
Any ideas how I could get this to work correctly?
If nothing works, I'll make a workaround and add an additional argument to the incpcm macro. (like incpcm BassDrum, BassDrum_End)
Edited by ValleyBell, 25 April 2012 - 06:29 AM.
#1007
Posted 24 April 2012 - 09:57 PM
As your samples don't have a header, and as it seems you do not require keeping them in banks, it seems that the macro for the "incpcm" has virtually no use at all, I mean... writing out:
SampleTwo binclude "Filename" SampleTwo_End:
Is no difficult that writing out:
incpcm Filename
The "PCM" macro is also to no use, due to lack of backwards slashes, again, they were needed, an example:
dc.w Location_End
The word Location will be replaced with the string of the sample's name, so if the sample were called "SampleTwo", the assembler would convert it to:
dc.l SampleTwo_End
Before assembling, without the backward slashes, it would assume that it's just words to be assembled and nothing more:
dc.l Location_End
Unless you "add" a Location_End to the macro:
PCM: macro Pitch, Location, Location_End
And pass the end location as well.
#1008
Posted 25 April 2012 - 06:34 AM
And the PCM macro is of use. It correctly converts Location_End to BassDrum_End in dc.x commands, even without backslashes, else I would get an error about Location_End not being defined. (not about BASSDRUM_End)
I just surprised me that it works in the dc.b/w commands, but not when defining a label.
Thanks anyway.
After some fiddling around (and reading the manual), I figured it out how it works:
incpcm: macro File File: LABEL * binclude "sound/DAC/File.dec" dc.b $80,$80 File_End: LABEL * even endmIn AS labels in macros are local by default. LABEL * makes them global.
btw: AS has no filesize() function, so I can't have use it anyway.
1 user(s) are reading this topic
0 members, 0 guests, 1 anonymous users









