Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Munchor on December 27, 2010, 09:47:22 am

Title: Online Z80 Table
Post by: Munchor on December 27, 2010, 09:47:22 am
Hello everyone,

Some of us like to use HEX to program in Assembly, not many, mostly Xeda and calc84maniac. I also like it, but don't do it much.

Eitherway, at:

www.davidgom.co.cc/z80table.html (http://www.davidgom.co.cc/z80table.html)

You can find an online, HTML browser z80 table with the HEX code for everything.

Note: I didn't make the table, Collin Anderson did and uploaded it to ticalc.org, here (http://www.ticalc.org/archives/files/fileinfo/236/23621.html).
I only converted it to HTML, uploaded it and host it.

I have e-mailed him asking him whether he is okay with me uploading it or not. If he says he doesn't want it there, I will remove it, but for now it is there.

It was hard work (making it HTML) by hand, so I hope you like it.
Title: Re: Online Z80 Table
Post by: Ikkerens on December 27, 2010, 10:00:04 am
I can't describe... the awesomeness/me has to learn how to use asm

Probs pretty useful for the Axe asm( command :w00t:
Title: Re: Online Z80 Table
Post by: nemo on December 27, 2010, 12:02:33 pm
you might want to note the fact that it's row-column not column-row.
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 03:03:56 pm
Runner112 just a noticed an error, not mine though.

http://davidgom.co.cc/z80table.html (http://davidgom.co.cc/z80table.html)

F0 was 'ret po', but it looks like it is 'ret p'. Fixed and uploaded :)
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 03:06:41 pm
Hmm, I think I might make a search tool, so you start typing in what you want and it will display the options, and the hex for it.
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 03:07:56 pm
Hmm, I think I might make a search tool, so you start typing in what you want and it will display the options, and the hex for it.

I will be adding a string to HEX converter (PHP) there too and add one of the other two tables.
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on December 27, 2010, 03:08:18 pm
Nice, is that mostly for those who want to know the HEX equivalent of ASM commands or vice-versa? Xeda (or people wanting to use Xeda's programs) might actually love this.
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 03:10:10 pm
Hmm, I could make a cross search so you can search for either.
Title: Re: Online Z80 Table
Post by: jnesselr on December 27, 2010, 03:33:44 pm
This is actually pretty nice. It shows that I am using some form of valid command, too.
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 03:42:08 pm
(http://puu.sh/CbY)
Using your table I'm slowly filling out the values for this, and I'm going to have to make another that converts the other way.
Title: Re: Online Z80 Table
Post by: jnesselr on December 27, 2010, 03:43:15 pm
(http://puu.sh/CbY)
Using your table I'm slowly filling out the values for this, and I'm going to have to make another that converts the other way.
Actually, this is good for oasis isn't it.
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 03:44:56 pm
Erm, not really, they wont be parsing in the same way, but it will give us an easy tool to use for checking if we have the right commands I guess
Title: Re: Online Z80 Table
Post by: jnesselr on December 27, 2010, 03:45:34 pm
Erm, not really, they wont be parsing in the same way, but it will give us an easy tool to use for checking if we have the right commands I guess
Well, I just figured that it will help us with tracking down all the commands, rather than using his table per se.
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 04:19:22 pm
www.davidgom.co.cc/z80table.html (http://www.davidgom.co.cc/z80table.html)

I have now updated the website with the two other tables, if there is any bug please report.

Unlike the first two tables, I had to remake the third table, and type all that, and I thank Runner112 who helped me with it by telling me what I should do :)

Eitherway, I think I should change the colours so that each table has its own colour and it is easier to browse through the page, right?
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on December 27, 2010, 04:26:08 pm
Verdana fonts, using the same color as the calc pixels with a background color being the same as the LCD?
Title: Re: Online Z80 Table
Post by: Deep Toaster on December 27, 2010, 04:28:48 pm
Verdana fonts, using the same color as the calc pixels with a background color being the same as the LCD?

^ Or if you can get one, a 6x8 font? ;D

This is nice, though. Any chance of having two-byte opcode tables? Maybe as a link from their first bytes?
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 04:36:19 pm
www.davidgom.co.cc/z80table.html (http://www.davidgom.co.cc/z80table.html)

Colors! Like it?
Title: Re: Online Z80 Table
Post by: jnesselr on December 27, 2010, 04:43:50 pm
I think you should make the colors in the first table refer to the other tables, or have links or something. That way, If I see that the first byte is $BB or something, I can click on it, and it will take me to the other table, or it is colored the same as the other table.
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 04:44:28 pm
Oh, just to let you know, on the first table, you forgot to include all the push's you copied over pop instead
Title: Re: Online Z80 Table
Post by: jnesselr on December 27, 2010, 05:10:09 pm
Good, I see you took the suggestion. I like it.
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 05:26:20 pm
After half an hour of intense and painful work and thanks to a few very good members from Omnimaga in the IRC, I fixed like 40 bugs that were in the original table, so my table is now much better than the original one. Thanks people who helped me so much! Also, there are probably more bugs, but we just didn't spot them yet :S

Linking and Color Leading are functional!
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 06:26:54 pm
http://future_history.freehostia.com/Files/Resources/ASM/z80_Convertion_Tools.html
:) still a work in progress though
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on December 27, 2010, 06:28:36 pm
This is cool, what does the string thing do, though?
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 06:29:20 pm
This is cool, what does the string thing do, though?

Convert string to HEX, you might wanna put a label for that :)
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on December 27, 2010, 06:29:57 pm
String of ASM code?
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 06:31:45 pm
String of ASM code?

I don't know what you mean ???

Strings that can be displayed like disp "hello"
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 06:32:36 pm
It converts the string to the hex equivalent so that asm routines can use it.
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on December 27, 2010, 06:33:59 pm
Ok, but do you mean for example string of text ("Hello world!") or just string of code? (ClrHome:Disp "Hello World")
Title: Re: Online Z80 Table
Post by: Eeems on December 27, 2010, 06:35:25 pm
for the string, not the code, so if you put in "Hello World!" it will convert to "48656C6C6F20576F726C6421", this way ASM routines for displaying text will be able to use it
Title: Re: Online Z80 Table
Post by: Munchor on December 27, 2010, 06:59:00 pm
Exactly Eeems!
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on December 27, 2010, 10:46:06 pm
for the string, not the code, so if you put in "Hello World!" it will convert to "48656C6C6F20576F726C6421", this way ASM routines for displaying text will be able to use it
I see, thanks for the clarilolification :)
Title: Re: Online Z80 Table
Post by: Munchor on December 28, 2010, 04:49:38 pm
Well, new table, finished all tables!!! Now just fixing *possible* bugs :)

Uploaded to www.davidgom.co.cc/z80table.html (http://www.davidgom.co.cc/z80table.html) and to ticalc.org, not approved yet.

Here's a screenshot:

(http://img.removedfromgame.com/imgs/z80tablescreenshot.gif)
Title: Re: Online Z80 Table
Post by: jnesselr on December 28, 2010, 05:33:10 pm
Very nicely done.
Title: Re: Online Z80 Table
Post by: Eeems on December 28, 2010, 07:42:29 pm
Impressive :)
Some of the tables are a little hard to read due to the colouring though, maybe  on the really dark ones change the text colour to white?
Title: Re: Online Z80 Table
Post by: Munchor on December 28, 2010, 07:43:44 pm
Impressive :)
Some of the tables are a little hard to read due to the colouring though, maybe  on the really dark ones change the text colour to white?

Good idea, will do that :)
Title: Re: Online Z80 Table
Post by: nemo on December 28, 2010, 07:43:54 pm
shouldn't 9A be sbc a,d?
Title: Re: Online Z80 Table
Post by: Munchor on December 29, 2010, 01:53:24 am
shouldn't 9A be sbc a,d?

