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 ... 31 32 [33] 34 35 ... 62
481
« on: March 09, 2011, 12:12:29 am »
Alright I am now able to get the pre-alpha compiled to machine code. I just need to debug it before I can release it. The primary issue now is that I'm trying to emulate the SH3 proc which is in big endian mode, but my compiler works in little endian. This has the effect of causing many annoying bugs that can be hard to locate and remove. This isn't preventing me form releasing the first version, but it does slow me down a little. I'm also now releasing a few details on how the emulator will work. The first version is not meant to emulate the Prizm, but instead only focus on the SH3 for now. This version also runs from the command prompt which displays several stats. Right now it tells you how many instructions are executed per second and the contents of the 16 general purpose registers. As of now the emulator only supports 18 simple instructions. Most of which involve longwords. The reason for doing this was that I wanted to release the emulator in only small steps. That way we could check that everything works perfectly before I move onto the next segment. Release 2 will feature mostly the same instructions, but with support added for bytes, words, and immediate data. For now though I only want to focus on the current 18 instructions which I will list with the release. When the emulator starts it will load the contents of "spectrum.data" into 0x80000000 on the memory. There are 2 bonus instructions to be used as well. One is (end 0xFFFF) which tells the emulator to stop and quit and (pause 0xFFFE) which pauses execution. For now they are included as standard instructions, but will later be implemented outside of the code. Future releases will include a full gui that will help with hacking and development. In addition to a fully click able Prizm model there will be real time disassembly, display of memory contents, and stack along with numerous other tools. I am also planning on creating an easy to learn scripting language that will allow users to create their own tools to be run alongside the emulator. The scripting language will allow you to create ui objects, access the Prizm memory, access keyboard inputs, and even allow you to create your own variables with control loops and arithmetic. If you have any questions, suggestions, criticism, or you want to tell me I'm an idiot I would love to hear from you.
482
« on: March 08, 2011, 09:27:03 pm »
Try this
<applet codebase = "." code = "car.class" name = "Car" width = "600" height = "600" hspace = "0" vspace = "0" align = "middle"
>
</applet>
483
« on: March 07, 2011, 01:28:23 am »
Entire width of the screen? Could you explain a little more on how this is supposed to work. My best idea because rotating is heavily proc intensive is to just use several sprites for each stage of the rotation.
484
« on: March 06, 2011, 07:21:00 pm »
Why didn't I see this earlier. I'm always in for some good old fashioned Prizm hacking. @Kerm, nice to see that you joined the Prizm hacking team. With your expertise in everything calc, we should be able to start rolling out projects soon.
485
« on: March 06, 2011, 02:58:53 am »
Could you mark line 291 please?
Or is it just this typo?
unsigned int n = half_byteone(;
Yeah that was just a typo. It is not actually in the code. And I marked 291 as a comment
486
« on: March 06, 2011, 02:02:57 am »
@z80man is it a picture of you btw? Or is it just an example to show the sport?
I personally don't do sports anymore, although I do walk a whole lot when I am at work outside. Back when I went to school I liked football and hockey, although I mostly played at school since most of my friends didn't do much sport outside school.
Yes that is s picture of me about to finish a cross country race. After running a race you feel like you almost killed yourself. That's why I look so pale in the picture. And I probably won't do any sports outside of high school. I might compete on a college team, but you have to be really good to make those. Otherwise I will just run in various 5k's, 10k's and marathons after I graduate.
487
« on: March 06, 2011, 01:49:18 am »
I was wondering if anyone here participates in any sports at their schools. This thread is for discussing any sports that you do and some of your memories from there. It is not for starting a war on which sport is better. And as a note to Americans, remember that this is an international site so for the sake of simplicity please refer to soccer as football and football as American football. For me I do distance running. In the fall I do cross country and in the spring I do track. In fact today I had my first track meet of the season and set 2 PR's (personal record) In the 1600 meter race (about a mile) I ran a 5:20 and in the 4x800 meter relay I ran a 2:28 for my leg of the race. In cross country our races are 3 miles (just under 5km) and are on various terrain including hills, mud, and sand. My PR for that is 18:40 which I am just about to set in the picture below. I'm hoping that next year my team wins the league championship.
488
« on: March 06, 2011, 01:01:17 am »
I think I will buy the standard edition to use on the math test and the developers edition to use after the math test And if uberspire can get the standard edition out on time I might be able to convince my school math department to endorse this calc. I'm in very good standing with the math teachers and my school is thinking of dropping the 84+ line in favor of the nspire. If I can convince them that uberspire's calc is better and train the math teachers on how to use it, then there will be an order for 1800 calcs.
489
« on: March 06, 2011, 12:52:34 am »
Alright I was compiling my Prizm emulator when I came upon an error. As a global variable I had defined a bit field of 1 byte that is split into two 4 bit variables. I then used a #define to rewrite the bit field so that I would not have to label the the struct name. Here is an eample of the error I got. unsigned int n = half_byteone; spectrum.cpp(291: Error: '(' expected following simple type name struct middle_byte //creates a bit feld for reading the middle byte of an instruction { unsigned char half_byteone:4; unsigned char half_bytetwo:4; }; unsigned char low_byte; //creates low byte of instruction
#define half_byteone middle_byte.half_byteone #define half_bytetwo middle_byte.half_bytetwo blah... void ADD() //ADD Rm,Rn { unsigned int n = half_byteone; //291 unsigned int m = half_bytetwo; R[n] += R[m]; PC += 2; return; } blah... half_byteone = (instruction & 0x0F00) / 0x100; // inside the function that calls ADD() half_bytetwo = (instruction & 0x00F0) / 0x10; This error appears every time I reference the bit field not just this one example. When I googled this error I found that fixing it involved some sort of weird work with templates (which I have never used before ) Some help on getting this to work would be greatly appreciated.
490
« on: March 05, 2011, 10:40:57 pm »
When I saw this thread I was first thinking of something else. I was thinking of a shell designed for Axe programs. Think of it like this. The Axe language contains many useful functions such as DispGraph r, multiply, divide, bitmaps, sound, and other stuff that I'm not familiar with yet. What if the Axe compiler instead of writing the asm function of DispGraph r it would just write call DispGraphr (DispGraphr would be the address in the shell). Then inside the shell would be the Axe sub-routines that the program would call. This would be just like how all other shells contain their own libraries that programs can access, but instead these would be Axe libraries. Thereby decreasing the size of every program. I'm not that good with names. This isn't like the nspire where you can just put an N in front of everything. nAXE
491
« on: March 05, 2011, 12:58:51 am »
Hooray for Casio programmers! You are in luck, we have already hacked the Prizm to the point in which you can now code in asm, C, or C++. (or just straight hex for me) Join us now in the Przim discussion forums. and here are your peanuts btw: your english is pretty good! Edit: just wondering, why is the name of this topic the SH3 command of CMP/EQ R1,R1
492
« on: March 04, 2011, 11:52:11 pm »
I wonder if the ndoom video on youtube is attracting many new users. Also google seems to be pretty popular so far for gaining new users. I recently found out that the snake game I made a few months ago is #1 for the "Casio Prizm games" search
493
« on: March 04, 2011, 11:48:30 pm »
Someone rate down one of DJ's posts so that it reads 666 again. Or we could just uprate his posts until it is 1337
494
« on: March 04, 2011, 11:45:01 pm »
This reminds me of my planned z80 emulator for the Prizm. My gray scale tatic for color screens is to first remember that unlike on the 83+ black is represented by the number 1 and white by 0. Then considering that the screen is 16 bit color you need to find the proper gray values. To keep in mind the limited processing capability of a calculator I would emulate only 8 shades of gray. For the sake of simplicity I am going to illustrate this in a 24 bit color system now as it would be to difficult to explain the 5 6 5 color system in hex.
When a command is given to the lcd (via port $11) and the byte currently being referenced is white ($FFFFFF) each pixel will be decremented by $202020 which represents the first shade of gray. (note: each pixel is actually a block of pixels on either the Prizm or nspire to compensate for the higher resolution). Every so many milliseconds an lcd drawer will initialized. What this will do each iteration is continually decrement each non-(white or black) pixel by $202020 until it reaches $000000 (black). This should hopefully give an accurate representation of the 83+ screen without causing slowdowns.
495
« on: March 04, 2011, 10:36:37 pm »
I had visited here a few times before to learn how do stuff in axe, asm, and basic, but I didn't join till Christmas Day when I got my beloved Casio Prizm. I came here to learn how to start asm coding, but instead ended up working on how to hack the Prizm. Within two months I had joined the anti-riot squad.
Pages: 1 ... 31 32 [33] 34 35 ... 62
|