2015-08-16 03:32:36 Posted by RetroZelda

C++ Memory Management

So, with my lack of time with my good friend, C++, I have decided to make a Memory Manager. I was playing around with a different coding style, and I think I like it. It seems more of an explicit style, and I think I like programming is this way. Anyway, this manager is similar to my MIPS memory manager(found here, and it is definitely easier to read and use. The usage is simple. I have every function static, and held in a namespace. That can easily be changed depending on whatever my next project needs are, but it is still self-sufficient. You have to call RetroZeldaMM::Init() and RetroZeldaMM::Shutdown() to allocate and free the actual memory, or if on an embedded system, to start using the given heap memory. Then, to allocate simply use RetroZeldaMM::New<>() and RetroZeldaMM::Delete<>(). Yes, they are templated functions. Deal with it :) There are 3 helper Macros to help with the amount of data to allocate: KBToByte() MBToByte() GBToByte() And then there is a function called RetroZeldaMM::AllocationCount(). You can call it to get the allocation/deallocation count as a primitive way to check if you are not releasing your pointers. Please note that the data alignment is kept on a 4byte boundary. I am not sure of I did it correctly, or if there is a keyword I need to use. Regardless, enjoy! Ciao fur Niao!

2013-06-02 22:01:18 Posted by RetroZelda

Vita Remote Desktop

Recently, I have been working on roughly 4 projects(2 being personal projects), and one of which is the Vita Remote Desktop. Once the Playstation Mobile SDK became free to licence, I have been getting swarmed with requests to get it to work. Therefore, I have worked and I did get it to work! But something in the SDK made it work much much slower. So, I started from scratch on the server, and I updated the client even more so. Now, I have the screen getting sent over and it is still faster than what it would have been. Although, because I have been doing so many projects, I was running out spare time as I was trying to juggle too much, so I have decided to stop working on this. I have added the source to a google code GIT repository, and I hope someone else will finish it off. what is left to do? Well, clean disconnects is really needed, but there is also the server handling vita button presses and screen touches. The packets are already being sent and received, just not handled. Also, the server crashes sometimes as it runs out of memory. Also, the server doesnt have a GUI, and mapping it to my previous's GUI wont be hard at all. So, naturally, it isn't quite finished. Anyway, the repository is here: https://code.google.com/p/vita-remote-desktop/ I am now going to focus my time on more important projects, but I may stumble back. All I ask is to keep the project hosted publicly and to potentially keep this alive. Ciao fur niao!

2012-10-16 05:40:29 Posted by RetroZelda

Mips Memory Management

Halfway through October, and not a word of what my abundant spare time has brought to this lovely world. Well, I have been reading a lot of articles on random things like occlusion culling, hardware emulation, and different CPU pipelines and instructions. I first started reading about SH-2 and SH-4 processors(found in the Sega Saturn and Dreamcast respectively), and after giving me an aneurysm of knowledge, I decided to find a cleaner CPU set to build upon. x86? Screw x86! With a vita that has a psp emulator that has just been introduced to the existing "e;psp hacking scene"e;, I decided that maybe working with that stuff first would give me a nice foot in the door. So, after reading about low level PSP hacking crap, I now understand buffer overflows and I think i have a few things I know I can do to not allow those(because I do love me some file I/O), and I was introduced to MIPS assembly. The instructions are simple, and the registers are even simpler, so why wouldn't mips be a good starting point? Well, it was great! I am fairly glad that I put off working on Nyanimals(idk if I mentioned that side PSM project or not, but hit me up on twitter or linked-in if you really care) for a week to put my time into MIPS. Well, after just screwing around and figuring out how to actually use the stack(lack of push and pop instructions), I decided a couple days ago to try a math library. Obviously I gave up on that fast and decided to handle dynamic memory allocation. So, with this post, I give you my MIPS malloc and free. Next on my list is calloc and realloc, but I will need to do some other functions first(e.g. memset), then I think I will be able to handle math stuff and I can dive into the FPU. Anyway, I have the malloc and free routines attached so download and enjoy. I have been using Mars as my simulator, so I will provide a link to that somewhere... anyhoo, if you do decide to try it out, good luck reading it. I have the normal massive ammount of comments that ASM requires, but, especially in the free routine, its still... well... you will see :) So, to conclude, I plan to do some MIPS as well as work on Nyanimals(as it is the longest side project I have had the attention for). And I think I am going to make it build for PSM and XNA so I can play around with compiler settings. Although I have been lacking time with the super cute C++, so I might do some data structures or even look into CUDA(probably not...) Anyway, before this turns into another rant... ciao fur niao! Mars: http://courses.missouristate.edu/kenvollmar/mars/

2012-08-27 17:38:20 Posted by RetroZelda

Sugar Rush - Gold!

The time for Sugar Rush is over, and I dont really have much to say about it at the moment. But Download it, play it, and Love it :) Download Download You can also read more about my time with it here and here. Enjoy :)

2012-07-05 02:25:51 Posted by RetroZelda

hmmm... Another Pranker

Yeah, I got really bored a couple hours ago, so I made a separate little thingy that will run in the background. It uses direct Input and will reverse the mouse cursor, it flips the screen, and when you left click the mouse moves in a different direction but when you right click, the mouse will jump to a random location. Oh, and both clicks play a system sound(for now), but it might be a good idea to play something funny instead(http://www.youtube.com/watch?v=ie4GN4J9lSQ) I also merged in the blank mouse cursor as well, so when it runs at start up, its nearly impossible to use the mouse to set everything back. So mixing this with Lulz can be quite fun! I made myself something that can easily change everything back, and I suggest you do the same unless you are an asshole :)

<--Prev 0 1 2 3 Next-->