Banner
Views: 793,705,742
Time:
15 users online:  bebn legg, BlueYoshi - 57EML, Bryan Blackner, CapitanFrio09, Daizo Dee Von,  Erik, FailSandwich, Felines, Isikoro, jc5500, Mariotag1,  Ninja Boy, OhMuramatsu, Sixcorby, Yume Nikki Fan - Guests: 55 - Bots: 184 Users: 41,427 (1,483 active)
Latest: Jose652003
Tip: Verify your ROM is unedited by using ROMclean.Not logged in.
LevelNames v2.0 [Now with more names!]
Forum Index - SMW Hacking - Resource & 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.
Pages: « 1 2 »
Forum Index - SMW Hacking - Resource & 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 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • SMBX Community
  • ROMhacking.net
  • MFGG