Sorry, will fix it right away.
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on December 30, 2010, 03:34:52 am
Nice scout. Did you ask permission to the original author to upload it on ticalc.org, though?
Title: Re: Online Z80 Table
Post by: Builderboy on December 30, 2010, 03:39:00 am
Wow thats got to be useful!  Its also interesting to see the layout of all the commands and see how they are related and have different areas.  Probably gives a bit of insight into how the z80 works as well :]
Title: Re: Online Z80 Table
Post by: Munchor on January 07, 2011, 09:49:47 am
Updated them, just for the record, and also uploaded them to ticalc.org. And also updated them on ticalc.org.

I was thinking of mixing the tables with Assemblex in some way, but not really sure how to :S
Title: Re: Online Z80 Table
Post by: DJ Omnimaga on January 07, 2011, 07:59:37 pm
Having them in assemblex would be cool actually. I hope you can figure out or get help to do it. :)
Title: Re: Online Z80 Table
Post by: Munchor on January 08, 2011, 06:34:46 pm
Having them in assemblex would be cool actually. I hope you can figure out or get help to do it. :)

People could easily know the Hexadecimal opcodes for stuff :)
Title: Re: Online Z80 Table
Post by: Deep Toaster on February 02, 2011, 03:44:06 pm
I've been using this lately, and I gotta say, I like the way it looks. Some suggestions:


