Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2014-01-12 04:12:22

Kumar
Member
From: UNOVA
Registered: 2013-03-18
Post 235/383
Website

ASM help

I want to ask a question about ASM , my question is :
what are those ld , dr etc.?(if possible give list of these commands)
What is pushing and popping?

Thanks in advance.

Last edited by Kumar (2014-01-12 04:13:38)

Offline

#2 2014-01-12 07:29:15

Hat
Member
Registered: 2013-02-04
Post 87/118

Re: ASM help

http://hax.iimarck.us/post/12336/#p12336 (GameBoy Assembly section)

Search the board if something isn't clear.

Offline

#3 2014-01-12 12:23:44

comet
Member
Registered: 2012-04-09
Post 356/679

Re: ASM help

The fastest way to learn how stuff works is by looking at real code. Chances are something you're trying to do has already been done and you can just call a stock function.


Kumar wrote:

what are those ld , dr etc.?(if possible give list of these commands)

http://marc.rawer.de/Gameboy/Docs/Opcodes.htm


Kumar wrote:

What is pushing and popping?

If you want to save a register pair for later, you can do

push hl
do stuff with hl
pop hl

Last edited by comet (2014-01-12 12:31:04)

Offline

#4 2014-01-12 12:24:38

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 160/430
Website

Re: ASM help

http://www.pastraiser.com/cpu/gameboy/g … codes.html

ld <x>,<y> loads y into x. x can be a register, a register pair, an address, or the value of a certain address. y can also be a literal.

push <register> saves the content of the register into the stack, so that you can recover its content later with pop <register>, regardless of what you did with the register in-between. More or less.

Offline

#5 2014-01-12 13:30:18

Hat
Member
Registered: 2013-02-04
Post 88/118

Re: ASM help

cit_8_bit_theatre_-_welcome_to_corneria_-_urge_to_kill_rising.png

Offline

#6 2014-01-12 14:51:58

Kumar
Member
From: UNOVA
Registered: 2013-03-18
Post 236/383
Website

Re: ASM help

I really want to learn ASM? I can't understood a word {except ragisteries}. How to start with it?

Offline

#7 2014-01-12 14:59:31

RaltVus
Member
From: Twinleaf Town (Sinnoh)
Registered: 2013-06-28
Post 524/548
Website

Re: ASM help

I have the same problem @Kumar, i tried so much time to put the running shoes but when i'm in the middle of the tutorial...I get wrapped haha.


RaltVus is back.

I'm not hacking in the moment, but i always had ideas to give. Just ask me if you want.

MY FACEBOOK

Offline

#8 2014-01-12 15:19:22

Danny-E 33
Administrator
Registered: 2012-06-09
Post 713/1,026

Re: ASM help

Kumar wrote:

How to start with it?

RaltVus wrote:

I have the same problem @Kumar

You guys need to stop asking questions like this. The answer for "How to start with it?" is read. Everyone has given you plenty of links and done their best to answer vague questions.
Learning this stuff isn't going to happen over night. You have to put in the effort. Try reading and then re-reading every link you can find on this information.
Then when something doesn't make sense, you can come back to this thread and ask a clear, specific question that will be easy for one of us to answer.

You said you want to know how to start with it, and this is how.


Red Hack: Pokémon Prototype

Total number of registered users: 7000+
Total number of active users: ~12

Offline

#9 2014-01-13 14:41:50

G0ld Z!
Member
From: New Bark Town
Registered: 2013-11-01
Post 38/82
Website

Re: ASM help

Kumar wrote:

How to start with it?

RaltVus wrote:

I have the same problem @Kumar

First, can your repoint and find pointers, can you make a fully good script???
If your can't make these things, is really hard it can your understand the Assemblery languaje.

Offline

#10 2014-01-13 15:58:05

Kumar
Member
From: UNOVA
Registered: 2013-03-18
Post 237/383
Website

Re: ASM help

Ya i can repoint data .

Offline

#11 2014-01-13 17:08:29

RaltVus
Member
From: Twinleaf Town (Sinnoh)
Registered: 2013-06-28
Post 527/548
Website

Re: ASM help

@Danny-E 33:
I don't made any question, just made an comment.
And i read all the stuff that they give me.


RaltVus is back.

I'm not hacking in the moment, but i always had ideas to give. Just ask me if you want.

MY FACEBOOK

Offline

#12 2014-01-13 19:13:43

Miksy91
Member
Registered: 2010-10-16
Post 2,050/2,311

Re: ASM help

It's just like Danny said,

Danny-E 33 wrote:

Learning this stuff isn't going to happen over night. You have to put in the effort.

None of you is ever going to learn how to code with z80 assembly unless you put in real effort to learn.
Read tutorials and experiment what you learn, read more, experiment with that and keep repeating this cycle until you are familiar with all you've worked with. Then you can move on into more difficult things.

And the truth is that you can't learn something just by wanting to, although wanting to put effort into it is a good start. It will take some time. What "some" here is depends on the person's abilities, and how much time s/he spends on learning process.

I'd say - until you are familiar with all kinds of data structures, you can move into investigating how the data structure is used. For example, we have the evolution/moveset table for each pokemon. And we have also a pointer table telling where the evolution/moveset data of each pokemon is. Then on the background, we have a code that uses those tables. That is the code which some might refer to as "asm" (which is a bad term since it doesn't tell anything really).

Good way to start investigating that code would be finding a "pointer". Who can guess what that pointer is / where it points to? (This is a question to kumar and others, so let them ponder for a while :) )

Last edited by Miksy91 (2014-01-13 19:20:01)

Offline

#13 2014-01-14 06:36:20

Kumar
Member
From: UNOVA
Registered: 2013-03-18
Post 238/383
Website

Re: ASM help

Thanks, all of you for links and I will learn it if I don't understand anything I will re-re-read it thanks you all and Miksy I understood what you and danny want to tell me . Thanks my friends. All of you.

Offline

#14 2014-01-16 18:09:29

Kumar
Member
From: UNOVA
Registered: 2013-03-18
Post 240/383
Website

Re: ASM help

Sorry but last question not related to asm,
what are tweaks in gold map?

Offline

Board footer

Powered by FluxBB