Banner
Views: 235,923,988
Time: 2013-05-19 06:22:43 PM
23 users online: BigDiesel2m, o DDM295, Donaldthescotishtwin, o Ersanio, ggamer77, Hawthorne, Koopster, leafbarrett, MarioUnlimited, Masterlink, MaxodeX, Phantom Kid, PlzHitChris, Purple Rex, o Richard Nixon, o ShadowPhoenix, silverthundr, o Tahixham, TanookiMan, o Tokiko, TomPhanto, UED, Z0mbie1337 - Guests: 39 - Bots: 13Users: 22,845 (1,295 active)
Latest: MarioUnlimited
Tip: Read the F.A.Q. before/after registering.
LevelNames v2.0 [Now with more names!]
Forum Index - SMW Hacking - Resource and Tool Releases - LevelNames v2.0 [Now with more names!]
Pages: « 1 2 »
Hm, that's weird. It works fine for me with all levels. PM me about the steps you did and we shall find a solution for this.
I felt like making a block that requires a few opcodes and a table, instead of mass LDA and STA. I'll release this public. It is for smkdan's Blocktool Super Deluxe:

Code
!TableBytes = DATAEND-DATA JMP MarioBelow : JMP MarioAbove : JMP MarioSide JMP Return : JMP Return : JMP Return : JMP Return MarioAbove: MarioBelow: MarioSide: LDA #$01 STA $7FFF0F PHB REP #$30 ;16-bit AXY LDA.w #!TableBytes ;Amount of bytes to transfer LDX.w #DATA ;Low + High bytes of src LDY.w #$FF00 ;Low + High bytes of dest db $54,$7F,DATA>>16 ;You don't need to set the bank manually SEP #$30 ;8-bit AXY PLB Return: RTL ;LEVEL NAME DATA GOES HERE. --v DATA: db $FC,$1C,$0A,$1F,$0E,$FC,$22,$18,$1E,$1B,$FC,$1D,$12,$16,$0E,$FC db $0B,$22,$FC,$1E,$1C,$12,$17,$10,$FC,$16,$1F,$17,$28,$28,$FC,$FC DATAEND:


Quote this post to copy and paste. Something is messed up with copy-pasting from code tags.

EDIT: In case you are lazy to quote this post, you can download the ASM file here.

EDIT2: I manually counted the bytes. This code saves in total 141 bytes.

LDA #$xx STA $7FFFxx = 6 bytes
6 Bytes *32 (since 32 letters) = 192 bytes

My code from PHB to PLB uses 19 bytes.

192 - 19 = 173 bytes.

Table is 32 bytes long.

173 - 32 = 141 bytes
141 bytes of data is saved by using this code.
Last edited on 2008-08-15 08:02:16 AM by Ersanio.
Pages: « 1 2 »
Forum Index - SMW Hacking - Resource and Tool Releases - LevelNames v2.0 [Now with more names!]

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 29

Menu