Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started 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.
-
I can't describe... the awesomeness/me has to learn how to use asm
Probs pretty useful for the Axe asm( command :w00t:
-
you might want to note the fact that it's row-column not column-row.
-
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 :)
-
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.
-
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.
-
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.
-
Hmm, I could make a cross search so you can search for either.
-
This is actually pretty nice. It shows that I am using some form of valid command, too.
-
(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.
-
(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.
-
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
-
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.
-
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?
-
Verdana fonts, using the same color as the calc pixels with a background color being the same as the LCD?
-
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?
-
www.davidgom.co.cc/z80table.html (http://www.davidgom.co.cc/z80table.html)
Colors! Like it?
-
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.
-
Oh, just to let you know, on the first table, you forgot to include all the push's you copied over pop instead
-
Good, I see you took the suggestion. I like it.
-
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!
-
http://future_history.freehostia.com/Files/Resources/ASM/z80_Convertion_Tools.html
:) still a work in progress though
-
This is cool, what does the string thing do, though?
-
This is cool, what does the string thing do, though?
Convert string to HEX, you might wanna put a label for that :)
-
String of ASM code?
-
String of ASM code?
I don't know what you mean ???
Strings that can be displayed like disp "hello"
-
It converts the string to the hex equivalent so that asm routines can use it.
-
Ok, but do you mean for example string of text ("Hello world!") or just string of code? (ClrHome:Disp "Hello World")
-
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
-
Exactly Eeems!
-
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 :)
-
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)
-
Very nicely done.
-
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?
-
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 :)
-
shouldn't 9A be sbc a,d?
-
shouldn't 9A be sbc a,d?
Sorry, will fix it right away.
-
Nice scout. Did you ask permission to the original author to upload it on ticalc.org, though?
-
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 :]
-
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
-
Having them in assemblex would be cool actually. I hope you can figure out or get help to do it. :)
-
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 :)
-
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).
-
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.
-
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.
-
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 :)