Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - z80man

Pages: 1 ... 25 26 [27] 28 29 ... 62
391
Optimizations can  be tough to do. Especially when it is not your own code that you are working with. I consider myself good at z80 asm, but I still have difficulty understanding routines written by calc84maniac. One of the things I dislike with z80 asm compared with other asm languages is that optimizations are very tough to master. After only a few months in SH3 I have mastered the few optimizations that are even available to a coder. Making that language very easy to learn once you ignore the user/privilege mode and the displacements.

392
Khavi / Re: Java on the Prizm
« on: April 11, 2011, 11:46:32 pm »
@Qwerty I see an optimization in there. When you use the MULU.L instruction do not follow it with the STS MACL. If you access the MAC following a multiply instruction, MULU will take 3 cycles, but if you put at least one other instruction in between the MULU and the STS, then MULU only takes 1 cycle ;)

And the idea with the extensions was for the asm shell. Just like Doors the shell doesn't have to be for asm programs only. Added features could be BASIC progs too. But my main idea was that the shell would have something like a registry found on windows systems. Because on windows for example Microsoft word will register the .doc file extension to itself. So whenever you select a .doc file, word will open that file. The same idea could apply to a .class file on the shell. When a .class file is selected then the JVM will be ran with a pointer to the file to run, passed as an argument.

393
Khavi / Re: Java on the Prizm
« on: April 11, 2011, 03:26:01 pm »
What will be needed is some sort of JVM to run .class files. There are two ways to do this:
1. The JVM is made like a shell that loads the program into ram and then executes it.
2. My other plan was in the asm shell I'm currently working on is to allow programs to register an extension

-hold on for more, bell just rang

394
Other / Re: 4 Bit Homemade Computer
« on: April 10, 2011, 11:31:47 pm »
Perhaps a 4 bit * 4 bit = 8 bit could be added. I have a diagram laying around somewhere so I will post that soon. At the first bit multiply is very simple, but doubles in size with every bit. I think overall that instruction is about 300 transistors if that in not too many

btw: I wonder how many transistors the 256 bit fpu square root instructions take on the sse5 set.

395
Casio Calculators / Re: Casio Prizm documentation
« on: April 08, 2011, 02:19:24 pm »
This to me looks like Casio used a modified SH3. TI did the same thing with the z80 when they created the 83+. I would say the instruction set is the same as the SH3 with the added SYNCO and ICBI. I would also check into the commands related to ICBI as those may be included also. For the overall proc standard peripherals may or may not be included. For example I'm not sure if the peripherals for controlling cell phone communications are available. Addresses and the functionality of hardware may have been decided by Casio, so you can't rely on the addresses provided by Renesas for any of their procs.

396
Miscellaneous / Re: assembler directives
« on: April 08, 2011, 10:35:42 am »
.org. Is good to use too, same with .reallocate

And there are others, but most people don't use them much, and still they're mostly used for z80 assembly development.
Ashbad, I can't find the meaning of .reallocate anywhere. What does that do? And the .org was my bad there. But actually unlike on the z80, most people will not use .org because most SH3 code is location independent and I've also been pushing for shell-cross compatibility for all prizm programs.
; actually isn't a new-line character.  And there are two new line characters, one is 1 byte, one is two.  One is a line-break and feed I believe, the other is just a line break.

The 1 byte one is 0x0A, the 2 byte one is 0x0D0A
I was just mentioning how in C/C++ you can start a new line using a ; but that is already reserved in asm for indicating a comment. What I'm looking for is the character allowing you to use multiple commands in one line.

397
TI Z80 / Re: Axe GUI Library
« on: April 08, 2011, 10:26:31 am »
I think what Qwerty means is that because the buttons are all located on a grid instead of randomly placed, you can add some optimizations. So correct me if I'm wrong, but you can find the cursor position on the grid by using x/width and y/height. Then using the 2 grid coordinates you can see if a button exists there.

398
Casio Calculators / Re: Casio Prizm documentation
« on: April 08, 2011, 04:26:48 am »
So why would Casio need to clear the pipeline with synco and invalidate the cache block with ICBI. Where do they use these commands.

399
Miscellaneous / assembler directives
« on: April 08, 2011, 03:46:12 am »
As some might know I'm currently working on an SH3 assembler designed primarily around the Prizm. I do need to make sure that I have included all common assembler directives that you use whether it is in computer or calc coding. Here is a list of what I currently have.

Code: (directives) [Select]
#include
#define
.org
data.b
data.w
data.l
align.2
align.4
What I think I'm missing is some of the conditional pre-compiler directives which I will need to add. The other I'm looking for is the symbol used to indicate a new line. I know in C/C++ it is the ; but that is the comment in asm.   Also anything else I'm missing would be good to know.  

400
Casio Calculators / Re: Compiling stuff for Prizm
« on: April 08, 2011, 01:34:52 am »
Okay I'm working on getting a shell up and running now, but I can't find a syscall that meets one of my needs. What I need to do is to create a list of the files contained in a directory. None of the MCS or Bfile syscalls seem to accomplish this so I'm wondering if such call dos exist, is it undocumented or do I need to write a routine to find this information.

The other thing I was wondering about was if it is better to do a syscall using the 80020070 address or to just call directly to the the syscall. My only concern with calling directly was that some OS's could use different locations for the calls making some older programs unusable.

401
Casio Calculators / Re: Casio Prizm documentation
« on: April 07, 2011, 02:23:27 pm »
Not only would it have several hundred mHz, but also support fpu and 3d graphic instructions.

402
Other / Re: Anyone use Logisim?
« on: April 06, 2011, 02:58:06 pm »
Has anyone considered yet making a logism like program for a calc. You could have scrolling screen and use a tile mapper for all of the circuits. I might try this for the Prizm later on, but this could be a good 83+ project to try for someone.

403
Art / Re: What I look like
« on: April 06, 2011, 12:26:23 am »
You said you were a ballerina, right?  ;)


404
Casio Calculators / Re: Compiling stuff for Prizm
« on: April 06, 2011, 12:15:29 am »
Thanks for pointing out the help file Simon. I had trouble opening it at first due to Windows 7 incompatibilities, but soon fixed that using 7zip. I do have a small problem now that involves the fx 9860g SDK. Apparently to download that form Casio's site you must own an fx 9860g which I do not have. Hopefully this shouldn't be too much of a problem once I finish my assembler.

In other things. What I meant to say by the Insight explanation is if you could add comments to the code. I do already know C, but it can be hard to read without comments.

Lastly with the assembler/IDE I'm working on. I'm designing it to be much more advanced than the standard gcc assembler.  New features that it will include are a special type of macro (too difficult to explain here), namespaces, structs, thread support, self-modifying code support, interrupts/exception handling,  auto opts, and classes/objects. The IDE will be like any standard coding IDE with syntax highlighting and all that sort, but will add certain features such as helping the coder establish code and data blocks with proper displacements along with 16 bit color tools. At the moment this project is in development and early versions will be available soon.

405
News / Re: New board added & end of record 300+ post-day streak
« on: April 05, 2011, 10:38:24 pm »
Graphmastur does bring up a point there. We need to be more careful when we release epic projects like doom. Just imagine the chaos if we ever ported Crysis to the Prizm or CX. I'm not sure how we can be more careful, but there must be a way, somehow ???

Pages: 1 ... 25 26 [27] 28 29 ... 62