Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Deep Toaster on May 03, 2011, 08:16:40 pm

Title: Online Z80 tables
Post by: Deep Toaster on May 03, 2011, 08:16:40 pm
Got bored this morning, so I made this. (Really should start studying for my AP exam tomorrow <_<)

Searchable Z80 instruction tables (http://clrhome.org/resources/table/)

Comments and suggestions? When I get the time I'll add title-text that shows the time and speed of each instruction, as well as a quick description of what it does and what flags it affects.

A lot of thanks goes to Scout, who took the time to create the original online tables (http://davidgom.co.cc/z80tables.html), and Runer112, who made a few of the tables on his page. I copy/pasted a lot of it to use in mine (after getting permission a few weeks ago). And thanks to whoever made the original .xls file (http://www.ticalc.org/archives/files/fileinfo/236/23621.html), too. Haven't gotten to adding credits yet, but they'll definitely be there.

EDIT: Verified it works in all modern browsers, in addition to IE :P
Title: Re: Online Z80 tables
Post by: ralphdspam on May 04, 2011, 09:28:31 pm
Ah, I like the hi-lighting and searching.  :)

Can you, by any chance add T-states?
Title: Re: Online Z80 tables
Post by: Eeems on May 04, 2011, 09:40:40 pm
Kinda reminds me of https://eeezor.ec3club.tk/Files/Resources/ASM/z80_Convertion_Tools.html :P Way more in depth though :)
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 05, 2011, 09:17:36 am
Can you, by any chance add T-states?

T-states, size, flags, and description are all going to be in title-text :)

Kinda reminds me of https://eeezor.ec3club.tk/Files/Resources/ASM/z80_Convertion_Tools.html :P Way more in depth though :)

Oop, didn't know about that one. Can I plug a quick feature request here? Converting a mnemonic as soon as you press Enter.
Title: Re: Online Z80 tables
Post by: Munchor on May 05, 2011, 09:37:06 am
Got bored this morning, so I made this. (Really should start studying for my AP exam tomorrow <_<)

