Author Topic: ASMPrgm command hex codes?  (Read 12678 times)

0 Members and 1 Guest are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: ASMPrgm command hex codes?
« Reply #15 on: April 05, 2012, 12:45:13 pm »
Xeda how did you learn the hex codes? I think that I might try to do that depending on how long it would take to learn the basics of it.
It is the same than learning ASM just that you replace the commands by their hex equivalents (like "ret"==C9 or "xor a"==AF)
Yes, that is correct :) However, the advantage to learning the hex is that it helps you optimise and understand how the z80 works (also, it makes self modifying code a breeze). I mentioned the tutorial that I started and have yet to complete. I attached it to this post, so hopefully that can help. Really, it is a lot easier than it might sound because the opcodes have lots of patterns in them. For example:
Code: [Select]
jr nz,* == 20**
jr z,*  == 28**
jr nc,* == 30**
jr c,*  ==  38**

You will probably need a chart, too, to get convert between hex and mnemonics. I also attached the one I made which also includes a quick breakdown of what each type of instruction does. Also, if it works for your spreadsheet viewer thing, I attached some sticky notes to a bunch of the cells to give more specific info if you hover the mouse over it (I don't think it works for all file types).

Offline spud2451

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +3/-3
  • Life is simple, but we make it complicated ~conf.
    • View Profile
    • Red Rock Creative [Free Custom Websites]
Re: ASMPrgm command hex codes?
« Reply #16 on: April 09, 2012, 11:40:36 am »
Thanks Xeda but I decided to use CelticIII for now while I learn ASM to make Fittle better.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: ASMPrgm command hex codes?
« Reply #17 on: April 09, 2012, 12:17:36 pm »
Thanks Xeda but I decided to use CelticIII for now while I learn ASM to make Fittle better.
Good idea, actually. Celtic III is what helped me learn how to do things like SMC, and how to count and edit bytes and whatnot. It really helped me to use assembly. I used it to do things like gett eh hex of an assembly program to see how it was structured and whatnot and that really helped :)