Language…
11 users online: Batata Douce, crocodileman94, Darolac, DasFueller, Dzing, Gamet2004, Hammerer,  icrawfish, jump_run_repeat,  Nanako, Rykon-V73 - Guests: 282 - Bots: 331
Users: 64,795 (2,377 active)
Latest user: mathew

ASM Projects show-off thread

  • Pages:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 155
  • 156
  • 157
Originally posted by Roy
Anyway, during such an interrupt (BRK causes one), a few things get pushed on the stack: return address (24-bit) and I also believe processor flags, but I'm not 100% certain of this.


Yes. The interrupt pushes the processor flags, then the return address. This is a 24-bit address in native mode or a 16-bit address in 6502 emulation mode; Super Mario World uses native mode. See page 391 of Programming the 65816.

You can use RTI without an interrupt, if you push the correct stuff. For example, this patch (for xkas v0.12 against a clean ROM) does work.

Code
// use-rti.s
arch snes.cpu
header
lorom

// Disable the Y button. Use the RTI opcode.

define free_space $0ff000

org $00a299
	// each frame, after reading controller but before moving Mario
	jsl	{free_space}		// displaces jsl $00f6db

org {free_space}
	phk
	pea	+			// push 24-bit return address
	php				// push processor flags
	bra	disable_y_button
+;	jml	$00f6db			// tail call for displaced jsl

disable_y_button:
	// Remove flag $80 (the Y or X button) from the controller data
	// in DP $15 and the controller (this frame) data in DP $16.
	//
	rep	#$20			// 16-bit A
	lda.b	$15			// load DP $15, $16
	and.w	#$bfbf			// no Y or X button $80
	sta.b	$15			// store DP $15, $16
	rti				// restore 8-bit A, return


Congratulations to Pseudonym for unbreaking the BRK.

Hacking Super Mario World since 28 February 2009
SMWDISC
Welcome to spike hell!
(The slowdown in the vid is not in-game.)

So now you might be thinking, holy hell. How could he put so many sprites in one screen?
Well, I didn't use regular sprite table $14C8,x. Instead, I used the cluster sprite table, $1892,x. I hijacked the pointer to use custom cluster sprites.
Advantages of this:
- Minimal slowdown. (It's sort of an extended sprite, after all.)
- 20 sprite slots! (As opposed to 12 at max for $14C8,x.)

A disadvantage is that ground detection does not exist. But it could be coded inside the sprite.

You could use a custom sprite or so to generate these sprites. I might release the patch soon. This will be a demo cluster sprite.
--------> Don't follow "Find Roy's Dignity", my hack. Because it's pretty outdated. <--------
I can see it now.... SUPER SPAM WORLD *shot*

Seriously, that is awesome. The way you used them, it'll be good for a collapsing castle with rocks falling :)

So only custom sprites can use this table, or can you repoint one of the original sprites to use the table as well?
You can only use sprites from $1892,x, or custom cluster sprites. Search for it in the RAM map. I coded these spikes myself. They do NOT use the normal falling spike. (Much like the fact that the 1UP from the bonus game does NOT use the normal 1UP sprite.)
--------> Don't follow "Find Roy's Dignity", my hack. Because it's pretty outdated. <--------
That is pretty awesome. I didn't even know that sprite type existed... Danmaku Mario, anyone? *shot*


Also, something of my own:

Layer 2 is such fun to work with.
My YouTube channel
Get the official ASMT resource pack here!

Heh, and right after I noticed all those brand-new "cluster sprite" tables in my updated printed copy of the RAM map. Too bad we can't use sprite slots E0-FF...custom cluster sprites in the remaining 32 sprite slots, anyone? (Or a patch could do it.)

----------------

I'm working on a hack! Check it out here. Progress: 64/95 levels.
WATCH MARIO OVERCOME CHOCOLATE RAIN
CLICK

(Cluster sprite made by Roy, modified by me. I plan to implement this in TMR3 in some way)
My blog. I could post stuff now and then

My Assembly for the SNES tutorial (it's actually finished now!)
Looks like Ersanio's gonna get banned again...

World Community Grid: Thread | Team
 
Er whoops I totally forgot that videos were not allowed. I'm such a hypocrite aren't I? Too bad I can't ban myself. >_> <_< edited post.

(Or I'm just tired)
My blog. I could post stuff now and then

My Assembly for the SNES tutorial (it's actually finished now!)
Looks... wooow O.o
I can easyly think of a Muncher rain. :0
Btw, seems Iceguy didn't showed his new sprite yet (you know what I'm talking about). Strange...
BTW, why did an embed video mean a ban ? :s
Originally posted by Elmoneda
BTW, why did an embed video mean a ban ? :s

It lags the page for people with a crappy computer and/or connection. People have been complaining about the lag. Pictures are fine enough though.
My blog. I could post stuff now and then

My Assembly for the SNES tutorial (it's actually finished now!)
WOW I've been busy lately!

I've made

Not one,
not two,
not even three,
but FOUR new pieces of ASM!

All but the last one can be downloaded in their respective sections; that last one is MINE! (unless your name happens to be spade, then it can be yours too)
Now with extra girl and extra hacker
Originally posted by Noobish Noobsicle

FUCK!!!! I was planning on making this! I spent so long on it, planning it out on paper, and you, you made it before I could! All my work, wasted!

World Community Grid: Thread | Team
 
Options for patches are always good, even if the functionality is similar/the same :P
Yeah, I would've, except that I couldn't find that sound anywhere in the sound effects thread in the data repository. Even if you told me, I wouldn't submit an update for something so small.
Now with extra girl and extra hacker
Video

I tried my best at making a Marchin' Milde. It's actually based on the Springboard disassembly that came with SpriteTool, and altogether, uses 2 walking frames, and 3 smashed frames. I think it came out pretty well, especially for something that took about an hour to make.



That looks pretty good, only question I have.

Does it get killed by yoshi/shell?
Anime List
Manga List
D³ Releases: RL1, [RL2], [RL3], RiS
SMWHacking? I rest my case.
SMWCentral? I leave it to rest.

  • Pages:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 155
  • 156
  • 157