Searchable Z80 instruction tables (http://clrhome.co.cc/b/table/)

Comments and suggestions? When I get the time I'll add title-text that shows the time and speed of each instruction, as well as a quick description of what it does and what flags it affects.

A lot of thanks goes to Scout, who took the time to create the original online tables (http://davidgom.co.cc/z80tables.html), and Runer112, who made a few of the tables on his page. I copy/pasted a lot of it to use in mine (after getting permission a few weeks ago). And thanks to whoever made the original .xls file (http://www.ticalc.org/archives/files/fileinfo/236/23621.html), too. Haven't gotten to adding credits yet, but they'll definitely be there.

EDIT: Verified it works in all modern browsers, in addition to IE :P

A 'hover' function would be great, I always wanted to put that in mine. When you hover an instruction, it says a description, speed and size. Can you do that?

Either way, the search function is great as I've already said in Cemetech.
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 05, 2011, 09:41:08 am
A 'hover' function would be great, I always wanted to put that in mine. When you hover an instruction, it says a description, speed and size. Can you do that?

You don't even have to do that. You can just add something like 'title="This is title text!"' and it shows up when you mouse over :)
Title: Re: Online Z80 tables
Post by: Munchor on May 05, 2011, 09:52:50 am
A 'hover' function would be great, I always wanted to put that in mine. When you hover an instruction, it says a description, speed and size. Can you do that?

You don't even have to do that. You can just add something like 'title="This is title text!"' and it shows up when you mouse over :)

Oh yeah, I had forgotten about some HTML stuff. =D I'll add that to mine ASAIC.
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 05, 2011, 03:18:16 pm
Added (http://clrhome.org/resources/table/).

I didn't use title, though it would be a lot easier. I used my own tooltip script so I can customize it later.
Title: Re: Online Z80 tables
Post by: Munchor on May 05, 2011, 03:19:11 pm
Woah Woah Woah! That is looking pretty awesome. Nice job Deep Thought!
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 05, 2011, 06:54:09 pm
Thanks :D

And I updated the URL. It's now at http://clrhome.org/resources/table/ (http://clrhome.org/resources/table/), opening a new site section.

EDIT: Updated again! Tooltips are now at a *sane* size, and they elaborate on how the instruction affects flags (instead of just throwing 00P1++ in your face).

EDIT2: And the search bar matches any part of the instruction, not just the beginning.
Title: Re: Online Z80 tables
Post by: Yeong on May 05, 2011, 08:18:13 pm
It looks really nice! :D
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 05, 2011, 08:31:55 pm
Updated to use regex for searching. It gets slow though D:

EDIT: Nvm, changed it back. It's not too useful and it's really laggy.
Title: Re: Online Z80 tables
Post by: Munchor on May 06, 2011, 03:02:19 am
When I hover opcodes that are not in the primary table I wouldn't like to just get the opcode like BC, I'd like (FD)BC, can you do that?
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 06, 2011, 09:23:09 am
Sure, good idea.

EDIT: I'd be done if the server hadn't gone down again.
Title: Re: Online Z80 tables
Post by: Munchor on May 08, 2011, 08:33:26 am
I still don't get why helihost, loding the page seems quite slow to me.
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 08, 2011, 12:18:20 pm
Yeah, they seem to be having server issues lately. But at least the MySQL database doesn't go down virtually every day, like on 000 (the site relies on it for Projects, Membership, and a host of other things).
Title: Re: Online Z80 tables
Post by: Munchor on May 09, 2011, 07:31:49 am
Yeah, they seem to be having server issues lately. But at least the MySQL database doesn't go down virtually every day, like on 000 (the site relies on it for Projects, Membership, and a host of other things).

I guess that's good. Have you considered another option besides those two?

Also Deep, I think I'll make a reference to this table on my tables, do you agree with that?
Title: Re: Online Z80 tables
Post by: Deep Toaster on May 09, 2011, 09:24:08 am
Yeah, they seem to be having server issues lately. But at least the MySQL database doesn't go down virtually every day, like on 000 (the site relies on it for Projects, Membership, and a host of other things).

I guess that's good. Have you considered another option besides those two?

Yeah, but they each have their problems. You get what you pay for, as always.

Also Deep, I think I'll make a reference to this table on my tables, do you agree with that?

That'd be great. I already link to yours in the credits part of mine :)
Title: Re: Online Z80 tables
Post by: Deep Toaster on August 15, 2011, 05:25:09 pm
Woot, update!

Fixed some positioning issues, un-lagged searching, converted to valid XHTML, and added size/time/flags/description info to every instruction.

Thanks to Runer112 for letting me nuke his bot with queries for every single opcode, so I could steal his descriptions :D
Title: Re: Online Z80 tables
Post by: calcdude84se on August 16, 2011, 07:32:29 am
Thanks to Runer112 for letting me nuke his bot with queries for every single opcode, so I could steal his descriptions :D
[emphasis mine]
Ah, so that was why it was called NukeBot. ;D
It looks very nice; the only issue I have with it is that the information pop-up vanishes briefly when the mouse is moved into the empty spaces between the table elements, which makes it look rather awful.
Title: Re: Online Z80 tables
Post by: Deep Toaster on August 16, 2011, 01:08:29 pm
But the table itself looks awful without border spacing :(

By the way, anybody having trouble seeing the popup box in IE?
Title: Re: Online Z80 tables
Post by: harold on August 16, 2011, 01:35:19 pm
Is it searchable by opcode? I couldn't figure out how to make it do that
Title: Re: Online Z80 tables
Post by: Deep Toaster on August 16, 2011, 01:50:02 pm
Not by opcode, but it's organized by that anyway :)
Title: Re: Online Z80 tables
Post by: harold on August 16, 2011, 02:04:24 pm
Of course it is, but I was hoping one could search for something like 01?????? and get all the 8bit LDs and a couple of other things
Title: Re: Online Z80 tables
Post by: calcdude84se on August 16, 2011, 02:28:07 pm
Of course it is, but I was hoping one could search for something like 01?????? and get all the 8bit LDs and a couple of other things
You can just look at rows 4, 5, 6, and 7 to get the same effect, couldn't you?
Deep Thought, can the space be put into the table cells themselves?
Title: Re: Online Z80 tables
Post by: Deep Toaster on August 16, 2011, 02:33:44 pm
I tried replacing the spacing with a white outline, but even that interfered with the popup :(
Title: Re: Online Z80 tables
Post by: calcdude84se on August 16, 2011, 02:53:41 pm
Can you detect simply whether the cursor is in a table or not?
If so, the trigger to remove the pop-up would either be moving out of the table or onto a cell without a pop-up. Being in the table but not being on any cell would just keep the state of the pop-up as before.
It wouldn't be perfect, admittedly; you could stay in the space between cells and, say, have the pop-up for nop up next to rst 38h, but if it's possible, it could work.
Title: Re: Online Z80 tables
Post by: Deep Toaster on September 02, 2011, 02:55:14 pm
Some small but important updates.

Descriptions for every single instruction have now been fixed. (That took a while, even with regex doing something like 90% of the work.) They now make sense, and refer to the registers they affect by name instead of reg8/imm8/etc.

I've also added automagic highlighting for permalinking in the form http://clrhome.org/resources/table/#STUFF_TO_SEARCH_FOR. If you give someone a link to, say, http://clrhome.org/resources/table/#sbc hl, (http://clrhome.org/resources/table/#sbc hl,), it'll put "sbc hl," in the search box and highlight only those instructions, useful for quickly showing someone where those instructions are.
Title: Re: Online Z80 tables
Post by: NanoWar on September 07, 2011, 06:59:56 pm
What the others are doing: http://net.cs.uni-bonn.de/fileadmin/user_upload/plohmann/x86_opcode_structure_and_instruction_overview.pdf
Title: Re: Online Z80 tables
Post by: Deep Toaster on September 08, 2011, 06:38:27 pm
Looks nice, but not as much detail :D Certainly would load faster though.
Title: Re: Online Z80 tables
Post by: Deep Toaster on August 25, 2012, 12:16:54 pm
Necro-update: I just started using this myself (:P) and realized that I kept trying to type in the text box and hit Enter, as if it were a search engine. So I made it jump to the next matching instruction when you hit Enter :D

If you keep pressing (or holding) Enter, it'll loop through the rows with matching instructions.

Also updated some the descriptions for rst and some others.