Language…
14 users online:  Deeke, Dennsen86, eltiolavara9, Green, Hayashi Neru, Heitor Porfirio, Jolpengammler, LazyRuns, neidoodle, playagmes169, Serena, ShoopDaWhoop, SMWizard, YuriGamer - Guests: 252 - Bots: 312
Users: 64,795 (2,376 active)
Latest user: mathew

Uberasm code placement

I am familiar with the uberasmtool, i know how to use it for the most part. I'm trying to insert Coin Outline which is an outline of a coin that turns into a coin, like in New Super Mario Bros Wii. The block was easy to insert, but the code for uberasm is this:
Code
; Please insert this code in your uberASM code folder.

!RAM = $7F8600

global_code:
		LDX #$EB		; 48 coin slots
		
	.loop	LDA !RAM,x		; If the timer is nonzero,
		BEQ .next
		
		DEC			; decrement timer.
		STA !RAM,x
		BNE .next		; If the timer turned to zero,
		
		REP #$20
		LDA !RAM+1,x		; Get X position,
		STA $9A
		LDA !RAM+3,x		; Get Y position,
		STA $98
		SEP #$20
		
		LDA #$06
		STA $9C
		JSL $00BEB0		; And create a coin
		
	.next	DEX #5			; Check the next slot
		CPX #$FB
		BNE .loop
		
		RTS 

All it says is put it in the code folder. I tried putting this code in the global code asm file, but it didn't do anything. Can someone help me figure out where this code is supposed to go?
Replace "global_code:" with "main:", and change the "RTS" with "RTL". Then, just insert it either as levelASM (if you only want it in certain levels) or as gamemode ASM, in gamemode 14 (if you want it for all levels).
thank you so much! :3