And a bug report:


EDIT: Seems like it was a browser issue. Never mind. But that said, I'd recommend adding some padding to each cell, so that doesn't happen to other people. Just a suggestion :)

And an addition suggestion:

Title: Re: Online Z80 Table
Post by: Runer112 on February 02, 2011, 04:51:18 pm
If you look at the CLASS column in TASM80.TAB, you will see that IN0 and OUT0 are class 2 instructions. Class 2 instructions aren't available on the z80 processors found in TI calculators, so adding them would probably just cause confusion with people wondering why they don't work. Although it would be nice if they were and we could use such class 2 instructions as TST and MLT, unfortunately we can't.
Title: Re: Online Z80 Table
Post by: Munchor on February 02, 2011, 04:53:56 pm
I've been using this lately, and I gotta say, I like the way it looks. Some suggestions:

  • Changing the font to Courier or Courier New. Just a personal preference—I like fixed-width when I code.
  • Left-justifying each cell. It's easier to find beginnings of instructions that way. Again, a personal preference.
  • Uniform widths for cells (looks better and more professional).
  • Extending the width of every cell so that the text in all cells are in one line instead of being broken up.
  • Less contrasting colors.

And a bug report:

  • $08 is EX AF,AF', not EX AF,AF.

EDIT: Seems like it was a browser issue. Never mind. But that said, I'd recommend adding some padding to each cell, so that doesn't happen to other people. Just a suggestion :)

And an addition suggestion:

  • The undocumented instructions IN0 and OUT0. You can find them in BrandonW's tasm80.tab (http://brandonw.net/svn/calcstuff/OS2/trunk/extras/TASM80.TAB).

Thanks much for the suggestions, I'll implement font and a javascript option for left justifying or center justifying. The other ones I have to try.
Title: Re: Online Z80 Table
Post by: Deep Toaster on February 02, 2011, 06:34:10 pm
If you look at the CLASS column in TASM80.TAB, you will see that IN0 and OUT0 are class 2 instructions. Class 2 instructions aren't available on the z80 processors found in TI calculators, so adding them would probably just cause confusion with people wondering why they don't work. Although it would be nice if they were and we could use such class 2 instructions as TST and MLT, unfortunately we can't.

Ah, thanks. Didn't know that.

Thanks much for the suggestions, I'll implement font and a javascript option for left justifying or center justifying. The other ones I have to try.

That sounds great :)