Is there any reference sheet I can look at that tells me all the commands just like a math reference sheet?
If I thought you would look at it and use it I would point you to clrhome's assembly table. There is also one on wikiti which tells you exactly what each thing does. I'm too lazy to dig up the links right now.
http://clrhome.org/table/ is the best IMO.
I'm sure that that will serve as a valuable resource for motivated assembly programmers, and in fact I'll have to remember that one myself for future reference. The exact behavior of microcode-ish commands like cpir and indir tend to escape my memory, so I'll definitely take a look at this as a resource. With that said, I'm confident that this is not the kind of resource that EphraimB is looking for.
I'll list a few references with varying formats. Hopefully one (or more) of them is what you're looking for.

  • http://t.eeems.ca/ASMin28Days/ref/z80is.html: The opcode reference built into the Z80 Assembly in 28 Days tutorial. Gives detailed explanations of how each instruction works, including documentation of irregular flag effects and machine code decomposition. Probably not very printer-friendly, but browser-friendly.
  • http://www.phy.davidson.edu/FacHome/dmb/py310/Z80.Instruction%20set.pdf: Zilog's official Z80 microprocessor documentation. This is about as heavy as documentation can get, with each instruction getting a whole page in this pdf. Not very printer- or browser-friendly, but you can get information straight from the source here.
  • http://www.z80.info/z80code.txt: A very succinct text file, one instruction per line, that lists all the most useful information about each instruction. If you're looking to print something out, this is probably the one of the best to go with. Irregular flag effects aren't documented; if you want that information, I'd supplement the document with http://www.z80.info/z80sflag.htm.
  • http://www.z80.info/z80href.txt. Very similar to the above reference, but lacking opcode size, structure, and speed information. I included this mainly because the aboce one doesn't abstract over registers, so you can end up with four or eight basically identical versions of many instructions, making it unnecessarily long.
I'll probably try making my own z80 ASM reference sheet and make it more graphical and less confusing.
Ephraim B wrote:
I'll probably try making my own z80 ASM reference sheet and make it more graphical and less confusing.


Again, I ask, why would you want to do this? Most tables already tell you everything that you need to know about the opcode. There is no point in making another one.
I want to make it more simple.

1) Graphical chart of what all the Registers do
2) What LD, CP, ADD, and SUB, exc. do
3) List what the most important b_call's do
And more...
Ephraim B wrote:
I want to make it more simple.

1) Graphical chart of what all the Registers do
They don't do anything. They hold numbers. They all hold numbers.
Quote:
2) What LD, CP, ADD, and SUB, exc. do
This chart already has that information.
Quote:
3) List what the most important b_call's do
You asked for a command reference, not a BCALL reference. If you want to know what BCALLs do, you should read http://wikiti.brandonw.net . Again. As you've been told probably 20 times now.
The goal is to make it easier for visual learners like me. The printer-friendly reference you gave me doesn't say what the Registers do.
Ephraim B wrote:
The goal is to make it easier for visual learners like me. The printer-friendly reference you gave me doesn't say what the Registers do.
KermMartian wrote:
Ephraim B wrote:
I want to make it more simple.

1) Graphical chart of what all the Registers do
They don't do anything. They hold numbers. They all hold numbers.
What I mean is for example say that Register A is the Arithmetic Register, Register B is the counter, and so on.
Ephraim B wrote:
What I mean is for example say that Register A is the Arithmetic Register, Register B is the counter, and so on.
Register A is called the "accumulator", not the "arithmetic register", but that's not really what it's for. It just happens to be the register that all the 8-bit arithmetic operations use for the destination, and writing something that says the purpose of the A register is for arithmetic is downright wrong. Similarly, while B is used by djnz and BC is used for other looping opcodes like ldir, calling B the counter register is misleading at best.
Why should it be wrong? It lists that in ASM in 28 days and I think it's good for reference.
Ephraim B wrote:
Why should it be wrong? It lists that in ASM in 28 days and I think it's good for reference.
If you feel that that would help you write better ASM code, then by all means go to it and good luck. Smile
Thank you. I'm also trying to make it printer-friendly and fit it on a single piece of paper.
KermMartian wrote:
Quote:
3) List what the most important b_call's do
You asked for a command reference, not a BCALL reference. If you want to know what BCALLs do, you should read http://wikiti.brandonw.net . Again. As you've been told probably 20 times now.


Don't forget about 83psysroutines.pdf. Each resource documents some B_CALLs that the other doesn't.
The most useful b_call's only in the reference.
Ephraim B wrote:
The most useful b_call's only in the reference.


Sounds somewhat subjective. And there are tons of them to sift through.... Bcalls are not always the solution. As a matter of fact, everything that you write in TIz80 Asm could in theory be written without any bcalls, but the size of your program would become exponential.
I'm probably only going to list the following b_call's

1) _PutS
2) _VPutS
3) _ILine
4) _DispHL
5) _GetTimeString
6) _GetDate
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement