Language…
26 users online: Anas, AnunnakiGirl,  Atari2.0, CharlieUltra, CourtlyHades296, Fozymandias, furario, Green, King-Raze, mmmdoggy, Mohamad20ZX, Natsuz2, NewPointless, Papangu, playagmes169, SAMYR DUTRA ARAUJO,  Sayuri, Scags, signature_steve, Skewer, SMW Magic, steelsburg,  Telinc1, TheBubbster123, TrashCity, yoshisisland - Guests: 294 - Bots: 476
Users: 64,795 (2,369 active)
Latest user: mathew

uberasm hdma error

i made some hdma with effect tool but when i insert it with uberasm also when the effect was generated there was no init code or main code also heres the HDMA code
This is my non existent layout I plan on adding one soon.. or never

I have a discord server, feel free to join if you want
Use this code instead:

Code
init:
	REP #$20
	LDA #$3202
	STA $4330
	LDA #.RedGreenTable
	STA $4332
	LDY.b #.RedGreenTable>>16
	STY $4334
	LDA #$3200
	STA $4340
	LDA #.BlueTable
	STA $4342
	LDY.b #.BlueTable>>16
	STY $4344
	SEP #$20
	LDA #$18
	TSB $0D9F
	RTL


(I just changed the RTS and added a init label)
Sorry but the HDMA does not show up in my level for some reason

(btw im using SA-1 but im not sure if the code is already converted)
This is my non existent layout I plan on adding one soon.. or never

I have a discord server, feel free to join if you want
Code
init:
	REP #$20
	LDA #$3202
	STA $4330
	LDA #.RedGreenTable
	STA $4332
	LDY.b #.RedGreenTable>>16
	STY $4334
	LDA #$3200
	STA $4340
	LDA #.BlueTable
	STA $4342
	LDY.b #.BlueTable>>16
	STY $4344
	SEP #$20
	LDA #$18
	TSB $0D9F|!addr
	RTL

This should work with sa-1
My Youtube channel

Currently working on:
Project C

Finished project:
What did you change with the code since i want to know so i can do this for the future if i ever need hdma with sa-1
This is my non existent layout I plan on adding one soon.. or never

I have a discord server, feel free to join if you want


The only difference is this line:

Code
	TSB $0D9F|!addr

It's related to the way SA-1 remaps addresses. Addresses in the range of $0100-$1FFF need to have the "|!addr" bit added after them (some tools, like Pixi, use !Base2 instead of !addr).

As an alternative, you can also manually change the address by adding 0x6000 to it (i.e. $0100-$1FFF become $6100-$7FFF); that's what the !addr bit automatically handles for you. I personally think you should stick to the define wherever possible, because it's easier to correct any errors later if you mis-convert something.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Hi guys I wanted to know that when I used with custom powerups and it crashes the game of my favorite school and HDMA
My released ROM hack: Yoshi Saves Summer Vacation