News: 11 March 2016 - Forum Rules

Author Topic: Re: [NES] Need help for changing text place  (Read 2040 times)

Kunio

  • Full Member
  • ***
  • Posts: 138
    • View Profile
Re: [NES] Need help for changing text place
« on: August 21, 2014, 05:34:56 am »
Here is what I did but couldn't find anything :

Name table --> First A --> Tile ID : 03 / PPU Address : 210C

**********************************

Break Point : 210C / Write / PPU Mem
$A02A:BD EA 05  LDA $05EA,X @ $0615    A:04 X:2B Y:04
$A02D:8D 06 20  STA $2006 = #$D4           A:21 X:2B Y:04
$A030:BD E9 05  LDA $05E9,X @ $
« Last Edit: August 21, 2014, 12:48:42 pm by Kunio »

Bregalad

  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
Re: [NES] Need help for changing text place
« Reply #1 on: August 21, 2014, 05:51:45 am »
You should change the address that is written to $2006, to adapt to your new position.

Kunio

  • Full Member
  • ***
  • Posts: 138
    • View Profile
Re: [NES] Need help for changing text place
« Reply #2 on: August 21, 2014, 06:38:46 am »
Here is what I did but couldn't find anything :

Name table --> First A --> Tile ID : 03 / PPU Address : 210C

**********************************

Break Point : 210C / Write / PPU Mem
$A02A:BD EA 05  LDA $05EA,X @ $0615    A:04 X:2B Y:04
$A02D:8D 06 20  STA $2006               A:21 X:2B Y:04
$A030:BD E9 05  LDA $05E9,X @ $0614     A:21 X:2B Y:04
$A033:8D 06 20  STA $2006               A:0C X:2B Y:04
$A036:BD EB 05  LDA $05EB,X @ $0616     A:0C X:2B Y:04
$A039:8D 07 20  STA $2007               A:03 X:2B Y:04

**********************************

Break Point : 0614 / Write / CPU Mem
$8F3E:A4 67     LDY $0067 = #$0C           A:04 X:2B Y:D3
...
$9B4E:98        TYA                        A:21 X:2B Y:0C
$9B4F:9D E9 05  STA $05E9,X @ $0614    A:0C X:2B Y:0C

**********************************

Break Point : 0067 / Write / CPU Mem
$8EF1:A5 5C     LDA $005C           A:47 X:47 Y:00
$8EF3:85 67     STA $0067           A:0C X:47 Y:00

**********************************

Break Point : 005C / Write / CPU Mem
$8E34:A5 5C     LDA $005C = #$08           A:07 X:07 Y:04
$8E36:AA        TAX                        A:08 X:07 Y:04
$8E37:18        CLC                        A:08 X:08 Y:04
$8E38:65 6D     ADC $006D = #$04           A:08 X:08 Y:04
$8E3A:85 5C     STA $005C = #$08           A:0C X:08 Y:04

It loads A from $005C, adds #$04 to it, and again writes to $005C?!
So what should I trace next?
From here I have no idea what to do!  :-\
« Last Edit: August 21, 2014, 12:52:43 pm by Kunio »