Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
AreaDex
DexDex
ItemDex
TMHMDex
TypeDex
More

Major Glitches
Trainer escape glitch
Old man glitch
Celebi Egg glitch
SRAM glitch
Buffer overflow techniques
Pomeg glitch data corruption (Glitzer Popping)
Tweaking
Pokémon cloning
Select glitches (Japan)
Time Capsule exploit
Arbitrary code execution
More

Other Glitch Categories
Glitches by generation
Japan-only/language specific glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Recurring glitches
More

References
Pokémon GameShark codes
The Big HEX List
GB programming
Curiosities
Debugging features
Error traps
Non-glitch exploits
Pokémon glitch terminology
Unused content and prerelease information
More

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site Source Code

Search Wiki

 

Search Forums

 

Author Topic: Player Coordinates RAM Writer question  (Read 71 times)

0 Members and 1 Guest are viewing this topic.

metalmario32

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Player Coordinates RAM Writer question
« on: August 07, 2018, 03:19:19 pm »
On the Player coordinates RAM writer page (https://glitchcity.info/wiki/Player_coordinates_RAM_writer) items are detailed in which you can write to memory. However, I have no idea where the memory write starts from, and I want the memory writer to start from DA80 so I can write offgao's memory editor to execute with glitch item -g m (hex:6A). If the memory writer doesn't start from DA80, is there a way to change that so it does start from DA80?

Edit: The first byte wrote is to D901, I looked harder on the page. I still want to change this to DA80, so is there a way?
« Last Edit: August 07, 2018, 03:20:22 pm by metalmario32 »

Evie Torchic the Glitch Scientist

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Thank you for this lovely artwork Nyapon!
    • View Profile
Re: Player Coordinates RAM Writer question
« Reply #1 on: August 07, 2018, 04:51:47 pm »
On the Player coordinates RAM writer page (https://glitchcity.info/wiki/Player_coordinates_RAM_writer) items are detailed in which you can write to memory. However, I have no idea where the memory write starts from, and I want the memory writer to start from DA80 so I can write offgao's memory editor to execute with glitch item -g m (hex:6A). If the memory writer doesn't start from DA80, is there a way to change that so it does start from DA80?

Edit: The first byte wrote is to D901, I looked harder on the page. I still want to change this to DA80, so is there a way?

I think there's definitely a way as I believe I changed the starting point before. I'm afraid I don't know from memory how to do it though, sorry. The best way may be to set up the items in BGB emulator and then view the code or convert the items into ASM by hand and analyse where it gets the D9 and 01 from. The TM17 in slot 10 looks suspicious because TM17 has the ID D9, so that may be where it gets D9 from, but as for the 01 I'm less sure.

Worst case scenario though you can possibly use CopyData (call 00B5 for Blue/(Red?) according to my notes) to move the data to DA80, where bc is the bytes to copy, hl is the source and de is the destination.

Hope this helps, and hope you're able to find the answer!
Hi!

I'm Evie.

I'm a transgender person, but any pronouns are fine. She/her preferred.

Unfortunately due to legal concerns I won't be using emulators and unauthorised copies of ROMs anymore, just real hardware with official cartridges and a cheating device (Xploder) to aid research, sorry.

Online I most often use the username Torchickens or Chickasaurus.

Ah.. koucha ga oishii ♪





Thanks Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).




Contact:
If you like, please contact me by private message here on the forums as I no longer check other places very often.

YouTube: http://www.youtube.com/user/ChickasaurusGL

I like to collect interesting video games. ^_^
https://www.vgcollect.com/Torchickens

Fun times come and go, we may argue what is the point if nothing in this world is permanent; and all energy is believed to be subject to transformation. I guess in the temporary absence of it though, we value those times more and even though some things seem to be lost, they return in other forms.

metalmario32

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Player Coordinates RAM Writer question
« Reply #2 on: August 12, 2018, 01:48:50 pm »
I'll just use CopyData, thanks! Also what is CopyData in Yellow?

Edit: On my "Alternate Catch 'em All" question, I found that CopyData is 00:00B1 in Yellow. But what is CopyData.copybytes (at 00:00C1) and FarCopyData (at 00:009D)?
« Last Edit: August 12, 2018, 01:54:33 pm by metalmario32 »

Evie Torchic the Glitch Scientist

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • Thank you for this lovely artwork Nyapon!
    • View Profile
Re: Player Coordinates RAM Writer question
« Reply #3 on: August 12, 2018, 01:57:08 pm »
I'll just use CopyData, thanks! Also what is CopyData in Yellow?

All right then!

It's 00B1.

Template:

ld bc,(number of bytes)
ld hl,(source)
ld de,(destination)
call 00b1
ret

Edit: On my "Alternate Catch 'em All" question, I found that CopyData is 00:00B1 in Yellow. But what is CopyData.copybytes (at 00:00C1) and FarCopyData (at 00:009D)?

Good question. CopyData.copybytes confused me too. I'm unsure but it seems like it's in the middle somewhere of the CopyData routine. I think FarCopyData might be used if copying the data requires a bank switch (i.e. if it's in region 4000-7FFF).
« Last Edit: August 12, 2018, 02:00:10 pm by Evie Torchic the Glitch Scientist »
Hi!

I'm Evie.

I'm a transgender person, but any pronouns are fine. She/her preferred.

Unfortunately due to legal concerns I won't be using emulators and unauthorised copies of ROMs anymore, just real hardware with official cartridges and a cheating device (Xploder) to aid research, sorry.

Online I most often use the username Torchickens or Chickasaurus.

Ah.. koucha ga oishii ♪





Thanks Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).




Contact:
If you like, please contact me by private message here on the forums as I no longer check other places very often.

YouTube: http://www.youtube.com/user/ChickasaurusGL

I like to collect interesting video games. ^_^
https://www.vgcollect.com/Torchickens

Fun times come and go, we may argue what is the point if nothing in this world is permanent; and all energy is believed to be subject to transformation. I guess in the temporary absence of it though, we value those times more and even though some things seem to be lost, they return in other forms.

metalmario32

  • GCLF Member
  • Offline Offline
  • CHARIZRAD 'M ROXORX or is it.
    • View Profile
Re: Player Coordinates RAM Writer question
« Reply #4 on: August 12, 2018, 02:30:24 pm »
Hmm. Perhaps copybytes is what actually copies the data.