News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mopoz

Pages: 1 2 [3]
41
ROM Hacking Discussion / Re: DMA problem
« on: January 20, 2011, 02:08:34 pm »
Font I took from DQ3. Thank you, DaMarsMan, I think he is not offended. =)
I replaced the background, changing the register # $ 2003 (blue), while filling the window.
I have yet to be fully not finish, still need to post the menu and battles. There used 4bpp, for a place 2bpp.
What about the window. I want to add more h-dma, to look beautiful.
What about the patch. I rewrote for hacking the ROM hirom, so it was convenient. Changed the system S-ram. Because in Hirom address $ 30:6000.
But as completed yet, will put a patch, it will be a good occasion to re-translation.

42
ROM Hacking Discussion / Re: DMA problem
« on: January 20, 2011, 10:03:04 am »





I did it!
My first VFW!!!
I will finish for Illusion fo Gaia. ;D

43
ROM Hacking Discussion / Re: DMA problem
« on: December 16, 2010, 06:05:50 am »
Code: [Select]
jmp $e00000

org $e00000
 REP #$20
 AND #$00FF
 INY
 STA $00
 rep #$30
 stx regx ; old X
 sty regy ; old Y
 pha
 tax
 lda $e05000,x ; wight
 and #$0007
 sta vwf
 pla
 ;and #$007F
 asl
 asl
 asl
 asl
 
 adc #$4000
 sta $f0
 lda #$00e0
 sta $f2  ; e04000 = font
 ldy #$0000
 ldx $0938; x reg for save font in ram
copy:
 lda #$0000
 sep #$20
 clc
 lda [$f0],y ; copy 1 byte font 1bpp
 sta char ;
 lda #$ff
 ;lsr char
 sbc char ; 00010010 => 11101101
 
 rep #$30
 ;xba
 adc #$ff00
 sta $7eF000,x
 iny
 inx
 inx
 cpy #$0010
 bne copy
 ...
 jsl $e00800

;----------------
; DMA font      |
;----------------
org $e00800
 rep #$30
 lda $0938 ;  address in VRAM
 sbc #$0020
 clc
 lsr
 clc
 adc #$6800 ; $D000 address in Vram
 sta $2116
 lda #$0020  ;The number of bytes to send in video RAM.
 sta $4305
 lda $0938
 sbc #$0020
 adc #$f000 ;offsetes address in RAM
 sta $4302
 sep #$20
 lda #$7e
 sta $4304
 lda #$80
 sta $2115
 lda #$01
 sta $4300
 lda #$18
 sta $4301
 lda #$01
 sta $420b

vb: 
 lda $4212 ; check Vblank
 bpl vb
 
 rtl

Text output, but with a delay of ~ 1 second.

44
ROM Hacking Discussion / DMA problem
« on: December 08, 2010, 05:47:23 am »
I do VWF in the game illusion fo gaia.
Since the font in the game to boot, like a map tile, it had to be corrected.
The problem lies in the fact that sending a new font via DMA into VRAM.
In the emulator snes9x v1.51 displayed incorrectly.
And in 1.52, and Geiger's debugger, Tracer, bsnes and the PSP everything works fine.
What's the problem? Not the correct code or a bug emulator?

Pages: 1 2 [3]